Dears,

Recently I traced some asm codes but encountered some problems.

I have two asm files.

1. table.asm
2. control.asm
3. prefix.inc

In table.asm, it defines a public procedure list below:

PUBLIC Table
Table:
  ENTRY  stand_action, REG4, STS, REG30, EN_bit
                            ....

In prefix.inc, it defines ENTRY MACRO & a structure list below:

cause      STRUCT
action DD 0
Reg  DB 0
Mask DW 0
en_bit DB 0
en_mask DW 0
cause ENDS

ENTRY MACRO action, reg, mask, en, enmask
  EXTERN action&label:NEAR
DD action&label  
DB reg
DW mask
DB en
DW enmask

....

ENDM

In control.asm, it has one block specifies list below:

EXTERN Table:BYTE
...
mov esi,OFFSET Table
mov al, BYTE PTR .cause.Reg
---------------------------------------------
My question is:
For "mov al, BYTE PTR .cause.Reg", could it directly call by this to access Reg?
is this Reg the same with reg in MACRO defined?

Thanks!
Posted on 2008-02-23 05:04:49 by techo