mirror of
https://github.com/A2osX/A2osX.git
synced 2025-01-29 23:32:00 +00:00
LANCEGS.DRV:Debugging session #1
This commit is contained in:
parent
7f7cd4b6e3
commit
511c0df935
@ -253,7 +253,7 @@ GETEVENT.RxOK lda #L91C96.2.PTR.RCVD+L91C96.2.PTR.AUTOI+L91C96.2.PTR.READ
|
|||||||
sta L91C96.2.PTR+1,x
|
sta L91C96.2.PTR+1,x
|
||||||
|
|
||||||
lda L91C96.2.DATA,x
|
lda L91C96.2.DATA,x
|
||||||
lda L91C96.2.DATA+1,x
|
lda L91C96.2.DATA,x
|
||||||
pha
|
pha
|
||||||
and #$60 Broadcast?
|
and #$60 Broadcast?
|
||||||
asl
|
asl
|
||||||
@ -269,7 +269,7 @@ GETEVENT.RxOK lda #L91C96.2.PTR.RCVD+L91C96.2.PTR.AUTOI+L91C96.2.PTR.READ
|
|||||||
sbc #3 compute FRAMELEN+2
|
sbc #3 compute FRAMELEN+2
|
||||||
sta FRAMELEN
|
sta FRAMELEN
|
||||||
tay
|
tay
|
||||||
lda L91C96.2.DATA+1,x
|
lda L91C96.2.DATA,x
|
||||||
sta FRAMELEN+1
|
sta FRAMELEN+1
|
||||||
|
|
||||||
>PUSHYA FRAMLEN+2
|
>PUSHYA FRAMLEN+2
|
||||||
@ -307,7 +307,7 @@ GETEVENT.RxOK lda #L91C96.2.PTR.RCVD+L91C96.2.PTR.AUTOI+L91C96.2.PTR.READ
|
|||||||
inc ZPTmpPTR+1
|
inc ZPTmpPTR+1
|
||||||
.3 jsr DecFrameLen
|
.3 jsr DecFrameLen
|
||||||
beq .8
|
beq .8
|
||||||
lda L91C96.2.DATA+1,x
|
lda L91C96.2.DATA,x
|
||||||
sta (ZPTmpPTR),y
|
sta (ZPTmpPTR),y
|
||||||
iny
|
iny
|
||||||
bne .2
|
bne .2
|
||||||
@ -410,12 +410,12 @@ SEND >PULLW ZPTmpPTR
|
|||||||
.3 lda L91C96.2.AAR,x
|
.3 lda L91C96.2.AAR,x
|
||||||
sta L91C96.2.PNR,x
|
sta L91C96.2.PNR,x
|
||||||
|
|
||||||
lda #L91C96.2.PTR.AUTOI+2 skip status WORD
|
lda #L91C96.2.PTR.AUTOI
|
||||||
sta L91C96.2.PTR,x
|
sta L91C96.2.PTR,x
|
||||||
lda /L91C96.2.PTR.AUTOI+2
|
lda /L91C96.2.PTR.AUTOI
|
||||||
sta L91C96.2.PTR+1,x
|
sta L91C96.2.PTR+1,x
|
||||||
|
|
||||||
ldy #2+6+5 Add Src MAC Address
|
ldy #S.ETH.SRCMAC+5 Add Src MAC Address
|
||||||
ldx #5
|
ldx #5
|
||||||
.4 lda MAC,x
|
.4 lda MAC,x
|
||||||
sta (ZPTmpPTR),y
|
sta (ZPTmpPTR),y
|
||||||
@ -424,6 +424,8 @@ SEND >PULLW ZPTmpPTR
|
|||||||
bpl .4
|
bpl .4
|
||||||
|
|
||||||
ldx DEVSLOTx0
|
ldx DEVSLOTx0
|
||||||
|
stz L91C96.2.DATA,x write fake statusword
|
||||||
|
stz L91C96.2.DATA,x
|
||||||
|
|
||||||
lda FRAMELEN
|
lda FRAMELEN
|
||||||
pha
|
pha
|
||||||
@ -432,7 +434,7 @@ SEND >PULLW ZPTmpPTR
|
|||||||
sbc #$fb add 5 if odd, 6 if even
|
sbc #$fb add 5 if odd, 6 if even
|
||||||
sta L91C96.2.DATA,x
|
sta L91C96.2.DATA,x
|
||||||
lda FRAMELEN+1
|
lda FRAMELEN+1
|
||||||
sta L91C96.2.DATA+1,x
|
sta L91C96.2.DATA,x
|
||||||
|
|
||||||
ldy #2
|
ldy #2
|
||||||
|
|
||||||
@ -449,7 +451,7 @@ SEND >PULLW ZPTmpPTR
|
|||||||
pla
|
pla
|
||||||
sta L91C96.2.DATA,x
|
sta L91C96.2.DATA,x
|
||||||
lda (ZPTmpPTR),y
|
lda (ZPTmpPTR),y
|
||||||
sta L91C96.2.DATA+1,x
|
sta L91C96.2.DATA,x
|
||||||
iny
|
iny
|
||||||
bne .5
|
bne .5
|
||||||
inc ZPTmpPTR+1
|
inc ZPTmpPTR+1
|
||||||
@ -457,13 +459,13 @@ SEND >PULLW ZPTmpPTR
|
|||||||
|
|
||||||
.70 lda #0
|
.70 lda #0
|
||||||
sta L91C96.2.DATA,x
|
sta L91C96.2.DATA,x
|
||||||
sta L91C96.2.DATA+1,x
|
sta L91C96.2.DATA,x
|
||||||
bra .8
|
bra .8
|
||||||
|
|
||||||
.71 lda #$40 signal an extra (odd) byte
|
.71 lda #$40 signal an extra (odd) byte
|
||||||
sta L91C96.2.DATA,x
|
sta L91C96.2.DATA,x
|
||||||
pla
|
pla
|
||||||
sta L91C96.2.DATA+1,x
|
sta L91C96.2.DATA,x
|
||||||
|
|
||||||
.8 lda #L91C96.2.MMUCR.NQPKT
|
.8 lda #L91C96.2.MMUCR.NQPKT
|
||||||
sta L91C96.2.MMUCR,x
|
sta L91C96.2.MMUCR,x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user