Line 194... |
Line 194... |
clrtest:
|
clrtest:
|
bltu $8,$9,clrloop
|
bltu $8,$9,clrloop
|
|
|
; initialize I/O
|
; initialize I/O
|
add $29,$0,stacktop ; setup monitor stack
|
add $29,$0,stacktop ; setup monitor stack
|
jal kbdinit ; init keyboard
|
add $4,$0,CIO_CTL ; set console
|
jal dspinit ; init display
|
jal setcio
|
|
ldbu $8,$0,cioctl ; get control byte
|
|
and $8,$8,0x01 ; keyboard input wanted?
|
|
bne $8,$0,nokbd ; no - then don't touch
|
|
jal kbdinit ; else init keyboard
|
|
nokbd:
|
|
ldbu $8,$0,cioctl ; get control byte
|
|
and $8,$8,0x02 ; display output wanted?
|
|
bne $8,$0,nodsp ; no - then don't touch
|
|
jal dspinit ; else init display
|
|
nodsp:
|
jal ser0init ; init serial line 0
|
jal ser0init ; init serial line 0
|
jal ser1init ; init serial line 1
|
jal ser1init ; init serial line 1
|
jal dskinitctl ; init disk (controller)
|
jal dskinitctl ; init disk (controller)
|
jal dskinitser ; init disk (serial line)
|
jal dskinitser ; init disk (serial line)
|
add $4,$0,CIO_CTL ; set console
|
|
jal setcio
|
|
|
|
; call main
|
; call main
|
jal main ; enter command loop
|
jal main ; enter command loop
|
|
|
; main should never return
|
; main should never return
|