1 ; Author: Frederik Noring <noring@nocrew.org>
3 ; This file is subject to the terms and conditions of the GNU General Public
4 ; License. See the file COPYING in the main directory of this archive
10 M_BCR
EQU $FFFE ; Port A Bus Control Register
11 M_PBC
EQU $FFE0 ; Port B Control Register
12 M_PBDDR
EQU $FFE2 ; Port B Data Direction Register
13 M_PBD
EQU $FFE4 ; Port B Data Register
14 M_PCC
EQU $FFE1 ; Port C Control Register
15 M_PCDDR
EQU $FFE3 ; Port C Data Direction Register
16 M_PCD
EQU $FFE5 ; Port C Data Register
18 M_HCR
EQU $FFE8 ; Host Control Register
19 M_HSR
EQU $FFE9 ; Host Status Register
20 M_HRX
EQU $FFEB ; Host Receive Data Register
21 M_HTX
EQU $FFEB ; Host Transmit Data Register
23 ; SSI, Synchronous Serial Interface
24 M_RX
EQU $FFEF ; Serial Receive Data Register
25 M_TX
EQU $FFEF ; Serial Transmit Data Register
26 M_CRA
EQU $FFEC ; SSI Control Register A
27 M_CRB
EQU $FFED ; SSI Control Register B
28 M_SR
EQU $FFEE ; SSI Status Register
29 M_TSR
EQU $FFEE ; SSI Time Slot Register
31 ; Exception Processing
32 M_IPR
EQU $FFFF ; Interrupt Priority Register
38 ; ; Zero 16384 DSP X and Y words
43 ; move A,X:(r0)+ B,Y:(r4)+
44 ;_block1 ; Zero (32768-512) Program words
51 ; Copy DSP program control
54 do #upload_end
-upload
,<_copy
57 _copy movep #
>4,X:<<M_HCR
58 movep #
>$c00,X:<<M_IPR
68 next jclr #
0,X:<<M_HSR
,*
74 jclr #
0,X:<<M_HSR
,_get_address
77 jclr #
0,X:<<M_HSR
,_get_length
86 movep
X:<<M_HRX
,P:(r0
)+
90 movep
X:<<M_HRX
,X:(r0
)+
94 movep
X:<<M_HRX
,Y:(r0
)+