mirror of
https://github.com/trudnai/Steve2.git
synced 2024-05-31 15:41:35 +00:00
Non-Inline CALL routine for cheats
This commit is contained in:
parent
9614b8ce98
commit
2b0b5413d3
|
@ -51,6 +51,16 @@ INLINE void JMP( uint16_t addr ) {
|
|||
m6502.PC = addr;
|
||||
}
|
||||
|
||||
|
||||
// for patching game purposes -- it should not be inline!
|
||||
void CALL( uint16_t addr ) {
|
||||
dbgPrintf("CALL ");
|
||||
disPrintf(disassembly.inst, "CALL");
|
||||
PUSH_addr(m6502.PC -1);
|
||||
m6502.PC = addr;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
JSR Jump to New Location Saving Return Address
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user