Skip to content

Commit 8099225

Browse files
committed
version 0.1 add printer test
1 parent ca9ad43 commit 8099225

File tree

12 files changed

+114
-75
lines changed

12 files changed

+114
-75
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
SYS=asm_inc/coco.asm asm_inc/coco3.asm constants.asm
2-
INC=hardware.asm march.asm menu.asm print.asm setgfx.asm
2+
INC=hardware.asm memory.asm menu.asm print.asm printer.asm video.asm
33
OBJS=diag.ccc
44

55
all: ${OBJS}
66

77
diag.ccc: diag.asm ${SYS} ${INC}
8-
lwasm $< -o$@ -fraw -ldiag.txt -s
8+
lwasm $< -o$@ -fraw -ldiag.txt
99

1010
.PHONY: clean distclean build
1111

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# Capabilities
22

3-
## Hardware detection
3+
- Hardware detection
44

5-
- Detect Coco 1/2, CoCo 3, or Dragon
5+
- Detect Coco 1/2, CoCo 3, or Dragon
66

7-
- Detect GIME style MMU
7+
- Detect GIME style MMU
88

9-
- Detect memory installed 4k-2M
9+
- Detect memory installed 4k-2M
1010

11-
- Detect 50/60Hz operation
11+
- Detect 50/60Hz operation
1212

13-
## Memory test
13+
- Memory test
14+
15+
- Printer test
1416

1517
# TODO
1618

@@ -30,8 +32,6 @@
3032

3133
- cassette test
3234

33-
- printer test
34-
3535
- serial test
3636

3737
- joystick test

diag.asm

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ start:
55
ldx #$1000
66
tfr x,s
77
lda #$02
8-
lbsr setgfx
8+
lbsr settxt
99
lbsr cls
1010

1111
lda #'*'
@@ -53,7 +53,7 @@ loop@:
5353
lbra menu
5454
;; lbsr showhw
5555
;; clra
56-
;; lbsr setgfx
56+
;; lbsr settxt
5757
endlp:
5858
inc $03e0
5959
bra endlp
@@ -92,10 +92,11 @@ anykey:
9292
rts
9393

9494
include "hardware.asm"
95-
include "march.asm"
95+
include "memory.asm"
9696
include "menu.asm"
9797
include "print.asm"
98-
include "setgfx.asm"
98+
include "video.asm"
99+
include "printer.asm"
99100
fill:
100101
rmb $e000-fill
101102
end

joystick.asm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
joystick_test:
4+
rts
5+

keyboard.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
keyboard_test:
3+
rts
4+

march.asm renamed to memory.asm

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,41 @@ loop@:
226226
cmpx ,s
227227
bne loop@
228228
puls y,pc
229-
230229
marend:
230+
231+
memtest:
232+
clr memerr
233+
ldu #$0000
234+
ldx #$0200
235+
ldy #$0400
236+
lbsr tst_blk
237+
ldx #$0200
238+
ldb #$04
239+
l@:
240+
lda -$0200,x
241+
sta ,x+
242+
ora memerr
243+
sta memerr
244+
decb
245+
bne l@
246+
lda #$c9
247+
tfr a,b
248+
loop@:
249+
std ,x++
250+
cmpx #$0400
251+
bne loop@
252+
ldu #$0200
253+
lbsr memtst
254+
lbsr cls
255+
lda memerr
256+
bne memerr@
257+
ldx #memgood
258+
ldy #$0247
259+
lbsr print_string
260+
lbra anykey
261+
memerr@:
262+
ldx #membad
263+
ldy #$0247
264+
lbsr print_string
265+
lbra anykey
266+

menu.asm

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -51,59 +51,3 @@ loop@:
5151
bne loop@
5252
lbra anykey
5353

54-
memtest:
55-
clr memerr
56-
ldu #$0000
57-
ldx #$0200
58-
ldy #$0400
59-
lbsr tst_blk
60-
ldx #$0200
61-
ldb #$04
62-
l@:
63-
lda -$0200,x
64-
sta ,x+
65-
ora memerr
66-
sta memerr
67-
decb
68-
bne l@
69-
lda #$c9
70-
tfr a,b
71-
loop@:
72-
std ,x++
73-
cmpx #$0400
74-
bne loop@
75-
ldu #$0200
76-
lbsr memtst
77-
lbsr cls
78-
lda memerr
79-
bne memerr@
80-
ldx #memgood
81-
ldy #$0247
82-
lbsr print_string
83-
lbra anykey
84-
memerr@:
85-
ldx #membad
86-
ldy #$0247
87-
lbsr print_string
88-
lbra anykey
89-
90-
print_test:
91-
lbsr cls
92-
ldx #printing
93-
ldy #$024c
94-
lda #-1
95-
sta DEVNUM
96-
lda cr
97-
jmp [CHROUT]
98-
lda $20
99-
loop@:
100-
jmp [CHROUT]
101-
inca
102-
cmpa #$7e
103-
ble loop@
104-
lda cr
105-
jmp [CHROUT]
106-
clr DEVNUM
107-
lbsr anykey
108-
rts
109-

print.asm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ letter@:
5959
title: fcz "COLOR COMPUTER"
6060
fcz "DIAGNOSTICS CART"
6161
version:
62-
fcz "VERSION 0.0"
62+
fcz "VERSION 0.1"
6363
fcz "(C) 2025 ZIA COMPUTING"
6464
page0: fcz "PAGE 0 ERROR"
6565
page1: fcz "PAGE 1 ERROR"
@@ -69,6 +69,11 @@ main_menu:
6969
fcz "A) HARDWARE INFO"
7070
fcz "B) MEMORY TEST"
7171
fcz "C) PRINTER TEST"
72+
fcz "*) ROM TEST"
73+
fcz "*) VIDEO TEST"
74+
fcz "*) SOUND TEST"
75+
fcz "*) JOYSTICK TEST"
76+
fcz "*) KEYBOARD TEST"
7277
fcb $00
7378
hwtitle:
7479
fcz "HARDWARE INFORMATION"

printer.asm

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
print_test:
3+
lbsr cls
4+
ldx #printing
5+
ldy #$024c
6+
lda #-1
7+
sta DEVNUM
8+
lda cr
9+
jmp [CHROUT]
10+
lda $20
11+
loop@:
12+
jmp [CHROUT]
13+
inca
14+
cmpa #$7e
15+
ble loop@
16+
lda cr
17+
jmp [CHROUT]
18+
clr DEVNUM
19+
lbsr anykey
20+
rts
21+

rom.asm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
crc:
3+
rts
4+
5+
rom_test:
6+
rts
7+

0 commit comments

Comments
 (0)