Created
March 8, 2026 13:57
-
-
Save mit41301/51dc25ca2584e652fb9d0ea8e242578f to your computer and use it in GitHub Desktop.
DUMP the ROM in HEX using BASIC-52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 INPUT "Enter start address:",A | |
| 15 A=A.AND.0FFF0H | |
| 20 C=0 | |
| 30 PRINT ":10", : B=INT(A/256) : GOSUB 100 : B=A.AND.255 : GOSUB 100 | |
| 40 PRINT "00", : FOR I=0 TO 15 : B=CBY(A+I) : GOSUB 100 : NEXT | |
| 50 B=C.AND.255 : GOSUB 100 : PRINT | |
| 60 IF A<0FFF0H THEN A=A+16 :GOTO 80 | |
| 70 END | |
| 80 IF GET=0 THEN GOTO 20 | |
| 90 END | |
| 100 C=C+B : D=INT(B/16) : GOSUB 110 : D=B.AND.15 | |
| 110 IF D>9 THEN PRINT CHR(D+55), ELSE PRINT CHR(D+48), | |
| 120 RETURN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment