追記 NASMでの構造体の参照
気になって調べてみた。こっちのほうがシンプルに書ける気がする。
struc mytype
NASM - The Netwide Assembler
mt_long: resd 1
mt_word: resw 1
mt_byte: resb 1
mt_str: resb 32
endstruc
あとは"mov ax,[mystruc+mytype.word]"のような形で利用する。
気になって調べてみた。こっちのほうがシンプルに書ける気がする。
struc mytype
NASM - The Netwide Assembler
mt_long: resd 1
mt_word: resw 1
mt_byte: resb 1
mt_str: resb 32
endstruc
あとは"mov ax,[mystruc+mytype.word]"のような形で利用する。