×   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

AE29 =LOMEM

Submitted by Steve Fewell

Description:

This routine will return the value of LOMEM in the IWA.
Set A to &00 (The LSB of the LOMEM address).
Set Y to &01 (The MSB of the LOMEM address).
Call routine &AE1A to set the IWA to the value of Y * 256 + A.


Disassembly for the =LOMEM routine

AE29   165 000 A5 00 LDA &00
AE2B   164 001 A4 01 LDY &01
AE2D   128 235 80 EB BRA -21 --> &AE1A Set IWA to 16-bit value

 


 Back to 8BS
Or