2011-01-15 00:34:09 +00:00
|
|
|
.include "../inc/common.i"
|
|
|
|
.include "../inc/commonprint.i"
|
|
|
|
.include "../inc/net.i"
|
|
|
|
|
2011-01-19 06:20:25 +00:00
|
|
|
.import cfg_get_configuration_ptr
|
2011-01-15 00:34:09 +00:00
|
|
|
.import copymem
|
|
|
|
.importzp copy_src
|
|
|
|
.importzp copy_dest
|
2011-01-19 06:20:25 +00:00
|
|
|
.import exit_to_basic
|
|
|
|
|
2011-01-15 00:34:09 +00:00
|
|
|
|
|
|
|
.import __CODE_LOAD__
|
|
|
|
.import __CODE_SIZE__
|
2011-01-19 06:20:25 +00:00
|
|
|
.import __RODATA_SIZE__
|
2011-01-15 00:34:09 +00:00
|
|
|
.import __DATA_SIZE__
|
2011-01-19 06:20:25 +00:00
|
|
|
.import __IP65_DEFAULTS_SIZE__
|
2011-01-15 00:34:09 +00:00
|
|
|
.segment "EXEHDR" ;this is what gets put an the start of the file on the Apple 2
|
2011-01-19 06:20:25 +00:00
|
|
|
.addr __CODE_LOAD__-$03 ; Start address
|
|
|
|
.word __CODE_SIZE__+__RODATA_SIZE__+__DATA_SIZE__+__IP65_DEFAULTS_SIZE__+4 ; file size
|
2011-01-15 00:34:09 +00:00
|
|
|
jmp init
|
|
|
|
|
|
|
|
.code
|
|
|
|
|
|
|
|
init:
|
2011-01-19 06:20:25 +00:00
|
|
|
cld
|
2011-01-15 00:34:09 +00:00
|
|
|
jsr print_cr
|
|
|
|
init_ip_via_dhcp
|
|
|
|
jsr print_ip_config
|
|
|
|
jsr print_cr
|
2011-01-19 06:20:25 +00:00
|
|
|
jmp exit_to_basic
|
|
|
|
|