mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-06-16 04:29:33 +00:00
Set the MODE register, dummy! Works now.
This commit is contained in:
parent
e5d2c319dd
commit
dee0ebce3f
|
@ -167,6 +167,10 @@ Main1: cld
|
||||||
; Actually set the MAC address on the Uthernet-II
|
; Actually set the MAC address on the Uthernet-II
|
||||||
; TODO: Make this slot independent and not hard-coded
|
; TODO: Make this slot independent and not hard-coded
|
||||||
; Hard-coded for slot 5
|
; 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
|
lda #$00 ; High byte of MAC reg addr
|
||||||
ldx #$09 ; Low byte
|
ldx #$09 ; Low byte
|
||||||
sta $bfff+$d6 ; Set high byte of pointer
|
sta $bfff+$d6 ; Set high byte of pointer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user