File tree Expand file tree Collapse file tree 3 files changed +86
-1
lines changed Expand file tree Collapse file tree 3 files changed +86
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
;./vasmm68k_mot -Fhunkexe addconfig.s -o usb_eth.autoconfig -I ~/Documents/amiga-root/SYS/Code/NDK_3.9/Include/include_i
15
15
16
+ ;ENABLE_KPRINTF
17
+
16
18
incdir include :
17
19
incdir sys:code/ndk_3.9 /include /include_i/
18
20
24
26
include lvo/exec_lib.i
25
27
include lvo/expansion_lib.i
26
28
29
+ include kprintf.i
30
+
27
31
moveq .l #-1 ,d0
28
32
rts
29
33
@@ -39,7 +43,7 @@ romtag: dc.w RTC_MATCHWORD
39
43
dc.b RTF_COLDSTART
40
44
dc.b VERSION
41
45
dc.b NT_UNKNOWN
42
- dc.b 0
46
+ dc.b 100
43
47
dc.l name
44
48
dc.l VERSTRING
45
49
dc.l S
@@ -48,6 +52,7 @@ name: dc.b 'usb_eth.autoconfig',0
48
52
even
49
53
50
54
S:
55
+ kprintf "INIT: %s" ,#VERSTRING
51
56
bsr.b AddBoardConfig
52
57
moveq .l #0 ,d0
53
58
rts
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments