[Info-vax] BASIC and AST routines

VAXman- at SendSpamHere.ORG VAXman- at SendSpamHere.ORG
Thu Nov 18 15:28:52 EST 2021


In article <d77053df-ac45-42f9-9b01-fac40a04095en at googlegroups.com>, John Doppke <jdoppke at gmail.com> writes:
>So I've been playing with writing AST routines (stubbornly) in BASIC.  They=
> work ok, but I've found I have to declare the routine as having 5 'standar=
>d' parameters - "function long AST long (p1, p2, p3, p4, p5)".  I'm not sur=
>e what the 5 parameters are, but doing anything with them is usually a bad =
>idea.  I communicate with my main program using common or event flags.
>
>Now I need an AST for a call that requires a parameter - SMG$ENABLE_UNSOLIC=
>ITED_INPUT.  I've tried adding a parameter in my usual list in different wa=
>ys but I can't get it to work.  Every time it's called I get a reserved opc=
>ode exception.  (A DCLAST call with my AST works ok).
>
>Can anyone shed some light on what the parameters are that BASIC is getting=
>?  I'll probably end up writing this one in MACRO, but I want to understand=
> what is happening.

AST parameter, R0, R1, PC, PSL/PS

-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.



More information about the Info-vax mailing list