mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-15 09:09:58 +08:00
4402af0c59
Not all covered but still worth to put in Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
18 lines
297 B
NASM
18 lines
297 B
NASM
;Testname=optimized; Arguments=-Ox -fbin -obr2003451.bin; Files=stdout stderr br2003451.bin
|
|
|
|
cpu 8086
|
|
org 0
|
|
|
|
; MOV r/m16,imm16
|
|
; (imm16 given as number)
|
|
mov word [bx], 10h
|
|
|
|
; MOV r/m16,imm16
|
|
; (imm16 given as label)
|
|
mov word [bx], label
|
|
|
|
align 10h
|
|
|
|
; This label is at address 10h
|
|
label:
|