Posted By
MMS on 2017-08-20 14:58:25
| Re: How to identify platform in BASIC (Plus/4, C64, C128, maybe VIC20)
Hi! Thank you for the hints! I also think first about the Kernal, but I remember, that in Plus/4 from BASIC you always read the RAM,and NOT the ROM (even with PEEKs). I suppose the C128 is the same.
On the other hand, this hint gave me the idea: it is not the case when you check a C64, above $E000 I can see from BASIC some (kernal) ROMs with fixed value, I can check the values on the net. (I am not sure about VIC-20, but it has rather low resolutions and other limitations, so I may skip that platform.)
-So if I write anything with POKE above $A000, and it is not the same, when I PEEK it, it should be C64. -Next step: if I PEEK (215) on C128: PEEK(215) - 0 = 40 column mode / 128 = 80 column mode, so probably not allow to change it. On Plus/4 it is unused as per SVS map, or by Speech modul (so unused). Probably I can write and re-read it. So if I write 64 to address 215, after then the PEEK(215) will show 64 if it is Plus/4, and 0 or 128, if C128.
Thanks!
|