Reverted the PIT and Soyo 4SA2 changes.

This commit is contained in:
OBattler
2021-07-09 04:46:08 +02:00
parent 99b9174e02
commit 9cba2a91dc
4 changed files with 152 additions and 362 deletions

View File

@@ -18,34 +18,33 @@
# define EMU_PIT_H
typedef struct ctr_s {
typedef struct {
uint8_t m, ctrl,
read_status, latch,
s1_det, l_det,
bcd, flag_64k;
bcd, pad;
uint16_t l, rl;
union {
uint16_t count;
struct {
uint16_t units :4;
uint16_t tens :4;
uint16_t hundreds :4;
uint16_t thousands :4;
uint16_t myriads :4;
};
};
uint16_t rl;
int rm, wm, gate, out,
newcount, clock, using_timer, latched,
state, null_count, do_read_status, do_load;
state, null_count, do_read_status;
union {
int count;
struct {
int units :4;
int tens :4;
int hundreds :4;
int thousands :4;
int myriads :4;
};
};
uint32_t l;
void (*tick_func)(struct ctr_s *ctr);
void (*load_func)(uint8_t new_m, int new_count);
void (*out_func)(int new_out, int old_out);
struct PIT *pit;
} ctr_t;