mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
Added access routines needed for test code
This commit is contained in:
14
vimlac/cpu.c
14
vimlac/cpu.c
@@ -99,6 +99,20 @@ cpu_get_prev_PC(void)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
cpu_set_AC(WORD new_ac)
|
||||
{
|
||||
r_AC = new_ac;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
cpu_set_L(WORD new_l)
|
||||
{
|
||||
r_L = (new_l && 1);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
cpu_set_PC(WORD new_pc)
|
||||
{
|
||||
|
||||
@@ -19,6 +19,8 @@ WORD cpu_get_AC(void);
|
||||
WORD cpu_get_L(void);
|
||||
WORD cpu_get_PC(void);
|
||||
WORD cpu_get_prev_PC(void);
|
||||
void cpu_set_AC(WORD ac);
|
||||
void cpu_set_L(WORD l);
|
||||
void cpu_set_PC(WORD pc);
|
||||
void cpu_set_DS(WORD ds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user