From 4f8d9dfcb65e010572234da194d141c0956d72c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Thu, 31 Mar 2016 22:07:47 +0200 Subject: [PATCH] LANCEGS.DRV:working. --- DRV/LANCEGS.DRV.S.txt | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/DRV/LANCEGS.DRV.S.txt b/DRV/LANCEGS.DRV.S.txt index 73595ee5..1667c42c 100644 --- a/DRV/LANCEGS.DRV.S.txt +++ b/DRV/LANCEGS.DRV.S.txt @@ -195,7 +195,7 @@ OPEN jsr Reset will select L91C96.0 ldy #0 bit USERMAC - bpl .2 + bmi .2 .1 lda L91C96.1.IAR,x sta MAC,y @@ -367,19 +367,14 @@ SEND >PULLW ZPTmpPTR sta FRAMELEN clc adc #6 3 WORDs more Status, len & Control - sta FRAMELEN6 - pha + + bne .10 + clc LO byte is 0, no need for an extra empty page - ldy #1 +.10 ldy #1 lda (ZPTmpPTR),y sta FRAMELEN+1 adc #0 - 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 .1 ora #L91C96.2.MMUCR.ALLOC sta L91C96.2.MMUCR,x @@ -502,7 +497,6 @@ DRV.CS.END DEVSLOTx0 .BS 1 USERMAC .BS 1 FRAMELEN .BS 2 -FRAMELEN6 .BS 2 *-------------------------------------- DEVINFO .DA #S.DEVINFO.TYPE.NET DEVFLAGS .DA #0