Jumbo clock driver: Include success logging
This commit is contained in:
parent
1ddae4fab7
commit
d37691dead
|
@ -35,9 +35,8 @@
|
||||||
|
|
||||||
read_delay_hi = $3 * 3 ; ($300 iterations is normal * 3.6MHz)
|
read_delay_hi = $3 * 3 ; ($300 iterations is normal * 3.6MHz)
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
.undef PRODUCT
|
||||||
.define PRODUCT "Cricket Clock"
|
.define PRODUCT "Cricket Clock"
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; Ensure there is not a previous clock driver installed.
|
;;; Ensure there is not a previous clock driver installed.
|
||||||
|
@ -214,7 +213,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
lda ROMIN2
|
lda ROMIN2
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
|
||||||
;; Display success message
|
;; Display success message
|
||||||
jsr log_message
|
jsr log_message
|
||||||
scrcode PRODUCT, " - "
|
scrcode PRODUCT, " - "
|
||||||
|
@ -222,7 +220,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
;; Display the current date
|
;; Display the current date
|
||||||
jsr cout_date
|
jsr cout_date
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
clc ; success
|
clc ; success
|
||||||
rts ; done!
|
rts ; done!
|
||||||
|
|
|
@ -56,9 +56,8 @@ DATA := SLOT4IO+3 ; Slinky data byte
|
||||||
;;;
|
;;;
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
.undef PRODUCT
|
||||||
.define PRODUCT "DClock"
|
.define PRODUCT "DClock"
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; Ensure there is not a previous clock driver installed.
|
;;; Ensure there is not a previous clock driver installed.
|
||||||
|
@ -138,7 +137,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
lda ROMIN2
|
lda ROMIN2
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
|
||||||
;; Display success message
|
;; Display success message
|
||||||
jsr log_message
|
jsr log_message
|
||||||
scrcode PRODUCT, " - "
|
scrcode PRODUCT, " - "
|
||||||
|
@ -146,7 +144,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
;; Display the current date
|
;; Display the current date
|
||||||
jsr cout_date
|
jsr cout_date
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
clc ; success
|
clc ; success
|
||||||
rts ; done!
|
rts ; done!
|
||||||
|
|
|
@ -32,9 +32,8 @@ FN_CLOCK_DEVICE_TYPE := $13 ; As defined on the Fujinet firmware
|
||||||
;;;
|
;;;
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
.undef PRODUCT
|
||||||
.define PRODUCT "Fujinet Clock"
|
.define PRODUCT "Fujinet Clock"
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; Ensure there is not a previous clock driver installed.
|
;;; Ensure there is not a previous clock driver installed.
|
||||||
|
@ -178,7 +177,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
lda ROMIN2
|
lda ROMIN2
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
|
||||||
;; Display success message
|
;; Display success message
|
||||||
jsr log_message
|
jsr log_message
|
||||||
scrcode PRODUCT, " - "
|
scrcode PRODUCT, " - "
|
||||||
|
@ -186,7 +184,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
;; Display the current date
|
;; Display the current date
|
||||||
jsr cout_date
|
jsr cout_date
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
clc ; success
|
clc ; success
|
||||||
rts ; done!
|
rts ; done!
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
|
.undef PRODUCT
|
||||||
.define PRODUCT "Jumbo Clock Driver"
|
.define PRODUCT "Jumbo Clock Driver"
|
||||||
|
|
||||||
.proc maybe_install_driver
|
.proc maybe_install_driver
|
||||||
|
|
|
@ -31,9 +31,8 @@
|
||||||
;;;
|
;;;
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
.undef PRODUCT
|
||||||
.define PRODUCT "No-Slot Clock"
|
.define PRODUCT "No-Slot Clock"
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; Ensure there is not a previous clock driver installed.
|
;;; Ensure there is not a previous clock driver installed.
|
||||||
|
@ -194,7 +193,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
lda ROMIN2
|
lda ROMIN2
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
|
||||||
;; Display success message
|
;; Display success message
|
||||||
jsr log_message
|
jsr log_message
|
||||||
scrcode PRODUCT, " - "
|
scrcode PRODUCT, " - "
|
||||||
|
@ -202,7 +200,6 @@ loop: lda driver,y
|
||||||
|
|
||||||
;; Display the current date
|
;; Display the current date
|
||||||
jsr cout_date
|
jsr cout_date
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
clc ; success
|
clc ; success
|
||||||
rts ; done!
|
rts ; done!
|
||||||
|
|
|
@ -45,9 +45,8 @@ SEL_MBANK := $F851 ; Select Main bank reg
|
||||||
;;;
|
;;;
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
.undef PRODUCT
|
||||||
.define PRODUCT "ROMX Clock"
|
.define PRODUCT "ROMX Clock"
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; Ensure there is not a previous clock driver installed.
|
;;; Ensure there is not a previous clock driver installed.
|
||||||
|
@ -157,7 +156,6 @@ loop: lda ClockDrv,y
|
||||||
|
|
||||||
lda ROMIN2
|
lda ROMIN2
|
||||||
|
|
||||||
.ifndef JUMBO_CLOCK_DRIVER
|
|
||||||
;; Display success message
|
;; Display success message
|
||||||
jsr log_message
|
jsr log_message
|
||||||
scrcode PRODUCT, " - "
|
scrcode PRODUCT, " - "
|
||||||
|
@ -165,7 +163,6 @@ loop: lda ClockDrv,y
|
||||||
|
|
||||||
;; Display the current date
|
;; Display the current date
|
||||||
jsr cout_date
|
jsr cout_date
|
||||||
.endif ; JUMBO_CLOCK_DRIVER
|
|
||||||
|
|
||||||
clc ; success
|
clc ; success
|
||||||
rts ; done!
|
rts ; done!
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
.define PRODUCT "Unknown"
|
||||||
|
|
||||||
;;; ------------------------------------------------------------
|
;;; ------------------------------------------------------------
|
||||||
|
|
||||||
;; SYS files load at $2000; relocates self to $1000
|
;; SYS files load at $2000; relocates self to $1000
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; Configuration Parameters
|
;;; Configuration Parameters
|
||||||
|
|
||||||
|
.undef PRODUCT
|
||||||
.define PRODUCT "RAMWorks RAM Disk"
|
.define PRODUCT "RAMWorks RAM Disk"
|
||||||
|
|
||||||
zp_sig_addr := $06
|
zp_sig_addr := $06
|
||||||
|
|
Loading…
Reference in New Issue