[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PEEKs and POKEs for IIgs's



In article <1e446bd.1vwktwi1hl5d0iN%dempson@actrix.gen.nz>,
dempson@actrix.gen.nz (David Empson) wrote:

> Jon Bettencourt <jonINTERNETrelayCHAT@napaVALLEYnet.CLARInet> wrote:
> 
> > I just got a ROM 3 IIgs and I need PEEKs and POKEs for the following:
> > 
> > * Data to and from the serial ports
> 
> You can't do this safely with peeks and pokes.  The IIgs has a rather
> complex interrupt architecture, not to mention the complexity of the
> serial chip itself.  You should use the serial firmware, which has more
> features than you are ever likely to need from Applesoft BASIC.
>
> It is a lot more powerful than the Super Serial Card's firmware.  In
> particular, the IIgs serial firmware can buffer transmit and receive
> data automatically.

OK. How do I access the firmware from Applesoft?

I've tried something like this (for a simple terminal program):

10 GET A$:PR#2:PRINT A$;:PR#0:IN#0:PRINT A$;:IN#2
20 IF A$ = CHR$(4) THEN END
30 GOTO 10

I can send my Global Village Gold II modem commands using that (I can get
it to attempt to dial 5551212 only to find there's no dialtone because I
don't have it connected to my telephone line) but the computer can't
remember the cursor position. Each character is overwritten by the next
one.

When I started up the computer this morning, I typed the program in (I
don't have any disks so I wrote it down on paper) and it didn't work at
all.

> > * Position of the ADB mouse
> 
> You can't PEEK this either.  You can use the mouse firmware, if you have
> slot 4 set to Mouse.  (If not, your only option is to use machine code
> and call the Miscellaneous Toolset.)

OK. Now how do I access _that_ firmware? 

> > * Activating and drawing on the Super HiRes screen
> 
> Third time no luck either.  You may be able to display the SHR screen,
> but you can't draw to it without help from machine code.

-- 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
jonrelay@napanet.net                             jrelay.cjb.net
An Apple II fanatic since 1998!     S0.5 LIS+++! Suzy+++! M1987
"I can't stand to see you so miserable, Lis. Unless it's from
a rubber spider down your dress. Hmm... that gives me an idea. 
(Pulls out tape recorder) Note for later: put rubber spider down
Lisa's dress. He he he he he."

 *_     Syntax Error: an error on a criminal's tax record.
   |    Bad Subscript: a criminal reading a book on a subway.
  ---   Unimplemented Trap: when a bear trap isn't set up 
 |' ,|  properly and thus does not work.
  ---   Overflow: too many ice cubes.      <Can't Restart>

Please remove capital letters from my e-mail address to respond.