delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/07/06/13:05:30

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200207061632.g66GWww09950@speedy.ludd.luth.se>
Subject: djasm addressing mode problems
To: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Date: Sat, 6 Jul 2002 18:32:57 +0200 (CEST)
X-Mailer: ELM [version 2.4ME+ PL78 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019