From 534e1dfcb2f6cdfa1cd62913045b832f2189b7aa Mon Sep 17 00:00:00 2001 From: Leo C Date: Thu, 14 Aug 2014 16:27:17 +0200 Subject: Add commands: loadf, go, reset restart --- avr/z180-serv.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'avr/z180-serv.c') 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 -- cgit v1.2.3