kjt_write_sysram_flat
Created by: phil, Last modification: Mon 28 of Jun, 2010 (14:43 UTC)
Name: kjt_write_sysram_flat
Action: Writes to system memory in a flat, linear addressing mode
Input Registers : E:HL = $00000 - $7FFFF (address to write)
Output Registers : None (but see below)
Trashes: B,C,E,H
Notes:
The routine saves and restores the current bank setting around the write 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.