8-Bit Software

The BBC and Master Computer Public Domain Library

Back to 8BS Or Back to Disassembly

Page Last Altered:


Submitted by Steve Fewell


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.

Disassembly for the =HIMEM routine

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


 Back to 8BS