I'm trying to write string literals in ASM for GBDK's LCC. I can write each individual character and the compiler is working fine.
.D_LINE = 0x0A
;; Works
.db "G", "I", "A", "N", "L", "U", "C", "A", #.D_LINE
However, when I try and combine the characters into a single string to make it more readable:
.D_LINE = 0x0A
;; Doesn't work
.db "GIANLUCA", #.D_LINE
I get a compilation error:
text.s:12: Error: <o> .org in REL area or directive / mnemonic error
Is there any way to get around this?
Version information
$ lcc -v
lcc $Id: lcc.c,v 1.6 2001/10/28 18:38:13 michaelh Exp $
$ sdcc -v
SDCC : gbz80/z80 2.3.1/gbdk-2.96a (Nov 4 2001) (UNIX)
Here comes the directive list:
see https://github.com/hschmitt/gbdk/blob/d7707bf2b3c5433edcd37d53a1475fd51a9b9502/as/z80pst.c