🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.dragon
1 messages
1 total messages Started by Stephen J Woolham Wed, 24 May 2000 00:00
New CPU Detect Program !!!
#6
Author: Stephen J Woolham
Date: Wed, 24 May 2000 00:00
19 lines
1736 bytes
Due to a bug in the machine code the program as listed on the new CoCo pages
under "Software Techniques and Reference" by Robert Gault will always return
the same result (6309) no matter which CPU is present.
The program listed here will correctly identify which CPU is present and can
be run on all Coco's and Coco Clones such as the Dragon 32/64.


10 ' 6309/6809 CPU ID PROGRAM
20 ' FOR THE COCO/COCO III
30 ' AND DRAGON 32/64
40 ' BY STEPHEN J WOOLHAM
50 '
60 START=&HD00
70 FOR I=START TO START+15:READ A$:POKE I,VAL("&H"+A$):C=C+PEEK(I):NEXT:IF
C<>1363 THEN PRINT"ERROR IN DATA LINE":END
80 EXEC START
90 IF PEEK(157)=3 THEN CPU$="6309"ELSE IF PEEK(157)=9 THEN CPU$="6809"
100 PRINT"A "+CPU$+" CPU IS PRESENT...":END
110 DATA C6,FF,10,4F,5D,27,04,86,9,20,2,86,3,97,9D,39
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads