0
我使用x86 32位。装配移位操作?
问题是我不能将位移到左边。
我想每次读取一个字节并将其放入eax
,但我搞乱了移位。我无法将这些位移入高位。任何想法?
myStr byte "12345678"
mov ecx, offset myStr
mov dl, myStr[ecx]
sub dl,30h ;convert to real digit
mov al, dl
shl al,4
inc ecx
;eax should look like this end of the operation 12345678
尝试'或al,dl'而不是'mov'。也许也想要转移所有的'eax'。 –
eax在技术上不会“看起来像”12345678。 – Gunner