mirror of
https://github.com/NishiOwO/JWasm.git
synced 2025-04-22 01:04:39 +00:00
20 lines
316 B
NASM
20 lines
316 B
NASM
|
|
;--- struct member forward reference
|
|
|
|
.286
|
|
.model small
|
|
|
|
.code
|
|
|
|
mov [bx].S1.f1,2 ;in v2.06, error 'Size not specified, assuming BYTE'
|
|
mul [bx].S1.f1 ;in v2.06, error 'Instruction operand must have size'
|
|
push [bx].S1.f2 ;ok
|
|
call [bx].S1.f2 ;ok
|
|
|
|
S1 struct
|
|
f1 db ?
|
|
f2 dw ?
|
|
S1 ends
|
|
|
|
end
|