# HG changeset patch # User boisy # Date 1053544492 0 # Node ID 568feb731d6df2a5b7ab7909ca9701ca52576447 # Parent 5b3671305159dee035e450bb5ca0478595bd4b65 Rodney Hamilton shortened cputype even more... GO RODNEY! diff -r 5b3671305159 -r 568feb731d6d level1/cmds/cputype.asm --- a/level1/cmds/cputype.asm Wed May 21 13:45:29 2003 +0000 +++ b/level1/cmds/cputype.asm Wed May 21 19:14:52 2003 +0000 @@ -8,6 +8,7 @@ * 1 Started ADK ??/??/?? * 2r1 Fixed a crash bug on 6809, now just reports BGP 03/04/02 * 6809 message on a 6809 +* 3r1 Rearranged code, used short offsets RVH 03/04/23 nam CPUType ttl Identify 6809 or 6309 @@ -19,7 +20,7 @@ tylg set Prgrm+Objct atrv set Reent+Rev rev set 1 -edition set 2 +edition set 3 org 0 rmb $0100 for the stack @@ -30,11 +31,11 @@ name fcs /CPUType/ fcb edition +c.6809 fcc /CPU: 6809/ + fcb C$CR + c.6309 fcc /CPU: 6309, running in / L6309 equ *-c.6309 -c.6809 fcc /CPU: 6809/ - fcb C$CR -L6809 equ *-c.6809 m.6809 fcc /6809 mode./ fcb C$CR @@ -42,21 +43,15 @@ m.6309 fcc /6309 native mode./ fcb C$CR -is.6809 leax c.6809,pc - ldy #L6809 - lda #1 - os9 I$WritLn - clrb - os9 F$Exit - * Entry of program * First, let's determine if we have a 6309 or 6809 Start ldd #$FFFF make sure D is non-zero + leax