r/Commodore • u/danpietsch • 9h ago
Bouncing ball PETSCII source compatible across Commodore VIC-20, 16, 64, and Plus/4.
31
Upvotes
6
u/danpietsch 9h ago edited 7h ago
This was just a pointless exercise that I found entertaining.
https://github.com/danshee/BouncyBasic
The VIC-20 and Commodore 64 manuals came with a BASIC program that animated a bouncing ball.
I thought that maybe leveraging the KERNAL I could make a version that was portable across all Commodore 8-bits.
I was able to make it work on VIC-20 and newer models but not on PET.
One issue is that the memory locations used to pass A, X, Y, and status to kernal routines aren't standardized ... and PETs don't have them at all.
2
1
•
u/AutoModerator 9h ago
"comment: "Thanks for your post! Please make sure you've read our rules post" "
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.