; 6502 BIOS ; Based on original code by Daryl Rictor ; Adapted to 16550 UART board for RC2014 ; Renamed to 16c550.asm ; Changes are copyright Ben Chong and freely licensed to the community ; ; Note: Does not require a 16C550 with autoflow control ; ; ----------------- assembly instructions ---------------------------- ; ; this is a subroutine library only ; it must be included in an executable source file ; ; ;*** I/O Locations ******************************* ; Define the i/o address of the UART chip ;*** 16C550 UART ************************ uart_base = $c0c0 uart_reg0 = $c0c0 uart_reg1 = $c0c1 uart_reg2 = $c0c2 uart_reg3 = $c0c3 uart_reg4 = $c0c4 uart_reg5 = $c0c5 uart_reg6 = $c0c6 uart_reg7 = $c0c7 uart_xmit = uart_reg0 ; Used by upload.asm ; ;*********************************************************************** ; UART I/O Support Routines ; We'll use Daryl's routine names for compatibility with his software/code ; Otherwise, we'll use UART-agnostic nomemclature ;--------------------------------------------------------------------- ; ACIA1_init uart_init lda #>uart_irq ldx #