Set the MODE register, dummy! Works now.

This commit is contained in:
Bobbi Webber-Manners 2021-06-04 00:02:22 -04:00
parent e5d2c319dd
commit dee0ebce3f
1 changed files with 4 additions and 0 deletions

View File

@ -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