[comp.sys.apple] Apple Pascal

V133JR65@UBVMSC.CC.BUFFALO.EDU ("J.WIXSON") (06/01/89)

I just recently got out my old copies of Apple Pascal v1.3 or something and
couldn't find a program that I picked up a while back that allowed me to
directly use machine language routines from the pascal program.  Unfortunatly I can't even remember the name, but if anyone has this program lying around I'd appreciate it if you'd speak up.

tribby@hpindda.HP.COM (David Tribby) (06/02/89)

V133JR65@UBVMSC.CC.BUFFALO.EDU ("J.WIXSON") writes...
> I just recently got out my old copies of Apple Pascal v1.3 or something and
> couldn't find a program that I picked up a while back that allowed me to
> directly use machine language routines from the pascal program.  

If you want to write your own machine language, use SYSTEM.ASSEMBLER :-).

If you mean the built-in Apple II ROM routines, be careful! Seems like I
read about such a program in a CALL A.P.P.L.E. book that collected articles
on Apple Pascal (published in the early '80s). Since Apple Pascal runs in
the Language card, any program that calls the ROM must enable the ROM
address space before the call and re-establish the proper RAM bank before
returning to the P-system. Also watch out for modifications to zero
page that might step on P-system variables!

It's also possible to call the P-system's BIOS routines (without too much
trouble) from your own assembly language or Pascal code. 

So...which machine language routines do you want to call?

--Dave Tribby
                                   - - - - -
        ARPA: tribby%hpda@hplabs.HP.COM   UUCP: hplabs!hpda!tribby

paranoid@nstar.UUCP (Damian Gick) (03/25/90)

Is there a statement in Apple Pascal that is very similar to the HTAB and 
VTAB statements in Apple Basic?

Thanks.



-----
Damian Gick
South Bend, IN               "Even a broken watch is right twice a day."

E-Mail:               paranoid@nstar   :   internet
        !iuvax!ndmath!nstar!paranoid   :   uucp
-----

ccasts2@prism.gatech.EDU (Sheldon Simms) (03/25/90)

In article <DeVJg2w160w@nstar.UUCP> paranoid@nstar.UUCP (Damian Gick) writes:
>Is there a statement in Apple Pascal that is very similar to the HTAB and 
>VTAB statements in Apple Basic?
>-----

It's been a while since I used Apple Pascal, but I believe there is a statement

gotoxy ( xcoord , ycoord )

That you can use before a write or writeln...

-Sheldon Simms
ccasts2@prism.gatech.edu

eeta@yoda.byu.edu (03/25/90)

>...Apple Pascal...like basic HTAB and VTAB...

try "gotoxy(xx,yy);"

-Don

rnf@shumv1.uucp (Rick Fincher) (03/26/90)

In article <DeVJg2w160w@nstar.UUCP> paranoid@nstar.UUCP (Damian Gick) writes:
>Is there a statement in Apple Pascal that is very similar to the HTAB and 
>VTAB statements in Apple Basic?

Yes, its a function called gotoxy(x,y) x and y are the screen coordinates.


Rick