Home » Personal collection » Commodore tapes » Commodore_64 » drawer_tr_tape02a_hf90_c64_tape_2.wav » code-enter
code-enter
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
| Tape/disk: | Home » Personal collection » Commodore tapes » Commodore_64 » drawer_tr_tape02a_hf90_c64_tape_2.wav |
| Filename: | code-enter |
| Read OK: | ✔ |
| File size: | 01F2 bytes |
| Load address: | 0801 |
| Exec address: | 0000 |
File contents
5 A=0
10 INPUT C$
20 X$=MID$(C$,1,2)
30 Y$=MID$(C$,3,3)
40 Z$=MID$(C$,6,2)
50 X=(ASC(MID$(X$,1,1))-48-INT(ASC(MID$(X$,1,1))/65)*7)*16
60 X=X+ASC(MID$(X$,2,1))-48-INT(ASC(MID$(X$,2,1))/65)*7
70 Y=(ASC(MID$(Z$,1,1))-48-INT(ASC(MID$(Z$,1,1))/65)*7)*16
80 Y=Y+ASC(MID$(Z$,2,1))-48-INT(ASC(MID$(Z$,2,1))/65)*7
90 POKE8192+A,X
100 FORR=1TO3
110 POKE8192+R+A,ASC(MID$(Y$,R,1))
120 NEXT
130 POKE8196+A,Y
140 A=A+5:GOTO10
1000 FORR=8192 TO 9000
1010 IF PEEK(R)>32 THEN PRINTCHR$(PEEK(R));
1020 IF PEEK(R)<33 THEN PRINT".";
1030 NEXT
2000 OPEN1,1,1,"ASSCODE"
2010 PRINT#1,0
2020 FORR=8192TO9000
2030 PRINT#1,PEEK(R)
2040 NEXT
2050 PRINT#1,-1
2060 CLOSE#1
A�0 � C$ # X$��(C$,1,2) 4 Y$��(C$,3,3) E( Z$��(C$,6,2) u2 X�(�(�(X$,1,1))�48��(�(�(X$,1,1))�65)�7)�16 �<