If you can write in AT&T syntax, you can write in Intel, vise versa. The greatest benefit with GAS for me though was because I already had GCC that meant I already had GAS which is why I chose GAS, haha. Another friend was forced to take a class on MASM for his computer science degree. What really got me started on assembly though was my friend started doing assembly for NASM. I heard assembly was a lot of fun so I decided to learn it. the number of bytes is equal to (ecx*-1)-2Ĭomputer science and programming is what I study and do for entertainment and that's its only use to me, haha, I am training to be EMT-1 (hopefully a paramedic later on) right now so I doubt I'll be using Linux to do CPR or anything like that, haha. use two's complement logic to find the number of bytes counts number of bytes before we find the value finds the length of the string pointed to by eax. Sys_open ebx, O_RDONLY open file for readingĬmp eax, -1 check for error during open call Dec ebp we dont care about the program name
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |