I would take the approach to peek() some special locations in the ROM to determine the ROM/machine version. Then read the addresses for the system variables from a basic DATA table Andre Marko Mäkelä wrote: > On Wed, 23 Feb 2000, COPLIN, Nicholas. wrote: > It's $ffba or $ffbd (the other is setnam). A quick look at the C64 > > 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). > > Okay, I assumed that you meant exclusive or, not inclusive or. I don't > know. Have a look at the archived KERNAL ROM images on FUNET, and see if > there is a byte in the $ff00 page that could be relied upon, or check > e.g. one of the vectors at the $0300 page. Neither method is reliable > with modified ROMs, and the latter is less reliable, as the vectors can > be changed e.g. by software-based fastloaders. - 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.