1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-18 05:28:09 +00:00
bddisasm/bddisasm_test/x86/basic/address_16.asm

31 lines
734 B
NASM
Raw Normal View History

2020-07-21 08:19:18 +00:00
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]