Skip to content

Commit 669175b

Browse files
committed
[usb_eth] Raise ROMTAG priority to 100
1 parent a33c234 commit 669175b

File tree

3 files changed

+86
-1
lines changed

3 files changed

+86
-1
lines changed

usb/addconfig.s

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
;./vasmm68k_mot -Fhunkexe addconfig.s -o usb_eth.autoconfig -I ~/Documents/amiga-root/SYS/Code/NDK_3.9/Include/include_i
1515

16+
;ENABLE_KPRINTF
17+
1618
incdir include:
1719
incdir sys:code/ndk_3.9/include/include_i/
1820

@@ -24,6 +26,8 @@
2426
include lvo/exec_lib.i
2527
include lvo/expansion_lib.i
2628

29+
include kprintf.i
30+
2731
moveq.l #-1,d0
2832
rts
2933

@@ -39,7 +43,7 @@ romtag: dc.w RTC_MATCHWORD
3943
dc.b RTF_COLDSTART
4044
dc.b VERSION
4145
dc.b NT_UNKNOWN
42-
dc.b 0
46+
dc.b 100
4347
dc.l name
4448
dc.l VERSTRING
4549
dc.l S
@@ -48,6 +52,7 @@ name: dc.b 'usb_eth.autoconfig',0
4852
even
4953

5054
S:
55+
kprintf "INIT: %s",#VERSTRING
5156
bsr.b AddBoardConfig
5257
moveq.l #0,d0
5358
rts

usb/kprintf.i

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
;
2+
; WWW.FPGAArcade.COM
3+
;
4+
; REPLAY Retro Gaming Platform
5+
; No Emulation No Compromise
6+
;
7+
; usb_eth.autoconfig - ZorroIII config for the REPLAY 68060 daughterboard
8+
; Copyright (C) Erik Hemming
9+
;
10+
; This software is licensed under LPGLv2.1 ; see LICENSE file
11+
;
12+
;
13+
14+
kprintf MACRO
15+
IFD ENABLE_KPRINTF
16+
17+
ifnc "","\9"
18+
move.l \9,-(sp)
19+
endc
20+
ifnc "","\8"
21+
move.l \8,-(sp)
22+
endc
23+
ifnc "","\7"
24+
move.l \7,-(sp)
25+
endc
26+
ifnc "","\6"
27+
move.l \6,-(sp)
28+
endc
29+
ifnc "","\5"
30+
move.l \5,-(sp)
31+
endc
32+
ifnc "","\4"
33+
move.l \4,-(sp)
34+
endc
35+
ifnc "","\3"
36+
move.l \3,-(sp)
37+
endc
38+
ifnc "","\2"
39+
move.l \2,-(sp)
40+
endc
41+
42+
jsr _kprintf
43+
44+
dc.b \1,13,10,0
45+
even
46+
47+
adda.w #(NARG-1)*4,sp
48+
49+
.skip\@
50+
ENDC
51+
ENDM
52+
53+
IFD ENABLE_KPRINTF
54+
bra.b _kprintf_end
55+
_kprintf: movem.l d0-d1/a0-a3/a6,-(sp)
56+
move.l $4.w,a6
57+
move.l 28(sp),a0
58+
lea 32(sp),a1
59+
lea .putch(pc),a2
60+
move.l a6,a3
61+
jsr -522(a6) ; _LVORawDoFmt
62+
63+
move.l 28(sp),a0
64+
.end: move.b (a0)+,d0
65+
bne.b .end
66+
move.l a0,d0
67+
addq.l #1,d0
68+
and.l #$fffffffe,d0
69+
move.l d0,28(sp)
70+
movem.l (sp)+,d0-d1/a0-a3/a6
71+
rts
72+
73+
.putch: movem.l d0-d1/a0-a1/a6,-(sp)
74+
move.l $4.w,a6
75+
jsr -516(a6) ; _LVORawPutChar (execPrivate9)
76+
movem.l (sp)+,d0-d1/a0-a1/a6
77+
rts
78+
_kprintf_end:
79+
ENDC
80+

usb/usb_eth.autoconfig

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)