mirror of
https://github.com/elliotnunn/NetBoot.git
synced 2024-12-22 01:30:18 +00:00
Small code fixes: still crashing
This commit is contained in:
parent
d77d4cd677
commit
5a55190a83
@ -511,21 +511,19 @@ DrvrDidReceiveRead
|
|||||||
move.l gMyDCE,A0
|
move.l gMyDCE,A0
|
||||||
move.l 6+2(A0),A0 ; dCtlQHdr.qHead
|
move.l 6+2(A0),A0 ; dCtlQHdr.qHead
|
||||||
|
|
||||||
move.l $28(A0),D0
|
move.l $28(A0),D0 ; Increment ioActCount and cmp with ioReqCount
|
||||||
add.l #512,D0
|
add.l #512,D0
|
||||||
move.l D0,$28(A0)
|
move.l D0,$28(A0)
|
||||||
cmp.l $24(A0),D0
|
cmp.l $24(A0),D0
|
||||||
beq.s .ioDone
|
beq.s .ioDone
|
||||||
addq.l #1,D1
|
|
||||||
beq DrvrSendRead
|
|
||||||
rts
|
|
||||||
|
|
||||||
.nextChunk
|
addq.l #1,D1 ; If bitmap=$FFFFFFFF then get the next chunk of 32
|
||||||
move.w #$1111,D0
|
beq DrvrSendRead ; A0 must be the PB
|
||||||
dc.w $A9C9
|
|
||||||
rts
|
|
||||||
|
|
||||||
.ioDone lea gExpectHdr,A1
|
rts ; Just return to await more packets.
|
||||||
|
|
||||||
|
|
||||||
|
.ioDone lea gExpectHdr,A1 ; Disable this socket listener
|
||||||
clr.w (A1)
|
clr.w (A1)
|
||||||
|
|
||||||
move.l gMyDCE,A1
|
move.l gMyDCE,A1
|
||||||
@ -536,7 +534,8 @@ DrvrDidReceiveRead
|
|||||||
|
|
||||||
|
|
||||||
DrvrDidReceiveWrite
|
DrvrDidReceiveWrite
|
||||||
bsr DrvrDidReceiveWrite
|
move.w #$5555,D0
|
||||||
|
dc.w $A9C9
|
||||||
|
|
||||||
DrvrTrashPacket
|
DrvrTrashPacket
|
||||||
moveq.l #0,D3
|
moveq.l #0,D3
|
||||||
|
Loading…
Reference in New Issue
Block a user