Pas de Code
76 subscribers
106 photos
1 file
402 links
What I cannot create, I do not understand.

DM: @alexey_mileev
Original channel in RU: @devballet
Twitter: twitter.com/pasdecode_
Download Telegram
First, they tell you that reading assembly is easy. Then they tell you that
- RAX register is 64 bits
- EAX is lower 32 bits of RAX
- AX is lower 16 bits of RAX
- AL is lower 8 bits of RAX
- AH is higher 8 bits of AX
- Writing to them works as expected, but writing to EAX will zero out the rest of RAX
- There are a bunch of different registers, e.g. RAX, RCX, RDX, RBX. Yep, not ABCD, but ACDB. It's the order they're stored in
- (╯°□°)╯︵ ┻━┻

#cpu #assembler #compiler
👍2