RE: Plus/4 C16 Questions

From: COPLIN, Nicholas. (ncoplin_at_orbeng.com.au)
Date: 2000-02-23 09:55:22

Hi,
>  
> > 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.
> 
[COPLIN, Nicholas.]  I don't have a kernal listing.... I don't know where
the SETLFS routine is... have these been published on the net?

> > 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?  
[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?
----------------------------------------------------------------------------------------------
PLEASE TAKE NOTE:

The contents of this email (including any attachments) may be 
privileged and confidential. Any unauthorised use of the contents
is expressly prohibited.  If you have received this email in error,
please advise us immediately (you can contact us by telephone 
on +61 8 9441 2311 by reverse charge) and then permanently 
delete this email together with any attachments. We appreciate 
your cooperation.
 
Whilst Orbital endeavours to take reasonable care to ensure 
that this email and any  attachments are free from viruses or other
defects, Orbital does not represent or warrant that such are free from 
computer viruses or other defects.

(C) 2000: Orbital Engine Company (Australia) Pty Ltd and its affiliates
-
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.