Posted By
Hypex on 2017-08-20 13:27:23
| Re: How to identify platform in BASIC (Plus/4, C64, C128, maybe VIC20)
I remember this BASIC listing once that detected what machine it was on and set variables to where it could poke colours in. It detected VIC20, C16, +4 and C64 IIRC.
I thought it was Head for home but after a look it's not. It may have been some other MasterMind game. Memories a bit rusty, 30 years ago, that sort of thing.
But it seems obvious that you could check the ROM kernel or BASIC kernel. Are these set at $8000 and $C000? Or, check common Commodore vectors. Either reset vectors or other ROM jump points.
Checking $00/$01 might work. Don't know about VIC20 but C16 and C64 would have different things in DDR and PORT register.
Apart from that I thought someone would have documented it. And it just occurred. CBM File Browser. I was browsing the code. Looked kinda long.
|