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:
parent
0dc7dac6a3
commit
86e00e651d
@ -41,14 +41,14 @@ emul_nop(rk65c02emu_t *e, instruction_t *i)
|
|||||||
|
|
||||||
/* PHA - push accumulator to stack */
|
/* PHA - push accumulator to stack */
|
||||||
void
|
void
|
||||||
emul_pha(rk6502emu_t *e, instruction_t *i)
|
emul_pha(rk65c02emu_t *e, instruction_t *i)
|
||||||
{
|
{
|
||||||
stack_push(e, e->regs.A);
|
stack_push(e, e->regs.A);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PLA - pull from stack to accumulator */
|
/* PLA - pull from stack to accumulator */
|
||||||
void
|
void
|
||||||
emul_pla(rk65c02emu_t *e, instruciton_t *i)
|
emul_pla(rk65c02emu_t *e, instruction_t *i)
|
||||||
{
|
{
|
||||||
e->regs.A = stack_pop(e);
|
e->regs.A = stack_pop(e);
|
||||||
|
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
void emul_and(rk65c02emu_t *, instruction_t *);
|
void emul_and(rk65c02emu_t *, instruction_t *);
|
||||||
void emul_lda(rk65c02emu_t *, instruction_t *);
|
void emul_lda(rk65c02emu_t *, instruction_t *);
|
||||||
void emul_nop(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 *);
|
void emul_stp(rk65c02emu_t *, instruction_t *);
|
||||||
|
|
||||||
#endif /* _EMULATION_H_*/
|
#endif /* _EMULATION_H_*/
|
||||||
|
@ -46,6 +46,7 @@ void disassemble(bus_t *, uint16_t);
|
|||||||
uint8_t instruction_data_read_1(rk65c02emu_t *, instrdef_t *, instruction_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_zero(rk65c02emu_t *, uint8_t);
|
||||||
void instruction_status_adjust_negative(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_ */
|
#endif /* _INSTRUCTION_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user