Created
March 23, 2018 22:09
-
-
Save versluis/0b2ecdd3f39ead5f7ed1ff6839d7ac53 to your computer and use it in GitHub Desktop.
Creates a simple clock in Commodore BASIC
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
5 input "qwhat is the current time (hhmm | |
ss) ";ti$ | |
10 print chr$(147):print chr$(5) | |
20 a$ = left$(ti$,2) | |
25 a$ = a$ +":" | |
30 a$ = a$ + mid$(ti$,3,2) | |
35 a$ = a$ +":" | |
40 a$ = a$ +right$(ti$,2) | |
50 gosub 200 | |
60 print chr$(19) | |
70 print "qqqqqqqqqqq]]]]]]]]]]]]]]curre | |
nt time" | |
80 print "]]]]]]]]]]]]]]]]"; | |
90 print a$ | |
100 goto 20 | |
200 rem print a box | |
210 print chr$(19) | |
220 print "qqqqqqqqqq]]]]]]]]]]]]]UCCCCC | |
CCCCCCCI" | |
230 print "]]]]]]]]]]]]]B]]]]]]]]]]]]B" | |
240 print "]]]]]]]]]]]]]B]]]]]]]]]]]]B" | |
250 print "]]]]]]]]]]]]]JCCCCCCCCCCCCK" | |
299 return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm building this code in a screencast - check it out here: https://youtu.be/J2rUiV-hDmw