mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-07-04 08:24:05 +00:00
More MEMPTR clarifications.
This time to avoid temporary variables, in a similar manner to Z80 hardware. Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@ -35,9 +35,7 @@ uint8_t EightBit::Processor::pop() {
|
||||
return m_memory.reference();
|
||||
}
|
||||
|
||||
EightBit::register16_t EightBit::Processor::popWord() {
|
||||
register16_t returned;
|
||||
returned.low = pop();
|
||||
returned.high = pop();
|
||||
return returned;
|
||||
void EightBit::Processor::popWord(register16_t& output) {
|
||||
output.low = pop();
|
||||
output.high = pop();
|
||||
}
|
||||
|
Reference in New Issue
Block a user