[Coco] NitrOS9 and 6309 code
Robert Gault
robert.gault at att.net
Sat Jun 1 08:09:08 EDT 2019
Gene,
The following should work as I believe the 6809 just ignores "illegal" opcode.
ldb #123
clrd
tstb
beq 6309 code
6809 code
CLRD looks like a CLRA to a 6809 as it skips over the $10 in $10,$4F.
Robert
Gene Heskett wrote:
><snip>
> I don't recall if there is a bulletproof method to actually do a runtime
> test to see which processor we're running on, one that gives a yes/no
> answer without crashing a 6809. Has anyone written such a critter yet?
>
><snip>
More information about the Coco
mailing list