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.
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 |