Kernel version 0.9 : TCP, bugfix in SEQ & ACK (#2)

This commit is contained in:
Rémy GIBERT 2017-03-28 08:33:18 +02:00
parent eafa4da73f
commit c86aeab0c0
4 changed files with 5 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -729,7 +729,7 @@ SKT.AddDataToSktIn
bcc .80
inc SKT.TCBCache+S.TCB.LASTSEQ+1
bne .80
inc SKT.TCBCache+S.TCB.NEXTSEQ
inc SKT.TCBCache+S.TCB.LASTSEQ
.80 jmp SKT.StoreTCB
*--------------------------------------
@ -896,7 +896,6 @@ SKT.GetDataFromSktIn
*--------------------------------------
SKT.AddDataToSktOut
jsr SKT.GetTCB
ldx SKT.TCBCache+S.TCB.OUTFREE
cpx ZPDataInLen
lda SKT.TCBCache+S.TCB.OUTFREE+1
@ -1056,13 +1055,13 @@ SKT.AckDataToSktOut
ldx #3 Substract old ACK from socket
sec
.1 lda (ZPFrameInPtr),y
pha
sbc SKT.TCBCache+S.TCB.ACKNUM,x
sbc SKT.TCBCache+S.TCB.SEQNUM,x
sta TmpDWord,x
pla ....and Set ACK = new ACK
sta SKT.TCBCache+S.TCB.ACKNUM,x
sta SKT.TCBCache+S.TCB.SEQNUM,x
dey
dex
bpl .1

View File

@ -431,7 +431,7 @@ TCP.OUT.Send ldy #S.TCP.OPTIONS
ldx #7
ldy #S.TCP.SEQ.NUMBER+7
.2 lda SKT.TCBCache+S.TCB.SEQNUM,x
.2 lda SKT.TCBCache+S.TCB.NEXTSEQ,x
sta (ZPFrameOutPtr),y
dey
dex