Official Name: EnoughMem
BCALL Address: 42FD
Checks if a given amount of RAM is available. This routine will also attempt to free RAM that is taken by temporary variables that have been marked dirty but not yet deleted.
- HL = amount of RAM to check for being available
- DE = amount of RAM to check for being available
- Carry set if there is insufficient RAM available
No error is generated.
ld hl,9 B_CALL EnoughMem jr c,NotEnoughMem