Date : Wed, 17 Nov 2010 09:20:08 +0000
From : jgh@... (J.G.Harston)
Subject: Hints'n'Tips: Assembling non-ARM code on ARM BASIC
Sprow wrote:
> Didn't know single line was a requirement.
Only 'cos I'd always used the single line construction in my Z80
source files from 1990 or so onwards. The IF FALSE THEN construction
would be better.
> I did think of assembling NOP and
> then looking at the opcode output
> P%=TOP:[NOP:]:IF?TOP=&EA THEN is6502 ELSE isARM
> but that doesn't cope with the case of 6502 assembler patched into ARM BASIC,
Genereates an error on ARM BASIC: No such mnemonic.
However, it *does* cope with ARM BASIC patched with a 6502 assembler, as
that's the case the assembly files are looking for. If I'm running on 6502
BASIC, keep going, else if I'm running on ARM BASIC and not Basic6502, pass
on to Basic6502.
--
J.G.Harston - jgh@...