mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2024-11-17 19:05:31 +00:00
b621ac6a4d
This is a modified version of the ROMX Real-Time Clock driver. The changes include: * Converting the source to ca65. * Integrating with the driver installer framework. * Adapting the driver to not modify page 2 beyond $220. The ROMX RTC firmware writes bytes to $2B0, and the the original driver placed temp code at $250. This can conflict with ProDOS applications that use page 2, so the driver was reworked to save/restore anything at at $2B0. Other changes: * Add a util/ source dir, and cricket/date, quit.system and pause.system there. * Pull the "print current date" logic out of clock drivers into driver preamble.
25 lines
468 B
ArmAsm
25 lines
468 B
ArmAsm
|
|
.setcpu "6502"
|
|
.include "apple2.inc"
|
|
|
|
.include "../inc/apple2.inc"
|
|
.include "../inc/prodos.inc"
|
|
|
|
.org SYS_ADDR
|
|
|
|
cld
|
|
bit ROMIN2
|
|
sta CLR80VID
|
|
sta CLRALTCHAR
|
|
sta CLR80COL
|
|
jsr SETVID
|
|
jsr SETKBD
|
|
jsr SETNORM
|
|
jsr INIT
|
|
jsr HOME
|
|
|
|
MLI_CALL QUIT, quit_params
|
|
brk
|
|
|
|
DEFINE_QUIT_PARAMS quit_params
|