mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-11-19 12:30:51 +00:00
6680772b04
The IP5 usage of ld65 segments and zeropage variables was made compatible with cc65 C programs already a while ago. This commit is the next logical step which is to introduce the actual C interface to IP65. IP65 for C programs shares the the ip65.lib / ip65_tcp.lib with IP65 for assembler programs. However the various libraries from the 'drivers' are not reused. Instead there's exactly one library for every target named ip65_<target>.lib. Those libraries contain only functions used by ip65.lib / ip65_tcp.lib. TODOs: - Introduce c64_timer.s and atr_timer.s. - Add a C interface to the rest of the IP65 functionality (especially TCP).
30 lines
387 B
ArmAsm
30 lines
387 B
ArmAsm
.include "../inc/common.i"
|
|
|
|
.export _ip65_init
|
|
.export _ip65_process
|
|
.export _ip65_random_word
|
|
.export _ip65_error
|
|
|
|
.import ip65_init
|
|
.import ip65_process
|
|
.import ip65_random_word
|
|
.import ip65_error
|
|
|
|
_ip65_init:
|
|
jsr ip65_init
|
|
ldx #$00
|
|
txa
|
|
rol
|
|
rts
|
|
|
|
_ip65_process:
|
|
jsr ip65_process
|
|
ldx #$00
|
|
txa
|
|
rol
|
|
rts
|
|
|
|
_ip65_random_word := ip65_random_word
|
|
|
|
_ip65_error := ip65_error
|