-  [WT]  [Home] [Manage]

[Return]
Posting mode: Reply
Name
Email
Subject   (reply to 123)
Message
Captcha
File
Embed   Help
Password  (for post and file deletion)
  • Supported file types are: 7Z, GIF, JPG, PDF, PNG, RAR, TXT, XZ, ZIP
  • Maximum file size allowed is 10240 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 112 unique user posts. View catalog

  • Blotter updated: 2012-05-14 Show/Hide Show All

File 130470097643.jpg - (277.68KB , 1024x678 , 1293849998049.jpg ) Thumbnail displayed, click image for full size.
123 No. 123
I'm trying to learn Assembly, so can anyone recommend a good book?
Expand all images
>> No. 124
File 130473460184.jpg - (136.00KB , 800x746 , 1302916969757.jpg ) Thumbnail displayed, click image for full size.
124
http://nostarch.com/assembly2.htm

Also, there's a related website:
http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/index.html

The author makes an assembler called HLA (High Level Assembler) to make the transition to Assembly easier if you already have a language or two under your belt.

Also, probably outdated, but...
http://win32assembly.online.fr/tutorials.html
>> No. 125
File 130473731638.png - (840.03KB , 600x800 , 1293846634757.png ) Thumbnail displayed, click image for full size.
125
>>124
Looks great! Thanks a bunch.
>> No. 185
>>123
Assembly is not a language. I'm trying to learn functional, hurr durr. Oh wait, that's not a language either. Imperative? Object-oriented? Nope, not languages either. (Get the analogy?)
Did you mean: x86 assembly
Did you mean: PowerPC assembly
Did you mean: Z80 assembly
Did you mean: .net assembly (lol, totally different)
>> No. 187
File 130491484561.jpg - (57.66KB , 500x375 , Bear and wolf at picnic table.jpg ) Thumbnail displayed, click image for full size.
187
>>185
I'm not sure it matters in this case. Intel processors are so common that most books or tutorials are going to focus on Intel assembly. Learning assembly for other processors would probably require getting the instruction manuals from the respective vendors. If OP does that without some general background in assembly programming, it could cause a big headache.
>> No. 192
I could have sworn there was another post down here a week or so ago... Was it removed for some reason?
>> No. 193
I remember it too. Weird.
>> No. 194
>>193
It's the Rapture. It started early.
>> No. 202
Why?

Are you building an emulator or something?

Why do you need to learn assembly?
>> No. 203
>>202
Maybe OP is trying to optimize something, or perhaps just wants to learn for entertainment value.
>> No. 205
I rather write system calls directly in assembly, optionally with an alternate implementation in C for portability.

Last time I had to do this was when I was porting a C library to Linux.
>> No. 207
>>205
I'm curious about this. Wouldn't the general speed advances in hardware compensate for any latency for a system call in C? Do you just use assembly on the system call, or is it just a smaller part of a larger optimization task?
>> No. 210
>>207
I didn't really care about optimisation in terms of speed, but size did concern me. I used assembly for program startup and system calls including exit. I also had to write a memory allocator, which required a couple more system calls but was otherwise written in plain C (which was easily the most difficult part of the porting job).

But overall using assembly was an easy way to do the port to Linux on x86_64 as the application did not use syscall and I had to write the "glue code" to the kernel by hand anyway. Very little code was needed because the calling conventions are awesome on this platform. C function calls and system calls are almost exactly the same, you just need to know the system call numbers.

/usr/include/x86_64-linux-gnu/asm/unistd_64.h <- they're all there ( sudo apt-get install linux-libc-dev )
>> No. 257
Assembly Language Step-by-Step - Programming with Linux, 3rd Edition
>> No. 270
>>125
She's in my unit. no joke.
>> No. 277
>>270
Anyhting interesting you could share with us?
>> No. 278
Why are pictures suddenly missing from this thread?
>> No. 279
>>278
It seems to have happened on a lot of our lesser-used boards. I think it was in November. Possibly the files were accidentally deleted from the physical server by an external process.


Delete post []
Password  
Report post
Reason  




Inter*Chan Imageboard Top List