changed TIME variable format to default one
This commit is contained in:
1 parent
12abb60d22
commit
ffbb58bcbc
5 files changed
+12
-12
No files matched your search
@@ -60,10 +60,10 @@ helper_ask_if_sure:
|
||||
jsr JCHROUT
|
||||
|
||||
clc
|
||||
lda TIME+0
|
||||
lda TIME+2
|
||||
adc #$0C
|
||||
!:
|
||||
cmp TIME+0
|
||||
cmp TIME+2
|
||||
bne !-
|
||||
|
||||
// FALLTROUGH
|
||||
|
||||
@@ -75,8 +75,8 @@ assign_variable_TI_string_loop_next:
|
||||
|
||||
// Set the resulting value
|
||||
|
||||
ldy INDEX+0
|
||||
ldy INDEX+2
|
||||
ldx INDEX+1
|
||||
lda INDEX+2
|
||||
lda INDEX+0
|
||||
|
||||
jmp JSETTIM
|
||||
@@ -17,9 +17,9 @@ fetch_variable_TI_string:
|
||||
|
||||
jsr JRDTIM
|
||||
|
||||
sty INDEX+0
|
||||
sty INDEX+2
|
||||
stx INDEX+1
|
||||
sta INDEX+2
|
||||
sta INDEX+0
|
||||
|
||||
// Now calculate the digits, starting from the most important one
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ rnd_seed_init:
|
||||
eor CIA1_TIMAHI
|
||||
sta RNDX+4
|
||||
|
||||
lda TIME+0 // byte from jiffy counter might be useful too
|
||||
lda TIME+2 // byte from jiffy counter might be useful too
|
||||
eor SID_RANDOM // not sure if SID set correctly, but it will not hurt
|
||||
#if CONFIG_MB_MEGA_65
|
||||
eor VIC_XPOS // not sure if VIC-IV visible, but it will not hurt
|
||||
|
||||
@@ -18,14 +18,14 @@ UDTIM:
|
||||
// after this time we have to reset the clock.
|
||||
|
||||
#if !HAS_OPCODES_65CE02
|
||||
inc TIME+0
|
||||
inc TIME+2
|
||||
bne udtim_time_done // done with clock
|
||||
inc TIME+1
|
||||
#else
|
||||
inw TIME+0
|
||||
inw TIME+2
|
||||
#endif
|
||||
bne udtim_clock_rollover
|
||||
inc TIME+2
|
||||
inc TIME+0
|
||||
|
||||
// FALLTROUGH
|
||||
|
||||
@@ -39,10 +39,10 @@ udtim_clock_rollover:
|
||||
lda TIME+1
|
||||
cmp #$1A
|
||||
bne udtim_time_done // done with clock
|
||||
lda TIME+2
|
||||
lda TIME+0
|
||||
cmp #$4F
|
||||
bne udtim_time_done // done with clock
|
||||
lda #$00
|
||||
sta TIME+2
|
||||
sta TIME+0
|
||||
sta TIME+1
|
||||
beq udtim_time_done // done with clock - will always jump
|
||||
Reference in new issue
Block a user