mirror of
https://github.com/A2osX/A2osX.git
synced 2024-09-10 22:54:59 +00:00
LANCEGS.DRV:working.
This commit is contained in:
parent
e6f1583572
commit
4f8d9dfcb6
@ -195,7 +195,7 @@ OPEN jsr Reset will select L91C96.0
|
|||||||
|
|
||||||
ldy #0
|
ldy #0
|
||||||
bit USERMAC
|
bit USERMAC
|
||||||
bpl .2
|
bmi .2
|
||||||
|
|
||||||
.1 lda L91C96.1.IAR,x
|
.1 lda L91C96.1.IAR,x
|
||||||
sta MAC,y
|
sta MAC,y
|
||||||
@ -367,19 +367,14 @@ SEND >PULLW ZPTmpPTR
|
|||||||
sta FRAMELEN
|
sta FRAMELEN
|
||||||
clc
|
clc
|
||||||
adc #6 3 WORDs more Status, len & Control
|
adc #6 3 WORDs more Status, len & Control
|
||||||
sta FRAMELEN6
|
|
||||||
pha
|
|
||||||
|
|
||||||
ldy #1
|
bne .10
|
||||||
|
clc LO byte is 0, no need for an extra empty page
|
||||||
|
|
||||||
|
.10 ldy #1
|
||||||
lda (ZPTmpPTR),y
|
lda (ZPTmpPTR),y
|
||||||
sta FRAMELEN+1
|
sta FRAMELEN+1
|
||||||
adc #0
|
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
|
.1 ora #L91C96.2.MMUCR.ALLOC
|
||||||
sta L91C96.2.MMUCR,x
|
sta L91C96.2.MMUCR,x
|
||||||
@ -502,7 +497,6 @@ DRV.CS.END
|
|||||||
DEVSLOTx0 .BS 1
|
DEVSLOTx0 .BS 1
|
||||||
USERMAC .BS 1
|
USERMAC .BS 1
|
||||||
FRAMELEN .BS 2
|
FRAMELEN .BS 2
|
||||||
FRAMELEN6 .BS 2
|
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
DEVINFO .DA #S.DEVINFO.TYPE.NET
|
DEVINFO .DA #S.DEVINFO.TYPE.NET
|
||||||
DEVFLAGS .DA #0
|
DEVFLAGS .DA #0
|
||||||
|
Loading…
Reference in New Issue
Block a user