Timeline for Tips for golfing in x86/x64 machine code
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 29, 2018 at 13:31 | comment | added | Peter Cordes |
Normally the most useful ones are the al, imm8 special cases, like or al, 0x20 / sub al, 'a' / cmp al, 'z'-'a' / ja .non_alphabetic being 2 bytes each, instead of 3. Using al for character data also allows lodsb and/or stosb . Or use al to test something about the low byte of EAX, like lodsd / test al, 1 / setnz cl makes cl=1 or 0 for odd/even. But in the rare case where you need a 32-bit immediate, then sure op eax, imm32 , like in my chroma-key answer
|
|
Jul 17, 2017 at 21:53 | history | undeleted | Govind Parmar | ||
Jul 17, 2017 at 21:53 | history | edited | Govind Parmar | CC BY-SA 3.0 |
deleted 104 characters in body
|
Jul 17, 2017 at 21:52 | history | deleted | Govind Parmar | via Vote | |
Jul 17, 2017 at 21:47 | history | answered | Govind Parmar | CC BY-SA 3.0 |