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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [serial.s] - Diff between revs 59 and 182

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

Rev 59 Rev 182
Line 5... Line 5...
;***************************************************************
;***************************************************************
 
 
        .set    ser0base,0xF0300000     ; serial line 0 base address
        .set    ser0base,0xF0300000     ; serial line 0 base address
        .set    ser1base,0xF0301000     ; serial line 1 base address
        .set    ser1base,0xF0301000     ; serial line 1 base address
 
 
        .export serinit                 ; initialize serial interface
        .export ser0init                ; line 0 initialization
 
 
        .export ser0inchk               ; line 0 input check
        .export ser0inchk               ; line 0 input check
        .export ser0in                  ; line 0 input
        .export ser0in                  ; line 0 input
        .export ser0outchk              ; line 0 output check
        .export ser0outchk              ; line 0 output check
        .export ser0out                 ; line 0 output
        .export ser0out                 ; line 0 output
 
 
 
        .export ser1init                ; line 1 initialization
        .export ser1inchk               ; line 1 input check
        .export ser1inchk               ; line 1 input check
        .export ser1in                  ; line 1 input
        .export ser1in                  ; line 1 input
        .export ser1outchk              ; line 1 output check
        .export ser1outchk              ; line 1 output check
        .export ser1out                 ; line 1 output
        .export ser1out                 ; line 1 output
 
 
;***************************************************************
;***************************************************************
 
 
        .code
        .code
        .align  4
        .align  4
 
 
serinit:
ser0init:
        jr      $31
        jr      $31
 
 
;***************************************************************
 
 
 
        .code
 
        .align  4
 
 
 
ser0inchk:
ser0inchk:
        add     $8,$0,ser0base
        add     $8,$0,ser0base
        ldw     $2,$8,0
        ldw     $2,$8,0
        and     $2,$2,1
        and     $2,$2,1
        jr      $31
        jr      $31
Line 65... Line 60...
;***************************************************************
;***************************************************************
 
 
        .code
        .code
        .align  4
        .align  4
 
 
 
ser1init:
 
        jr      $31
 
 
ser1inchk:
ser1inchk:
        add     $8,$0,ser1base
        add     $8,$0,ser1base
        ldw     $2,$8,0
        ldw     $2,$8,0
        and     $2,$2,1
        and     $2,$2,1
        jr      $31
        jr      $31

powered by: WebSVN 2.1.0

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