From dee0ebce3f1b9ec56d5e899d8ed0df57e0cd9610 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Fri, 4 Jun 2021 00:02:22 -0400 Subject: [PATCH] Set the MODE register, dummy! Works now. --- apps/setmac/setmac.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/setmac/setmac.s b/apps/setmac/setmac.s index 69f4f3d..79a1a16 100644 --- a/apps/setmac/setmac.s +++ b/apps/setmac/setmac.s @@ -167,6 +167,10 @@ Main1: cld ; Actually set the MAC address on the Uthernet-II ; TODO: Make this slot independent and not hard-coded ; Hard-coded for slot 5 + lda #$80 ; Reset W5100 + sta $bfff+$d5 ; Store in MODE register + lda #$03 ; Address autoinc, indirect + sta $bfff+$d5 ; Store in MODE register lda #$00 ; High byte of MAC reg addr ldx #$09 ; Low byte sta $bfff+$d6 ; Set high byte of pointer