diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-01-03 18:23:04 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-01-03 18:23:04 -0800 |
commit | e6216d5d0a9f8cdb700124558d38cd47e63fbdda (patch) | |
tree | c56be1f33a2dbac9a61f85795aa96158e4f78167 /gst.c | |
parent | 8ac1e753e1af481b2090a4c1b7395853f30b5e8f (diff) |
Made the Z80 core more contained by refactoring some code in blastem.c into z80_to_x86.c
Diffstat (limited to 'gst.c')
-rw-r--r-- | gst.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ /* Copyright 2013 Michael Pavone - This file is part of BlastEm. + This file is part of BlastEm. BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. */ #include "gst.h" @@ -207,8 +207,8 @@ uint8_t z80_load_gst(z80_context * context, FILE * gstfile) curpos += 2; context->iff1 = context->iff2 = *curpos; curpos += 2; - reset = !*(curpos++); - busreq = *curpos; + context->reset = !*(curpos++); + context->busreq = *curpos; curpos += 3; uint32_t bank = read_le_32(curpos); if (bank < 0x400000) { @@ -350,8 +350,8 @@ uint8_t z80_save_gst(z80_context * context, FILE * gstfile) curpos += 2; *curpos = context->iff1; curpos += 2; - *(curpos++) = !reset; - *curpos = busreq; + *(curpos++) = !context->reset; + *curpos = context->busreq; curpos += 3; uint32_t bank = context->bank_reg << 15; write_le_32(curpos, bank); |