-1
.data
val1 SWORD 8 ;declare signed 16-bit word and initalize with
val2 SDWORD 15 ;declare 32-bit signed double-word and initalize with -15
val3 SDWORD 20 ;initalize SDWORD w/ 20
.code
main PROC
;EAX = -val2 + 7 – val3 + val1
mov eax,0
mov eax,val2 ;mov val2 to 32 bit register, eax =
neg eax
add eax,7 ;add 7 register eax =
sub eax,val3 ;sub val3 from eax =
mov ax,val1
movsx eax,ax ;I dont know if this is the same thing as adding?
call DumpRegs
您可能想要查看本網站的Assembly語言參考:http://www.woodmann.com/crackz/Tutorials/Drme2.htm。這應該回答你的一些問題。 – ForceMagic
你想在這裏添加哪兩個變量? –