Skip to content

Instantly share code, notes, and snippets.

@tomaes
Last active April 22, 2019 12:51
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 tomaes/90cf5c89e763ed7d9d77fa749a444792 to your computer and use it in GitHub Desktop.
Save tomaes/90cf5c89e763ed7d9d77fa749a444792 to your computer and use it in GitHub Desktop.
A tiny program (with some fancy output) to detect a (classic) C64 OS/KERNAL and its version (well, v3 only, but hey...). Works on all(?) 8bit CBM machines.
0 c=-(peek(58504)=54): poke1024,.: k=-((peek(55296)and15)=14)
1 print"c64:"chr$(16*c+99),"kernal v3:"chr$(16*k+99)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment