Mail Archives: djgpp-workers/2002/07/06/13:05:30
Consider this little piece of code:
.org 0x100
jmp start
my_dd:
.dd 0
my_dw:
.dw 0
start:
mov esi, 0x200
movw [si], 0
movw 0x04[si], 0
movw [si+0x04], 0
movw [si], my_dw
movw 0x04[si], my_dw
movw [si+0x04], my_dw
; movl [esi], 0
; movl 0x04[esi], 0
; movl [esi+0x04], 0
; movl [esi], my_dd
; movl 0x04[esi], my_dd
movl [esi+0x04], my_dd
On all the lines involving movl and esi, djasm errors out. E. g. the
uncommented one says:
djasm.error_message.2.asm:22: parse error, expecting `'='' or `STRUCT' or `':''
djasm.error_message.2.asm:22: Last token was `<[>' ('[')
djasm.error_message.2.asm: 1 errors
I've looked at djasm.y and as far as I see, there are things in the
grammar that seems to support this. (But obviously they don't trigger
or work.)
Any ideas?
Right,
MartinS
- Raw text -