0% found this document useful (0 votes)
5 views1 page

Address in 8086

The document provides a detailed breakdown of machine code instructions for moving data between registers and memory addresses in assembly language. It includes the opcode, Mod-Reg-R/M byte, address in little-endian format, and the complete machine code for various operations involving AX, BX, CX, and DX registers. Additionally, it notes a specific change related to the binary representation of the instruction set.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Address in 8086

The document provides a detailed breakdown of machine code instructions for moving data between registers and memory addresses in assembly language. It includes the opcode, Mod-Reg-R/M byte, address in little-endian format, and the complete machine code for various operations involving AX, BX, CX, and DX registers. Additionally, it notes a specific change related to the binary representation of the instruction set.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Instruction Opcode (100010dw) Mod-Reg-R/M Byte (mod=00, r/m=110) Address (Little Endian) Machine Code

MOV [0030], AX 89 (d=0, w=1) 00 000 110 (AX=000, [0030]=110) 30 00 89 06 30 00


MOV [0030], BX 89 00 011 110 (BX=011, [0030]=110) 30 00 89 1E 30 00
MOV [0030], CX 89 00 001 110 (CX=001, [0030]=110) 30 00 89 0E 30 00
MOV [0030], DX 89 00 010 110 (DX=010, [0030]=110) 30 00 89 16 30 00

Instruction Opcode (100010dw) Mod-Reg-R/M Byte (mod=00, r/m=110) Address (Little Endian) Machine Code
MOV AX, [0030] 8B (d=1, w=1) 00 000 110 (AX=000, [0030]=110) 30 00 8B 06 30 00
MOV BX, [0030] 8B 00 011 110 (BX=011, [0030]=110) 30 00 8B 1E 30 00
MOV CX, [0030] 8B 00 001 110 (CX=001, [0030]=110) 30 00 8B 0E 30 00
MOV DX, [0030] 8B 00 010 110 (DX=010, [0030]=110) 30 00 8B 16 30 00

if [1111] Just change this


11 11

You might also like