RE: Plus/4 C16 Questions

From: Marko Mäkelä (
Date: 2000-02-23 10:05:51

On Wed, 23 Feb 2000, COPLIN, Nicholas. wrote:

> I don't have a kernal listing.... I don't know where the SETLFS
> routine is... have these been published on the net?

It's $ffba or $ffbd (the other is setnam).  A quick look at the C64 KERNAL
binary reveals that the routine is $ffba (a jump to $fe00 that does stx
$ba, among others).  On the C16, it jumps to $f413, which does
sta$ac:stx$ae:sty$ad:rts.  So, the answer to your question is 174.

> 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

Archive generated by hypermail 2.1.1.