Skip to content

Instantly share code, notes, and snippets.

@versluis
Created March 23, 2018 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save versluis/0b2ecdd3f39ead5f7ed1ff6839d7ac53 to your computer and use it in GitHub Desktop.
Save versluis/0b2ecdd3f39ead5f7ed1ff6839d7ac53 to your computer and use it in GitHub Desktop.
Creates a simple clock in Commodore BASIC
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
@versluis
Copy link
Author

I'm building this code in a screencast - check it out here: https://youtu.be/J2rUiV-hDmw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment