From 511c0df9359bb3014f271b45526621c748dfd8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Wed, 30 Mar 2016 08:30:41 +0200 Subject: [PATCH] LANCEGS.DRV:Debugging session #1 --- DRV/LANCEGS.DRV.S.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/DRV/LANCEGS.DRV.S.txt b/DRV/LANCEGS.DRV.S.txt index ca592c37..e1a23d32 100644 --- a/DRV/LANCEGS.DRV.S.txt +++ b/DRV/LANCEGS.DRV.S.txt @@ -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 lda L91C96.2.DATA,x - lda L91C96.2.DATA+1,x + lda L91C96.2.DATA,x pha and #$60 Broadcast? 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 sta FRAMELEN tay - lda L91C96.2.DATA+1,x + lda L91C96.2.DATA,x sta FRAMELEN+1 >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 .3 jsr DecFrameLen beq .8 - lda L91C96.2.DATA+1,x + lda L91C96.2.DATA,x sta (ZPTmpPTR),y iny bne .2 @@ -410,12 +410,12 @@ SEND >PULLW ZPTmpPTR .3 lda L91C96.2.AAR,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 - lda /L91C96.2.PTR.AUTOI+2 + lda /L91C96.2.PTR.AUTOI 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 .4 lda MAC,x sta (ZPTmpPTR),y @@ -424,6 +424,8 @@ SEND >PULLW ZPTmpPTR bpl .4 ldx DEVSLOTx0 + stz L91C96.2.DATA,x write fake statusword + stz L91C96.2.DATA,x lda FRAMELEN pha @@ -432,7 +434,7 @@ SEND >PULLW ZPTmpPTR sbc #$fb add 5 if odd, 6 if even sta L91C96.2.DATA,x lda FRAMELEN+1 - sta L91C96.2.DATA+1,x + sta L91C96.2.DATA,x ldy #2 @@ -449,7 +451,7 @@ SEND >PULLW ZPTmpPTR pla sta L91C96.2.DATA,x lda (ZPTmpPTR),y - sta L91C96.2.DATA+1,x + sta L91C96.2.DATA,x iny bne .5 inc ZPTmpPTR+1 @@ -457,13 +459,13 @@ SEND >PULLW ZPTmpPTR .70 lda #0 sta L91C96.2.DATA,x - sta L91C96.2.DATA+1,x + sta L91C96.2.DATA,x bra .8 .71 lda #$40 signal an extra (odd) byte sta L91C96.2.DATA,x pla - sta L91C96.2.DATA+1,x + sta L91C96.2.DATA,x .8 lda #L91C96.2.MMUCR.NQPKT sta L91C96.2.MMUCR,x