OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
601fbcd1143d6a6e51d8f8d43009203e17f36d8f
[csp-qt/common_source_project-fm7.git]
/
source
/
src
/
vm
/
mz2800
/
reset.cpp
1
/*
2
SHARP MZ-2800 Emulator 'EmuZ-2800'
3
4
Author : Takeda.Toshiya
5
Date : 2007.08.14 -
6
7
[ reset ]
8
*/
9
10
#include "reset.h"
11
12
void RESET::initialize()
13
{
14
prev = 0xff;
15
}
16
17
void RESET::write_signal(int id, uint32 data, uint32 mask)
18
{
19
// from i8255 port c
20
if(!(prev & 2) && (data & 2)) {
21
vm->cpu_reset();
22
}
23
if(!(prev & 8) && (data & 8)) {
24
vm->reset();
25
}
26
prev = data & mask;
27
}
28