×   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

AE2F =HIMEM

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.


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
Or