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

Re: Please help with BinSCII



Rubywand wrote:
> 
 ....

> A fairly good workaround seems to be to direct ONERR GOTOs to the main
> line and use a CALL which reinits the stack instead of trying to fix it.
> William Luebbert's book "What's Where in the Apple II" identifies a STKINI
> CALL at $D863 (-10621) which does this.
> 
 ....

> This program, where the error occurs in a subroutine, also maintains the
> stack:
> 
> 10 CALL 768
> 20 ONERR GOTO 80
> 30 GET X
> 40 GOSUB 90
> 50 CALL 768
> 60 IF A <> 1 THEN 30
> 70 END
> 80 CALL -10621: GOTO 50
> 90 A = 1/X: RETURN
> 
 ....

     Just noticed: contrary to the heading, not all of the possible errors
occur in the subroutine. Depending upon the key pressed, some may occur in
the main line (at the GET X). The stack will still be correctly reinited,
though.


R/