[Coco] Monitor / Hex Dump for BASIC?

Stephen Pereira spereira1952 at comcast.net
Sat Dec 6 13:27:56 EST 2014


Here is some BASIC code for you:

100 REM Dump memory in hex and ASCII
110 REM
110 A = &H100 : REM Start address
115 L = 0 : REM Line counter
120 A$ = "000" + HEX$(A)
130 A$ = RIGHT$(A$,4) 
140 PRINT A$;": ";
150 FOR I = 0 TO 15
160 S$ = "0" +HEX$(PEEK(A+I))
170 S$ = RIGHT$(S$,2)
180 PRINT S$;" ";
190 NEXT I
200 FOR I = 0 TO 15
210 IF PEEK(A+I) >= 32 AND PEEK(A+I) <= 126 THEN PRINT CHR$(PEEK(A+I)); ELSE PRINT".";
220 NEXT I
230 PRINT
233 L = L+1 : REM Increment the line counter
235 IF L>64 GOTO 300 : REM Arbitrary stop after 1024 bytes output
240 A = A+16
250 GOTO 120
300 END

smp
--
Stephen M. Pereira
Bedford, NH  03110
KB1SXE

> ------------------------------
> 
> Message: 10
> Date: Sat, 6 Dec 2014 09:35:44 -0500
> From: Brett Gordon <beretta42 at gmail.com>
> To: CoCoList for Color Computer Enthusiasts <Coco at maltedmedia.com>
> Subject: [Coco] Monitor / Hex Dump for BASIC?
> Message-ID:
> 	<CAK2=s2ogiFczNYANE9D6pyuaJbUOL54M1HaJGXv5411X7NmxXw at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> Is there a monitor or a simple memory Hex dumper for Basic?
> 
> -- 
> Brett M. Gordon,
> beretta42 at gmail.com
> 
> 



More information about the Coco mailing list