I guess as the PETs have at least 40 columns screen wide you donīt need to check that. One problem, though. The start address of a Basic program is different - $0401 for a PET, which is fixed, i.e. the PET _always_ loads to the supplied start address, which makes it fail to load C64 basic progs, that load to $0801. The CBM-II even have a weirder loading scheme. Basic code starts at address $0002 (in a memory bank different from the "standard" bank with zero/stack page. You could check all that with the VICE emulator if you like. Andre > > Why would you want to do that? > [COPLIN, Nicholas.] I'm writing a disk directory program and want the same > BASIC program to run all IEC equipped CBM machines. Hence I would like to > know if I'm on a C16 or Plus/4 so that I can peek(lastdev) instead of > peek(186). On the Vic20 I need to "correct" for a 23 column screen, but > Peek(186) is valid. I have a programmers reference guides for the Vic, C64, > C128... but no serious books on the C16/Plus4... was there ever a > programmers reference guide released? - This message was sent through the cbm-hackers mailing list. To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tcm.hut.fi.
Archive generated by hypermail 2.1.1.