Date : Wed, 17 Nov 2010 09:26:10 +0000 (GMT)
From : info@... (Sprow)
Subject: Hints'n'Tips: Assembling non-ARM code on ARM BASIC
In article <20101117092008.wr28fyeogsc4k4gk@...>,
J.G.Harston <jgh@...> wrote:
> 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.
You must be using a seriously crusty version of BASIC 5 then, NOP has been
accepted as a synonym for "MOV r0,r0" for over 11 years,
Sprow.