gnu as 中 宏macro如何使用??
.macro descriptor base, limit, attr
.word \limit & 0xffff
.word \base & 0xffff
.byte (\base >> 16) & 0xff
.word (\limit >> 8) & 0x0f00 | \attr & 0xf0ff
.byte (\base >> 24)& 0xff
.endm
以上是本人定义的段描述符
但在data段中使用 LABEL_CODE32:
descriptor 0, $Seg32_len-1, $CAttr_XW+$Attr_32
却显示错误 没有descriptor这条指令
这该如何改正???
谢谢