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

Subversion Repositories wb4pb

[/] [wb4pb/] [trunk/] [asm/] [pbwbuart.psm] - Diff between revs 11 and 22

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

Rev 11 Rev 22
Line 169... Line 169...
  LOAD wb_addr , UART_SR_ADDR ; setting status register address
  LOAD wb_addr , UART_SR_ADDR ; setting status register address
  CALL wb_rd
  CALL wb_rd
  ; checking data present flag
  ; checking data present flag
  TEST wb_data , UART_SR_RX_DP_FLAG
  TEST wb_data , UART_SR_RX_DP_FLAG
  ; if flag is not set, returning immediately
  ; if flag is not set, returning immediately
  JUMP NZ , uart_clr_buff_l0
  RETURN Z
    RETURN
 
  ; else reading out next byte and checking flag again
  ; else reading out next byte and checking flag again
  uart_clr_buff_l0:
 
    CALL uart_rd_byte
    CALL uart_rd_byte
    JUMP uart_clr_buff
    JUMP uart_clr_buff
 
 
; register and flag addressing
; register and flag addressing
CONSTANT UART_RXTX_ADDR , 00 ; receive/transmit data pipe
CONSTANT UART_RXTX_ADDR , 00 ; receive/transmit data pipe

powered by: WebSVN 2.1.0

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