cads

cads Commit Details

Date:2008-12-13 15:57:01 (3 years 5 months ago)
Author:Ciaran Gultnieks
Branch:master
Commit:f088d9682504d29722ba3ed10aad59bc6a388cd1
Parents: aa3c135976be83c18fd9eaf7613fe4602b830116
Message:68k - the loader assembles, but will it work?

Changes:
Mcads-ldr.asm (5 diffs)

File differences

cads-ldr.asm
4545
4646
4747
48
49
50
51
4852
4953
5054
......
136140
137141
138142
143
139144
140145
141146
......
179184
180185
181186
182
187
183188
184189
185190
186
191
187192
188193
189194
......
216221
217222
218223
219
224
220225
221226
222227
......
233238
234239
235240
236
241
237242
238243
239244
DIWSTRT= 0x8E
DIWSTOP= 0x90
SERDAT= 0x30
SERDATR= 0x18
SERPER= 0x32
INTVEC5 = 0x60+4*5|Vector for level 5 interrupt
CopList= 0x20000|We'll put our copper list here
#buffer full...
move.l#0,ExecAddress
move.l#0,ReceiveState
move.w#0xB8,SERPER(a6)|19200 baud (maybe 0xB9?)
move.l#IntLevel5,INTVEC5
move.w#0x8800,INTENA(a6)
braExitI5
#State 1 = Receiving ReceiveCount bytes of data and storing
# at RecieveCount. If ReceivePendCmd > 0 then when
# at ReceiveCount. If ReceivePendCmd > 0 then when
# all the bytes have been received, that command
# should be processed.
State1:move.lReceivePtr,a0
move.lRecieveCount,d1
move.lReceiveCount,d1
or.ld1,d1
beqExitI5
move.bd0,(a0)+
braExitI5
NotEnd:move.la0,ReceivePtr
move.ld1,RecieveCount
move.ld1,ReceiveCount
braExitI5
#State 0 = waiting for a command byte, 1-n
Cmd1:move.l#1,ReceivePendCmd
move.l#1,ReceiveState
move.l#8,ReceiveCount
move.l#ReceiveButter,ReceivePtr
move.l#ReceiveBuffer,ReceivePtr
ExitI5:movem.l(a7)+,d0-d7/a0-a6
rts

Archive Download the corresponding diff file

Branches