Professional Documents
Culture Documents
;-------------------------------------------------------------------------
;
; 6801 ROM dump code
; RhinoPower
; 17th December 2009
;
; XTAL = 4MHz, E = 4MHz/6 = 666,666Hz
; Baud rate = 666,666/128 = 5208
;
;-------------------------------------------------------------------------
;
; start address of the external rom
;
start equ 0BF00h
;
; internal register equates
;
port1_ddr equ 00h
port2_ddr equ 01h
port1 equ 02h
port2 equ 03h
port3_ddr equ 04h
port4_ddr equ 05h
port3 equ 06h
port4 equ 07h
tcsr equ 08h
count_hi equ 09h
count_lo equ 0Ah
outcomp_hi equ 0Bh
outcomp_lo equ 0Ch
incap_hi equ 0Dh
incap_lo equ 0Eh
port3csr equ 0Fh
rmcr equ 10h
status equ 11h
rxbuff equ 12h
txbuff equ 13h
ram_ctrl equ 14h
;
rambot equ 80h ;start of RAM ???
;---------------------------------------------------------------------------
;
; Variables in RAM - can be viewed during save using bus analyser
;
topram equ 80h 1
tstreg equ 81h
;
;
;---------------------------------------------------------------------------
;
;
org start
;