mirror of
https://github.com/A2osX/A2osX.git
synced 2025-01-07 13:29:56 +00:00
LanCEGS:fix a bug in buffer size computation
This commit is contained in:
parent
ea649a8711
commit
f8be97559d
@ -1,6 +1,6 @@
|
||||
PR#3
|
||||
PREFIX /A2OSX.SRC
|
||||
NEW
|
||||
LOMEM $C00
|
||||
INC 1
|
||||
AUTO 6
|
||||
.LIST OFF
|
||||
@ -378,12 +378,17 @@ SEND >PULLW ZPTmpPTR
|
||||
sta FRAMELEN
|
||||
clc
|
||||
adc #6 3 WORDs more Status, len & Control
|
||||
sta FRAMELEN6
|
||||
pha
|
||||
|
||||
ldy #1
|
||||
lda (ZPTmpPTR),y
|
||||
sta FRAMELEN+1
|
||||
adc #0
|
||||
ply
|
||||
sta FRAMELEN6+1
|
||||
|
||||
beq .1 DIV 256=0, write "0 pages", MOD256 is > 0
|
||||
ply if MOD 256=0, save one empty page
|
||||
bne .1
|
||||
dec
|
||||
|
||||
@ -398,8 +403,6 @@ SEND >PULLW ZPTmpPTR
|
||||
dey
|
||||
bne .2
|
||||
|
||||
bra *
|
||||
|
||||
lda #ERR.DEV.NOBUFFER
|
||||
sec
|
||||
rts
|
||||
@ -502,6 +505,7 @@ DRV.CS.END
|
||||
DEVSLOTx0 .BS 1
|
||||
USERMAC .BS 1
|
||||
FRAMELEN .BS 2
|
||||
FRAMELEN6 .BS 2
|
||||
*--------------------------------------
|
||||
DEVINFO .DA #S.DEVINFO.TYPE.NET
|
||||
DEVFLAGS .DA #0
|
||||
|
Loading…
Reference in New Issue
Block a user