2009-03-28 09:59:53 +00:00
|
|
|
|
|
|
|
.include "../inc/nb65_constants.i"
|
|
|
|
.include "../inc/common.i"
|
2009-03-28 06:13:14 +00:00
|
|
|
|
|
|
|
.import ip65_init
|
|
|
|
.import dhcp_init
|
2009-03-28 09:59:53 +00:00
|
|
|
.import cs_driver_name
|
|
|
|
.import cfg_get_configuration_ptr
|
2009-03-28 06:13:14 +00:00
|
|
|
.export ip65_dispatcher
|
|
|
|
|
|
|
|
|
|
|
|
.code
|
|
|
|
|
|
|
|
ip65_dispatcher:
|
|
|
|
|
2009-03-28 09:59:53 +00:00
|
|
|
cpy #NB65_GET_API_VERSION
|
|
|
|
bne :+
|
|
|
|
ldax #NB65_API_VERSION
|
|
|
|
clc
|
|
|
|
rts
|
|
|
|
:
|
|
|
|
|
|
|
|
cpy #NB65_GET_DRIVER_NAME
|
|
|
|
bne :+
|
|
|
|
ldax #cs_driver_name
|
|
|
|
clc
|
|
|
|
rts
|
|
|
|
:
|
|
|
|
|
|
|
|
cpy #NB65_GET_IP_CONFIG_PTR
|
|
|
|
bne :+
|
|
|
|
jmp cfg_get_configuration_ptr
|
|
|
|
:
|
|
|
|
|
|
|
|
cpy #NB65_INIT_IP
|
2009-03-28 06:13:14 +00:00
|
|
|
bne :+
|
|
|
|
jmp ip65_init
|
|
|
|
:
|
|
|
|
|
2009-03-28 09:59:53 +00:00
|
|
|
cpy #NB65_INIT_DHCP
|
2009-03-28 06:13:14 +00:00
|
|
|
bne :+
|
|
|
|
jmp dhcp_init
|
|
|
|
:
|
|
|
|
|
|
|
|
;default function handler
|
|
|
|
lda #$ff ;function undefined
|
|
|
|
sec ;carry flag set = error
|
|
|
|
rts
|