Quote:
Originally Posted by alkis
I don't think that's supported in the later versions of gcc.
As you can read here http://cahirwpz.users.sourceforge.ne...gaos/chip.html it should be .datachip but I get:
funcs.s:12: Error: unknown pseudo-op: `.datachip'
(from m68k-amigaos-gcc (GCC) 3.4.0 / GNU assembler 2.14)
If you are gonna play more with assembly and less with C you should really switch to vasm as Matthey already suggested.
If however you insist on C/asm, have a look and steal a technique or two from here f.ex.
https://github.com/astrofra/amiga-ex.../fx_routines.c
|
Bebbo's version allows and supports ".datachip" (v6)
Code:
GNU assembler version 2.35.2 (m68k-amigaos) using BFD version (GNU Binutils) 2.35.2.220518-152237
gcc version 6.5.0b 220509171442 (GCC)
Code:
.datachip
dc.w 1000,2000
_end_of_ng_data:
disassembles (IRA) into
Code:
SECTION S_2,DATA,CHIP
__end:
DC.W $03e8 ;10a88
DC.B $07 ;10a8a
_end_of_ng_data:
DC.B $d0 ;10a8b
which is buggy (the label is shifted by 1 byte...) so maybe there are some issues but at least the data is in chipmem all right. Note: using ".word" syntax or 1 "dc" per data doesn't fix the bug.