diff options
author | Leo C | 2014-08-14 16:27:17 +0200 |
---|---|---|
committer | Leo C | 2014-08-14 16:27:17 +0200 |
commit | 534e1dfcb2f6cdfa1cd62913045b832f2189b7aa (patch) | |
tree | bfd0f2693160aeae7aa1788f1b3903ac843b9e45 /avr/z180-serv.c | |
parent | 72f5882239bb88b8a68f305802e0dde37a975604 (diff) | |
download | z180-stamp-534e1dfcb2f6cdfa1cd62913045b832f2189b7aa.zip |
Add commands: loadf, go, reset restarthexrel-1
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 |