就是struct定义的结构,最好举个例子,谢谢
參考答案:名字 STRUCT
域的声明
名字 ENDS
例如
Employee STRUCT
IdNum byte "000000000000"
LastName byte 30 DUP(0)
Years word 0
Salaryhistory dword 0,0,0,0
Employee ENDS
声明结构体变量
worker Employee <>
worker1 Employee <"***********">
引用:
mov dx, worker.Years
mov worker.SalaryHistory, 20000 ;第一次salary
mov worker.salaryHistory+4, 30000 ;第二次salary
mov edx, OFFSET worker.LastName
间接操作数
mov esi, OFFSET worker
mov ax, (Employee PTR [esi]).Years