Kernel version 0.9 : TCP, bugfix in GetCA byte counter trashing stack

This commit is contained in:
Rémy GIBERT 2017-03-15 08:30:01 +01:00
parent 4b37165b93
commit cfac8b4821
3 changed files with 9 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -908,6 +908,8 @@ SKT.GetDataFromSktOut
inc
beq .5
pha
.2 lda (ZPTmpPtr2)
sta (ZPDataOutPtr),y
iny
@ -1006,15 +1008,16 @@ SKT.GetDataFromSktIn
bne .2
pla
inc
beq .8
pha
beq .7
.2 lda SKT.TCBCache+S.TCB.INTAIL
eor SKT.TCBCache+S.TCB.INHEAD
bne .3
lda SKT.TCBCache+S.TCB.INTAIL+1
eor SKT.TCBCache+S.TCB.INHEAD+1
beq .8 no more data....
beq .7 no more data....
.3 lda (ZPTmpPtr2)
pha
@ -1044,7 +1047,7 @@ SKT.GetDataFromSktIn
bpl .6
cmp #13
beq .8
beq .7
.6 sta (ZPDataOutPtr),y
iny
@ -1057,11 +1060,11 @@ SKT.GetDataFromSktIn
bra .1
.7 bit bTextMode here, bacause dst buf full....
.7 pla discard byte counter HI
.8 bit bTextMode here, bacause dst buf full....
bmi .9 ....and TextMode selected, NO ending CR found
.8 pla discard byte counter HI
lda ZPTmpPtr3 Do we have transfered something?
eor ZPTmpPtr3+1
beq .9