Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 'Mov wrong parameters'

I'm starting to learn Assembly (ASM x86). I'm using the emulator emu8086. I've written the following instruction:

mov eax,3

When I'm trying to emulate the instruction, emu8086 writes: wrong parameters MOV eax,3. probably it's an undefined var: eax

In addition, when I replaced eax with ax, ah or al - It worked just fine.

Why is it like that? What should I do in order to fix this problem? Thanks.

like image 457
Programmer Avatar asked Jul 21 '26 04:07

Programmer


1 Answers

emu8086 emulates the original 8086. It's a 16 bit processor, so there are no 32 bit registers (eax, ebx, etc.)

For a bit more information on the register layout, check out the Wikipedia page on the Intel 8086.

like image 149
chbaker0 Avatar answered Jul 22 '26 20:07

chbaker0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!