Mercurial > repos > blastem
diff gdb_remote.c @ 1506:ded16f3d7eb4 mame_interp
Super hacky integration of the version of Musashi from MAME
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 27 Dec 2017 13:46:52 -0800 |
parents | 85a90964b557 |
children | 8fe162bdb038 |
line wrap: on
line diff
--- a/gdb_remote.c Thu Oct 19 03:21:24 2017 -0700 +++ b/gdb_remote.c Wed Dec 27 13:46:52 2017 -0800 @@ -132,7 +132,7 @@ } } -uint8_t read_byte(m68k_context * context, uint32_t address) +static uint8_t m68k_read_byte(m68k_context * context, uint32_t address) { genesis_context *gen = context->system; @@ -150,7 +150,7 @@ return 0; } -void write_byte(m68k_context * context, uint32_t address, uint8_t value) +static void m68k_write_byte(m68k_context * context, uint32_t address, uint8_t value) { genesis_context *gen = context->system; //TODO: Use generated read/write functions so that memory map is properly respected @@ -305,7 +305,7 @@ char *cur = send_buf; while (size) { - hex_8(read_byte(context, address), cur); + hex_8(m68k_read_byte(context, address), cur); cur += 2; address++; size--; @@ -326,7 +326,7 @@ tmp[0] = *(cur++); tmp[1] = *(cur++); tmp[2] = 0; - write_byte(context, address, strtoul(tmp, NULL, 16)); + m68k_write_byte(context, address, strtoul(tmp, NULL, 16)); address++; size--; }