Skip to content

Commit 0381f6b

Browse files
authored
bug fix
typo caused MD register to not be updated properly
1 parent 5629385 commit 0381f6b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

hb63c09/hb-mand.asm

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
;; there is a supported UART -- You should check the addresses in your
55
;; source file for the UART to make shure they align with your architecture
66

7+
;; Load this into MON09 or ASSIST09 with 'L' command by pasteing the .S19
8+
;; into the terminal.
9+
710
;; lets enable 6309 since the CPU is required for the architecture of the computer
811
h6309 EQU 1
9-
10-
ORG $1000
11-
12+
ORG $1000 ; Jump to this location with G 1000 in MON09 or ASSIST9
13+
CONFIG:
1214
ifdef h6309
13-
ldmd #1 ; h6309 native mode
15+
LDMD #1 ; h6309 native mode
1416
endif
1517

1618
;; main loop
@@ -44,14 +46,15 @@ loop:
4446
BNE loop ; If not, continue
4547
LEAS 5,S ; Deallocate stack
4648

47-
49+
DONE:
4850
ifdef h6309
49-
ldmd #0 ; h6809 emulation mode
51+
LDMD #0 ; h6809 emulation mode
5052
endif
5153

5254
JMP [$FFFE] ; Jump to reset vector
5355

54-
;; includes
56+
;; includes uart and multi-mandelbrot for 24 bit fp math for optimal results.
57+
5558
INCLUDE "68b50.asm"
5659

5760

0 commit comments

Comments
 (0)