changeset 2635:1a75c932f607

Added OP_SETIME
author Boisy Pitre <boisy.pitre@nuance.com>
date Mon, 27 Feb 2012 21:50:05 -0600
parents a34c08cdfcb2
children 4e5ff2c5b512
files level1/modules/clock2_dw3.asm
diffstat 1 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/level1/modules/clock2_dw3.asm	Mon Feb 27 19:54:55 2012 -0600
+++ b/level1/modules/clock2_dw3.asm	Mon Feb 27 21:50:05 2012 -0600
@@ -43,7 +43,7 @@
           bra       Init
           nop
           bra       GetTime   	RTC Get Time
-
+          nop
 
 SetTime   pshs      u,y,x,d
           IFGT      Level-1
@@ -52,22 +52,17 @@
           ldu       >D.DWSubAddr
           ENDC
           beq       UpdLeave      in case we failed to link it, just exit
-          ldx       #D.Year
-          ldd       4,x
-          pshs      d
-          ldd       2,x
-          pshs      d
-          ldd       ,x
-          pshs      d
           lda       #OP_SETTIME
           pshs      a
+          ldy       #$0001
           leax      ,s
-          ldy       #$0007
           jsr       DW$Write,u
-          leas      7,s
+          puls      a
+          ldx       #D.Year
+          ldy       #$0006
+          jsr       DW$Write,u
           bra       UpdLeave
 
-
 GetTime   pshs      u,y,x,d
           IFGT      Level-1
           ldu       <D.DWSubAddr