mirror of https://github.com/bsnes-emu/bsnes.git
9 lines
215 B
C++
9 lines
215 B
C++
|
auto V30MZ::readByte() -> uint8 {
|
||
|
return read((r.cs << 4) + (r.ip++));
|
||
|
}
|
||
|
|
||
|
auto V30MZ::readWord() -> uint16 {
|
||
|
uint16 word = read((r.cs << 4) + (r.ip++)) << 0;
|
||
|
return word | read((r.cs << 4) + (r.ip++)) << 8;
|
||
|
}
|