Submitted by Steve Fewell
Description:
This routine will return the value of HIMEM in the IWA.
Set A to &06 (The LSB of the HIMEM address).
Set Y to &07 (The MSB of the HIMEM address).
Call routine &AE1A to set the IWA to the value of Y * 256 + A.
AE2F | 165 006 | A5 06 | LDA &06 | |
AE31 | 164 007 | A4 07 | LDY &07 | |
AE33 | 128 229 | 80 E5 | BRA -27 --> &AE1A Set IWA to 16-bit value |