Verified state of r9, holds RAMER count
authorDan White <dan@whiteaudio.com>
Fri, 6 Jan 2012 18:14:56 +0000 (12:14 -0600)
committerDan White <dan@whiteaudio.com>
Fri, 6 Jan 2012 18:17:28 +0000 (12:17 -0600)
rom-label.asm

index 770345aad65607279aefc87adca584d02d64165a..cd7acd860254abcdd010ac53a76c745debc40017 100644 (file)
@@ -198,8 +198,10 @@ Disassembly of section .sec1:
 ;check RAM for errors
 ;writes error count to 0x263e
 ;address is not present in fabbed mmap
-; FIXME: verify r9 is not modified in bootcode
-;        (to read count later in early user code)
+; r9 is not modified later in bootcode
+;  (to read count later in early user code)
+;  all function calls push/pop r9
+;  user code may initially read r9 to get the RAM error count
     304e:       09 43           clr     r9              
     3050:       35 40 aa aa     mov     #-21846,r5      ;#0xaaaa
     3054:       37 40 00 40     mov     #16384, r7      ;#RAMStart
@@ -356,7 +358,7 @@ gotoMain:
     315c:       a4 f2 
 ;set SCG1 = 1
     315e:       32 d0 80 00     bis     #128,sr ;#0x0080
-; FIXME:
+; FIXME: ^^^ BUG ^^^ BUG ^^^ BUG ^^^ BUG ^^^ BUG ^^^ BUG ^^^
 ; *** IN FABBED CHIP: ***
 ; this makes SCG[1:0] = 10b
 ; SCG0 = 0 **selects** the HF crystal
@@ -693,7 +695,7 @@ PrintString:
     3360:       6f 72
     3362:       00
     
-'string errorMessages[5] = "Flash writing problem"
+;string errorMessages[5] = "Flash writing problem"
     3363:       46
     3364:       6c 61
     3366:       73 68