New bug found: hexdump 0x43DE
in upper cases doesn't dump the right addresse but 52BE.
Using lower cases work.
Fixed in future RC7. Here is the patch:
--- a/src/Misc.asm
+++ b/src/Misc.asm
@@ -538,37 +538,9 @@ getenv_si:
; Destroy:
; d0-d2/a0
atol:
- cmp.b #'0',(a0)
- bne.s \start10
- cmp.b #'x',1(a0)
- bne.s \start10
- addq.l #2,a0 ; Skip '0x'
-\start16:
- moveq #0,d0
-\loop moveq #0,d1 ; Read
- move.b (a0)+,d1 ; Char
- beq.s \end
- subi.b #'0',d1 ; From '0'
- cmpi.b #9,d1
- bls.s \ok
- subi.b #'a'-'0'-10,d1
-\ok lsl.l #4,d0
- add.l d1,d0
- bra.s \loop
-\end: rts
-
-\start10:
- moveq #0,d0
-\loop10 moveq #0,d1 ; Read
- move.b (a0)+,d1 ; Char
- beq.s \end
- subi.b #'0',d1 ; From '0'
- move.l d0,d2
- lsl.l #3,d0
- add.l d2,d0
- add.l d2,d0 ; x10
- add.l d1,d0
- bra.s \loop10
+ clr.w d0
+ suba.l a1,a1
+ jmp strtol
;short CU_stop (void);
; Destroy only d0
Quite simple, isn't it