Reflect that the I/O for Intel style processors isn't part of the CPU, but attached to the Bus and access controlled by the CPU.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon committed 2020-02-09 11:51:58 +00:00
1 parent dc37d61797
commit c8bdabf34f
24 files changed
+410 -279

No files matched your search

+2 -2
View File
@@ -23,11 +23,11 @@ void EightBit::IntelProcessor::handleRESET() {
}
void EightBit::IntelProcessor::push(const uint8_t value) {
busWrite(--SP(), value);
memoryWrite(--SP(), value);
}
uint8_t EightBit::IntelProcessor::pop() {
return busRead(SP()++);
return memoryRead(SP()++);
}
EightBit::register16_t EightBit::IntelProcessor::getWord() {