missing file
This commit is contained in:
parent
f3cbf79bd9
commit
34a8fb857f
1 changed files with 14 additions and 0 deletions
14
device.cpp
Normal file
14
device.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <cstdint>
|
||||
|
||||
#include "device.h"
|
||||
|
||||
|
||||
uint8_t device::read_byte(const uint16_t addr)
|
||||
{
|
||||
uint16_t v = read_word(addr & ~1);
|
||||
|
||||
if (addr & 1)
|
||||
return v >> 8;
|
||||
|
||||
return v;
|
||||
}
|
Loading…
Add table
Reference in a new issue