Kernel 0.9.2

This commit is contained in:
Rémy GIBERT 2018-11-10 20:47:45 +01:00
parent 9c8764a6ae
commit 4abc8a16e3
3 changed files with 13 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -240,19 +240,28 @@ TCP.IN.JMP.LASTACK
TCP.IN.JMP.FINWT1 TCP.IN.JMP.FINWT1
ldy #S.TCP.OPTIONS only accept ACK packet ldy #S.TCP.OPTIONS only accept ACK packet
lda (ZPFrameInPtr),y lda (ZPFrameInPtr),y
bit #S.TCP.OPTIONS.ACK bit #S.TCP.OPTIONS.FIN
beq TCP.IN.JMP.FINWT2.1 beq .8
ldy #S.SOCKET.TCP.O
lda #S.TCP.OPTIONS.FIN send FIN
sta (ZPPtrSKT),y
jsr TCP.IN.ACKTheFIN
bcs .9
ldy #S.SOCKET.TCP.S ldy #S.SOCKET.TCP.S
lda #S.SOCKET.TCP.S.FINWT2 lda #S.SOCKET.TCP.S.FINWT2
sta (ZPPtrSKT),y sta (ZPPtrSKT),y
.8 clc
.9 rts
*-------------------------------------- *--------------------------------------
TCP.IN.JMP.FINWT2 TCP.IN.JMP.FINWT2
ldy #S.TCP.OPTIONS only accept FIN packet ldy #S.TCP.OPTIONS only accept FIN packet
lda (ZPFrameInPtr),y lda (ZPFrameInPtr),y
TCP.IN.JMP.FINWT2.1
bit #S.TCP.OPTIONS.FIN bit #S.TCP.OPTIONS.FIN
bne .8 beq .8
jsr TCP.IN.ACKTheFIN jsr TCP.IN.ACKTheFIN
bcs .9 bcs .9