Previous 199869 Revisions Next

r31344 Sunday 20th July, 2014 at 23:50:35 UTC by hap
shut up debugger
[src/emu/cpu/tms7000]tms7000.c tms7000.h
[src/mess/drivers]cc40.c

trunk/src/emu/cpu/tms7000/tms7000.h
r31343r31344
2323#define __TMS7000_H__
2424
2525#include "emu.h"
26#include "debugger.h"
2627
2728
2829enum { TMS7000_PC=1, TMS7000_SP, TMS7000_ST };
r31343r31344
5758   tms7000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
5859   tms7000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal, UINT32 info_flags, const char *shortname, const char *source);
5960
60   DECLARE_READ8_MEMBER(tms7000_unmapped_rf_r) { logerror("'%s' (%04X): unmapped_rf_r @ $%04x\n", tag(), m_pc, offset + 0x80); return 0; };
61   DECLARE_READ8_MEMBER(tms7000_unmapped_rf_r) { if (!space.debugger_access()) logerror("'%s' (%04X): unmapped_rf_r @ $%04x\n", tag(), m_pc, offset + 0x80); return 0; };
6162   DECLARE_WRITE8_MEMBER(tms7000_unmapped_rf_w) { logerror("'%s' (%04X): unmapped_rf_w @ $%04x = $%02x\n", tag(), m_pc, offset + 0x80, data); };
6263
6364   DECLARE_READ8_MEMBER(tms7000_pf_r);
trunk/src/emu/cpu/tms7000/tms7000.c
r31343r31344
2020 *
2121 *  TODO:
2222 *  - dump CROM and emulate cpu at microinstruction level
23 *  - memory modes with IOCNT0, currently ignored
23 *  - memory modes with IOCNT0, currently always running in full expansion mode
2424 *  - timer event counter mode (timer control register, bit 6)
2525 *  - TMS70x1/2 serial port and timer 3
2626 *  - when they're needed, add TMS70Cx2, TMS7742, TMS77C82, SE70xxx
2727 *
2828 *****************************************************************************/
2929
30#include "debugger.h"
3130#include "tms7000.h"
3231
3332// 7000 is the most basic one, 128 bytes internal RAM and no internal ROM.
r31343r31344
5554const device_type TMS7002 = &device_creator<tms7002_device>;
5655const device_type TMS7042 = &device_creator<tms7042_device>;
5756
57// 70Cx2 is an update to 70x2 with some extra features. Due to some changes
58// in peripheral file I/O, it is not backward compatible to 70x2.
5859
60
5961// flag helpers
6062#define SR_C        0x80 /* Carry */
6163#define SR_N        0x40 /* Negative */
r31343r31344
514516      {
515517         // note: port B is write-only, reading it returns the output value as if ddr is 0xff
516518         int port = offset / 2 - 2;
517         return (m_io->read_byte(port) & ~m_port_ddr[port]) | (m_port_latch[port] & m_port_ddr[port]);
519         if (!space.debugger_access())
520            return (m_io->read_byte(port) & ~m_port_ddr[port]) | (m_port_latch[port] & m_port_ddr[port]);
521         break;
518522      }
519523     
520524      // port direction (note: 7000 doesn't support it for port A)
r31343r31344
522526         return m_port_ddr[offset / 2 - 2];
523527
524528      default:
525         logerror("'%s' (%04X): tms7000_pf_r @ $%04x\n", tag(), m_pc, offset);
529         if (!space.debugger_access())
530            logerror("'%s' (%04X): tms7000_pf_r @ $%04x\n", tag(), m_pc, offset);
526531         break;
527532   }
528533
trunk/src/mess/drivers/cc40.c
r31343r31344
5050  provided that the machine is turned off properly. If a program is running,
5151  you may have to press BREAK before turning the CC-40 off.
5252 
53  To run a cartridge that doesn't automatically boot, use the command
54  run"dir" to see which program(s) can be loaded. Load a program with
55  run"<shortname of program in list>"
53  To run a cartridge, usually the command run"dir" shows which program(s)
54  can be loaded. Load a program by pressing the RUN key while viewing the list,
55  or manually with the command run"<shortname of program in list>"
5656
5757
5858  TODO:
59  - some strange bugs with cartridge software, maybe TMS7000 bug?
59  - some strange bugs with Games I cartridge, bad dump or emulation bug?
6060  - other RAM configurations (6KB(default), 12KB, 18KB, external)
6161  - Hexbus interface and peripherals
6262  - HD44100 is not accessed by the CPU, is it connected to the HD44780?
r31343r31344
309309   AM_RANGE(0x1000, 0x17ff) AM_RAM AM_SHARE("nvram2")
310310   AM_RANGE(0x3000, 0x37ff) AM_RAM AM_SHARE("nvram3")
311311
312   AM_RANGE(0x0000, 0x4fff) AM_UNMAP // cartridge rom is at $5000-$cfff - direct address, not relative
313   AM_RANGE(0x0000, 0xcfff) AM_MASK(0x7fff) AM_ROMBANK("cartbank")
314
312   AM_RANGE(0x5000, 0xcfff) AM_ROMBANK("cartbank")
315313   AM_RANGE(0xd000, 0xefff) AM_ROMBANK("sysbank")
316314ADDRESS_MAP_END
317315

Previous 199869 Revisions Next


© 1997-2024 The MAME Team