mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2025-08-15 10:27:46 +00:00
Reorder a bit to put the configurable bits at the top.
This commit is contained in:
@@ -30,6 +30,27 @@
|
|||||||
|
|
||||||
.proc main
|
.proc main
|
||||||
|
|
||||||
|
.segment "HGR"
|
||||||
|
|
||||||
|
; TODO: make these configurable
|
||||||
|
SRCADDR: .byte $C0,$A8,$01,147 ; 192.168.1.147 W5100 IP
|
||||||
|
FADDR: .byte $C0,$A8,$01,15 ; 192.168.1.15 FOREIGN IP
|
||||||
|
FPORT: .byte $b9,$07 ; 1977 FOREIGN PORT
|
||||||
|
MAC: .byte $00,$08,$DC,$01,$02,$03 ; W5100 MAC ADDRESS
|
||||||
|
|
||||||
|
; SLOT 1 I/O ADDRESSES FOR THE W5100
|
||||||
|
; Change this to support the Uthernet II in another slot
|
||||||
|
;
|
||||||
|
; TODO: make slot I/O addresses customizable at runtime - would probably require somehow
|
||||||
|
; compiling a list of all of the binary offsets at which we reference $C09x and patching
|
||||||
|
; them in memory or on-disk.
|
||||||
|
WMODE = $C094
|
||||||
|
WADRH = $C095
|
||||||
|
WADRL = $C096
|
||||||
|
WDATA = $C097
|
||||||
|
|
||||||
|
;;;
|
||||||
|
|
||||||
hgr = $f3e2
|
hgr = $f3e2
|
||||||
fullscr = $c052
|
fullscr = $c052
|
||||||
tick = $c030 ; where the magic happens
|
tick = $c030 ; where the magic happens
|
||||||
@@ -38,14 +59,6 @@ tick = $c030 ; where the magic happens
|
|||||||
zpdummy = $00
|
zpdummy = $00
|
||||||
dummy = $ffff
|
dummy = $ffff
|
||||||
|
|
||||||
; TODO: make slot I/O addresses customizable
|
|
||||||
|
|
||||||
; SLOT 1 I/O ADDRESSES FOR THE W5100
|
|
||||||
WMODE = $C094
|
|
||||||
WADRH = $C095
|
|
||||||
WADRL = $C096
|
|
||||||
WDATA = $C097
|
|
||||||
|
|
||||||
; W5100 LOCATIONS
|
; W5100 LOCATIONS
|
||||||
MACADDR = $0009 ; MAC ADDRESS
|
MACADDR = $0009 ; MAC ADDRESS
|
||||||
SRCIP = $000F ; SOURCE IP ADDRESS
|
SRCIP = $000F ; SOURCE IP ADDRESS
|
||||||
@@ -118,12 +131,6 @@ GETSTARTADR = $0C ; 2 BYTES FOR PHYSICAL ADDR
|
|||||||
; done starting up
|
; done starting up
|
||||||
.segment "HGR"
|
.segment "HGR"
|
||||||
|
|
||||||
; TODO: make these configurable
|
|
||||||
SRCADDR: .byte $C0,$A8,$01,147 ; 192.168.2.5 W5100 IP
|
|
||||||
FADDR: .byte $C0,$A8,$01,15 ; 192.168.2.1 FOREIGN IP
|
|
||||||
FPORT: .byte $4E,$20 ; 20000 FOREIGN PORT
|
|
||||||
MAC: .byte $00,$08,$DC,$01,$02,$03 ; W5100 MAC ADDRESS
|
|
||||||
|
|
||||||
; RESET AND CONFIGURE W5100
|
; RESET AND CONFIGURE W5100
|
||||||
bootstrap:
|
bootstrap:
|
||||||
LDA #6 ; 5 RETRIES TO GET CONNECTION
|
LDA #6 ; 5 RETRIES TO GET CONNECTION
|
||||||
|
Reference in New Issue
Block a user