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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [boards/] [xsa-xst-3/] [start.s] - Diff between revs 185 and 193

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 185 Rev 193
Line 1... Line 1...
;
;
; start.s -- ECO32 ROM monitor startup and support routines
; start.s -- ECO32 ROM monitor startup and support routines
;
;
 
 
;       .set    CIO_CTL,0x00            ; set console to keyboard/display
        .set    BIO_BASE,0xF1000000     ; board I/O base address
        .set    CIO_CTL,0x03            ; set console to serial line 0
        .set    BIO_WR,BIO_BASE+0
 
        .set    BIO_RD,BIO_BASE+4
 
        .set    CIO_CTRL,0x08           ; this bit controls console I/O
 
 
 
        .set    CIO_KBD_DSP,0x00        ; set console to keyboard/display
 
        .set    CIO_SERIAL_0,0x03       ; set console to serial line 0
 
 
        .set    dmapaddr,0xC0000000     ; base of directly mapped addresses
        .set    dmapaddr,0xC0000000     ; base of directly mapped addresses
        .set    stacktop,0xC0010000     ; monitor stack is at top of 64K
        .set    stacktop,0xC0010000     ; monitor stack is at top of 64K
 
 
        .set    PSW,0                    ; reg # of PSW
        .set    PSW,0                    ; reg # of PSW
Line 200... Line 205...
        jal     dspinit                 ; init display
        jal     dspinit                 ; init display
        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
        ldw     $8,$0,BIO_RD             ; get switch settings
 
        and     $8,$8,CIO_CTRL
 
        add     $4,$0,CIO_SERIAL_0       ; set console to serial line
 
        bne     $8,$0,swtchset
 
        add     $4,$0,CIO_KBD_DSP        ; set console to kbd/dsp
 
swtchset:
        jal     setcio
        jal     setcio
 
 
        ; call main
        ; call main
        jal     main                    ; enter command loop
        jal     main                    ; enter command loop
 
 

powered by: WebSVN 2.1.0

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