Re: Plus/4 C16 Questions

From: Marko Mäkelä (msmakela_at_cc.hut.fi)
Date: 2000-02-23 09:31:49

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

> 1) Peek(186) on the C64/C128/Vic gives the last device's number, what's the
> equivalent peek on a C16 or Plus4

Have a look at the SETLFS routine.  It's a jump to a routine that performs
three store operations and a return from subroutine.

> 2) is there a way in BASIC to detect if the program is running on a C16 or
> Plus/4? I'd assume I just look into the ROM somewhere, but where ???

Why would you want to do that?  E.g. my C16 has been expanded to 64
kilobytes of RAM.  If you want to see if the computer has 16 kilobytes,
just write something e.g. to $7fff and see if it appears in the RAM at
$3fff.  As far as I know, the C16 and the plus/4 have exactly the same
ROMs, except for the 3-plus-1 ROM, which the C16 doesn't contain.

BTW, there's a plus/4 mailing list at plus4@c64.rulez.org.

	Marko

-
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.