diff options
Diffstat (limited to 'src/mess/includes/lisa.h')
-rw-r--r-- | src/mess/includes/lisa.h | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/src/mess/includes/lisa.h b/src/mess/includes/lisa.h index a7c3db84d68..c36904f786c 100644 --- a/src/mess/includes/lisa.h +++ b/src/mess/includes/lisa.h @@ -12,8 +12,8 @@ #include "machine/6522via.h" #include "machine/8530scc.h" -#define COP421_TAG "u9f" -#define KB_COP421_TAG "kbcop" +#define COP421_TAG "u9f" +#define KB_COP421_TAG "kbcop" /* lisa MMU segment regs */ struct real_mmu_entry @@ -27,65 +27,65 @@ enum mmu_entry_t { RAM_stack_r, RAM_r, RAM_stack_rw, RAM_rw, IO, invalid, specia struct mmu_entry { - offs_t sorg; /* (real_sorg & 0x0fff) << 9 */ - mmu_entry_t type; /* <-> (real_slim & 0x0f00) */ - int slim; /* (~ ((real_slim & 0x00ff) << 9)) & 0x01ffff */ + offs_t sorg; /* (real_sorg & 0x0fff) << 9 */ + mmu_entry_t type; /* <-> (real_slim & 0x0f00) */ + int slim; /* (~ ((real_slim & 0x00ff) << 9)) & 0x01ffff */ }; enum floppy_hardware_t { - twiggy, /* twiggy drives (Lisa 1) */ - sony_lisa2, /* 3.5'' drive with LisaLite adapter (Lisa 2) */ - sony_lisa210 /* 3.5'' drive with modified fdc hardware (Lisa 2/10, Mac XL) */ + twiggy, /* twiggy drives (Lisa 1) */ + sony_lisa2, /* 3.5'' drive with LisaLite adapter (Lisa 2) */ + sony_lisa210 /* 3.5'' drive with modified fdc hardware (Lisa 2/10, Mac XL) */ }; enum clock_mode_t { clock_timer_disable = 0, timer_disable = 1, - timer_interrupt = 2, /* timer underflow generates interrupt */ - timer_power_on = 3 /* timer underflow turns system on if it is off and gens interrupt */ -}; /* clock mode */ + timer_interrupt = 2, /* timer underflow generates interrupt */ + timer_power_on = 3 /* timer underflow turns system on if it is off and gens interrupt */ +}; /* clock mode */ /* clock registers */ struct clock_regs_t { - long alarm; /* alarm (20-bit binary) */ - int years; /* years (4-bit binary ) */ - int days1; /* days (BCD : 1-366) */ + long alarm; /* alarm (20-bit binary) */ + int years; /* years (4-bit binary ) */ + int days1; /* days (BCD : 1-366) */ int days2; int days3; - int hours1; /* hours (BCD : 0-23) */ + int hours1; /* hours (BCD : 0-23) */ int hours2; - int minutes1; /* minutes (BCD : 0-59) */ + int minutes1; /* minutes (BCD : 0-59) */ int minutes2; - int seconds1; /* seconds (BCD : 0-59) */ + int seconds1; /* seconds (BCD : 0-59) */ int seconds2; - int tenths; /* tenths of second (BCD : 0-9) */ + int tenths; /* tenths of second (BCD : 0-9) */ - int clock_write_ptr; /* clock byte to be written next (-1 if clock write disabled) */ + int clock_write_ptr; /* clock byte to be written next (-1 if clock write disabled) */ enum clock_mode_t clock_mode; }; struct lisa_features_t { - unsigned int has_fast_timers : 1; /* I/O board VIAs are clocked at 1.25 MHz (?) instead of .5 MHz (?) (Lisa 2/10, Mac XL) */ + unsigned int has_fast_timers : 1; /* I/O board VIAs are clocked at 1.25 MHz (?) instead of .5 MHz (?) (Lisa 2/10, Mac XL) */ /* Note that the beep routine in boot ROMs implies that - VIA clock is 1.25 times faster with fast timers than with - slow timers. I read the schematics again and again, and - I simply don't understand : in one case the VIA is - connected to the 68k E clock, which is CPUCK/10, and in - another case, to a generated PH2 clock which is CPUCK/4, - with additionnal logic to keep it in phase with the 68k - memory cycle. After hearing the beep when MacWorks XL - boots, I bet the correct values are .625 MHz and .5 MHz. - Maybe the schematics are wrong, and PH2 is CPUCK/8. - Maybe the board uses a 6522 variant with different - timings. */ + VIA clock is 1.25 times faster with fast timers than with + slow timers. I read the schematics again and again, and + I simply don't understand : in one case the VIA is + connected to the 68k E clock, which is CPUCK/10, and in + another case, to a generated PH2 clock which is CPUCK/4, + with additionnal logic to keep it in phase with the 68k + memory cycle. After hearing the beep when MacWorks XL + boots, I bet the correct values are .625 MHz and .5 MHz. + Maybe the schematics are wrong, and PH2 is CPUCK/8. + Maybe the board uses a 6522 variant with different + timings. */ floppy_hardware_t floppy_hardware; - unsigned int has_double_sided_floppy : 1; /* true on lisa 1 and *hacked* lisa 2/10 / Mac XL */ - unsigned int has_mac_xl_video : 1; /* modified video for MacXL */ + unsigned int has_double_sided_floppy : 1; /* true on lisa 1 and *hacked* lisa 2/10 / Mac XL */ + unsigned int has_mac_xl_video : 1; /* modified video for MacXL */ }; @@ -186,4 +186,3 @@ extern NVRAM_HANDLER(lisa); #endif /* LISA_H_ */ - |