mirror of
https://github.com/bitdefender/bddisasm.git
synced 2024-11-17 21:18:27 +00:00
9ba1e6a2f9
Multiple minor fixes to existing instructions. Moved x86 decoding tests in a separate directory & improved the test script.
31 lines
734 B
NASM
31 lines
734 B
NASM
bits 16
|
|
|
|
;
|
|
; 16 bit addressing
|
|
;
|
|
mov ax, word [bp]
|
|
mov ax, word [0x7FFF]
|
|
mov ax, word [bx + 0x7F]
|
|
mov ax, word [bx + 0x7FFF]
|
|
mov ax, word [bp + di]
|
|
mov ax, word [bp + si]
|
|
|
|
;
|
|
; 32 bit addressing
|
|
;
|
|
mov ax, word [ecx]
|
|
mov ax, word [ecx + edi]
|
|
mov ax, word [ecx + edi * 4]
|
|
mov ax, word [ecx + edi * 4 + 0x7f]
|
|
mov ax, word [ecx + edi * 8 + 0x7fffffff]
|
|
mov ax, word [0x7fffffff]
|
|
|
|
|
|
;
|
|
; Segment prefix.
|
|
;
|
|
mov ax, word [fs:0x30]
|
|
mov ax, word [fs:ecx]
|
|
mov ax, word [fs:ecx + edi]
|
|
mov ax, word [fs:ecx + edi * 2]
|
|
mov ax, word [fs:ecx + edi * 2 + 0x1000] |