diff options
Diffstat (limited to 'avr/z180-serv.c')
-rw-r--r-- | avr/z180-serv.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/avr/z180-serv.c b/avr/z180-serv.c index d28cb98..a4ff057 100644 --- a/avr/z180-serv.c +++ b/avr/z180-serv.c @@ -14,11 +14,6 @@ #include "z80-if.h" -/* ugly hack to get Z180 loadfile into flash memory */ -#define const const FLASH -#include "../z180/hdrom.h" -#undef const - /*--------------------------------------------------------------------------*/ @@ -274,29 +269,6 @@ void dump_mem(const FLASH uint8_t *addr, uint32_t len) /*--------------------------------------------------------------------------*/ -void z80_load_mem(void) -{ - unsigned sec = 0; - uint32_t sec_base = hdrom_start; - - DBG_P(1, "Loading z80 memory... \n"); - - while (sec < hdrom_sections) { - DBG_P(2, " From: 0x%.5lX to: 0x%.5lX (%5li bytes)\n", - hdrom_address[sec], - hdrom_address[sec]+hdrom_length_of_sections[sec] - 1, - hdrom_length_of_sections[sec]); - - z80_write_block((const FLASH unsigned char *) &hdrom[sec_base], /* src */ - hdrom_address[sec], /* dest */ - hdrom_length_of_sections[sec]); /* len */ - sec_base+=hdrom_length_of_sections[sec]; - sec++; - } -} - -/*--------------------------------------------------------------------------*/ - const FLASH uint8_t iniprog[] = { 0xAF, // xor a |