Last active
May 8, 2024 22:24
-
-
Save gnacu/a918df571211966a19eff54056236045 to your computer and use it in GitHub Desktop.
This file contains 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 print"ascii to petscii converter" | |
20 print"copyright to whoever wrote it" | |
30 print | |
40 input"source file";sf$ | |
50 input"destination file";df$ | |
60 dv=peek(186) | |
70 open2,dv,2,sf$+",s,r" | |
80 open3,dv,3,df$+",s,w" | |
85 rem -------------------------------- | |
90 get#2,a$:s=status | |
100 a=asc(a$+chr$(0)) | |
110 if a<64 then140 | |
120 if a<96 then a=a+128:goto140 | |
130 a=a-32 | |
140 print#3,chr$(a); | |
150 if s=0 then 90 | |
155 rem ------------------------------- | |
160 close2:close3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment