On Thu, 01 Oct 2015 07:30:39 +0200 (CEST) "Vaclav Peroutka" <vacla...@seznam.cz> wrote:
> Hello all, > > I got some old Z80 assembler source code and tried to compile it with SDCC's > assembler. sdasz80 speaks a very strange dialect of Z80. If you are just working with Z80 assembler then there are much better free assemblers. If you want to mix it with SDCC then the main oddities are ld a, const has be turned into ld a, #const ld a, (ix+3) into ld a, 3(ix) and the use of .org usually makes no sense because you set the addresses using linker scripts. That's much more flexible and powerful. > mumak47.20141226.asm:249(http://mumak47.20141226.asm:249): Error: <o> .org > in REL area or directive / mnemonic error > mumak47.20141226.asm:262(http://mumak47.20141226.asm:262): Error: <o> .org > in REL area or directive / mnemonic error > mumak47.20141226.asm:262(http://mumak47.20141226.asm:262): Error: <q> > missing or improper operators, terminators, or delimiters > > On those lines, there are SLS D and SLL D instructions. SLS and SLL are not official Z80 instructions, nor do they work on all the platforms that SDCC targets as "Z80". You can probably fudge most of these using the .macro feature of the assembler rather than changing the assembler. If you are just working on old asm and expect the usual format then take a look at zmac. Alan ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user