×   Main Menu ALL The 8BS News Manuals (New menu) Links Worth a Look Tools Disc and Basic Webring Site Map 8BS Guestbook Old Guest Book Me The Barnsley Rovers   
8-Bit Software

The BBC and Master Computer Public Domain Library

AE35 ERL

Submitted by Steve Fewell

Description:

This routine will return the Line Number of the last Program Line with generated an error (ERL) in the IWA.
Set A to &08 (The LSB of the Program Line Number).
Set Y to &09 (The MSB of the Program Line Number).
Call routine &AE1A to set the IWA to the value of Y * 256 + A.


Disassembly for the ERL routine

AE35   164 009 A4 09 LDY &09
AE37   165 008 A5 08 LDA &08
AE39   128 223 80 DF BRA -33 --> &AE1A Set IWA to 16-bit value

 


 Back to 8BS
Or