kjt_read_sysram_flat
Created by: phil, Last modification: Mon 28 of Jun, 2010 (14:42 UTC)
Name: kjt_read_sysram_flat
Action: Reads system memory in a flat, linear addressing mode
Input Registers : E:HL = $00000 - $7FFFF (address to read)
Output Registers : A (byte read from address)
Trashes: B,C,E,H
Notes:
The routine saves and restores the current bank setting around the read so make sure any interrupt service routine is in unpaged memory (<$8000) or disable interrupts to avoid problems.
As this routine is not fast, only use if convenience is more important than speed.