diff --git a/DRV/LANCEGS.DRV.S.txt b/DRV/LANCEGS.DRV.S.txt index 5a9d5f2a..ca592c37 100644 --- a/DRV/LANCEGS.DRV.S.txt +++ b/DRV/LANCEGS.DRV.S.txt @@ -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