OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [boards/] [simulator/] [start.s] - Diff between revs 201 and 331

Show entire file | Details | Blame | View Log

Rev 201 Rev 331
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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.