1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2025-01-10 18:29:53 +00:00

Make this actually compile.

This commit is contained in:
Radosław Kujawa 2017-01-20 22:38:46 +01:00
parent 0dc7dac6a3
commit 86e00e651d
3 changed files with 6 additions and 3 deletions

View File

@ -41,14 +41,14 @@ emul_nop(rk65c02emu_t *e, instruction_t *i)
/* PHA - push accumulator to stack */
void
emul_pha(rk6502emu_t *e, instruction_t *i)
emul_pha(rk65c02emu_t *e, instruction_t *i)
{
stack_push(e, e->regs.A);
}
/* PLA - pull from stack to accumulator */
void
emul_pla(rk65c02emu_t *e, instruciton_t *i)
emul_pla(rk65c02emu_t *e, instruction_t *i)
{
e->regs.A = stack_pop(e);

View File

@ -7,6 +7,8 @@
void emul_and(rk65c02emu_t *, instruction_t *);
void emul_lda(rk65c02emu_t *, instruction_t *);
void emul_nop(rk65c02emu_t *, instruction_t *);
void emul_pha(rk65c02emu_t *, instruction_t *);
void emul_pla(rk65c02emu_t *, instruction_t *);
void emul_stp(rk65c02emu_t *, instruction_t *);
#endif /* _EMULATION_H_*/

View File

@ -46,6 +46,7 @@ void disassemble(bus_t *, uint16_t);
uint8_t instruction_data_read_1(rk65c02emu_t *, instrdef_t *, instruction_t *);
void instruction_status_adjust_zero(rk65c02emu_t *, uint8_t);
void instruction_status_adjust_negative(rk65c02emu_t *, uint8_t);
//void instruction_execute(rk65c02emu_t *, instruction_t *);
void stack_push(rk65c02emu_t *, uint8_t);
uint8_t stack_pop(rk65c02emu_t *);
#endif /* _INSTRUCTION_H_ */