2013-12-27 13:57:56 +00:00
|
|
|
.import ip65_init
|
|
|
|
.import ip65_process
|
|
|
|
|
|
|
|
.import cfg_mac
|
|
|
|
.import cfg_ip
|
|
|
|
.import cfg_netmask
|
|
|
|
.import cfg_gateway
|
|
|
|
.import cfg_dns
|
|
|
|
.import cfg_tftp_server
|
|
|
|
|
|
|
|
.import dhcp_init
|
|
|
|
.import dhcp_server
|
2013-12-13 21:24:03 +00:00
|
|
|
|
2019-05-02 12:44:24 +00:00
|
|
|
.importzp eth_init_default
|
2015-07-08 13:51:59 +00:00
|
|
|
|
2013-12-27 13:57:56 +00:00
|
|
|
.macro init_ip_via_dhcp
|
2015-07-08 13:51:59 +00:00
|
|
|
.ifdef A2_SLOT_SCAN
|
|
|
|
lda #1
|
|
|
|
: pha
|
|
|
|
jsr ip65_init
|
|
|
|
pla
|
|
|
|
bcc :+
|
|
|
|
adc #0
|
|
|
|
cmp #8
|
|
|
|
bcc :-
|
|
|
|
:
|
|
|
|
.else
|
2019-05-02 12:44:24 +00:00
|
|
|
lda #eth_init_default
|
2013-12-13 21:24:03 +00:00
|
|
|
jsr ip65_init
|
2015-07-08 13:51:59 +00:00
|
|
|
.endif
|
2015-07-07 17:43:32 +00:00
|
|
|
php
|
|
|
|
print_driver_init
|
|
|
|
plp
|
2013-12-27 13:57:56 +00:00
|
|
|
bcc :+
|
2013-12-13 21:24:03 +00:00
|
|
|
print_failed
|
|
|
|
sec
|
|
|
|
jmp @end_macro
|
2013-12-27 13:57:56 +00:00
|
|
|
: print_ok
|
2013-12-13 21:24:03 +00:00
|
|
|
print_dhcp_init
|
|
|
|
jsr dhcp_init
|
2013-12-27 13:57:56 +00:00
|
|
|
bcc :+
|
|
|
|
print_failed
|
2013-12-13 21:24:03 +00:00
|
|
|
sec
|
|
|
|
jmp @end_macro
|
2013-12-27 13:57:56 +00:00
|
|
|
: print_ok
|
2013-12-13 21:24:03 +00:00
|
|
|
clc
|
|
|
|
@end_macro:
|
|
|
|
.endmacro
|
|
|
|
|
|
|
|
|
2013-12-27 13:57:56 +00:00
|
|
|
|
2018-02-23 15:36:05 +00:00
|
|
|
; -- LICENSE FOR net.inc --
|
2013-12-13 21:24:03 +00:00
|
|
|
; The contents of this file are subject to the Mozilla Public License
|
|
|
|
; Version 1.1 (the "License"); you may not use this file except in
|
|
|
|
; compliance with the License. You may obtain a copy of the License at
|
|
|
|
; http://www.mozilla.org/MPL/
|
2013-12-27 13:57:56 +00:00
|
|
|
;
|
2013-12-13 21:24:03 +00:00
|
|
|
; Software distributed under the License is distributed on an "AS IS"
|
|
|
|
; basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
|
|
; License for the specific language governing rights and limitations
|
|
|
|
; under the License.
|
2013-12-27 13:57:56 +00:00
|
|
|
;
|
2013-12-13 21:24:03 +00:00
|
|
|
; The Original Code is ip65.
|
2013-12-27 13:57:56 +00:00
|
|
|
;
|
2013-12-13 21:24:03 +00:00
|
|
|
; The Initial Developer of the Original Code is Jonno Downes,
|
|
|
|
; jonno@jamtronix.com.
|
|
|
|
; Portions created by the Initial Developer are Copyright (C) 2009
|
2013-12-27 13:57:56 +00:00
|
|
|
; Jonno Downes. All Rights Reserved.
|
2013-12-13 21:24:03 +00:00
|
|
|
; -- LICENSE END --
|