3 ms·
I think you can save a byte on the add with 04 1c add al, 0x1c (but i've never written any x86 assembly)
by toast0 12y ago
I think you can save a byte on the add with
04 1c add al, 0x1c
(but i've never written any x86 assembly)
- OMGWTF 12y agoYou are right. I was lazy, I compiled it with gcc -O2 and extracted the assembler with objdump -Mintel -d.
- userbinator 12y agoIn fact you can save 2 bytes if you only care about the result in AL, bringing it down to 13 bytes: b8 cc ee bb 03 mov eax,0x3bbeecc d3 f8 sar eax,cl d3 f8 sar eax,cl 24 03 and al, 3 04 1c add al, 28