git-svn-id: http://svn.code.sf.net/p/netboot65/code@140 93682198-c243-4bdb-bd91-e943c89aac3b

This commit is contained in:
jonnosan 2009-06-21 11:02:55 +00:00
parent 6f8995d235
commit ce183ea301
4 changed files with 18 additions and 18 deletions

View File

@ -6,6 +6,7 @@ MEMORY {
DEFAULTS: start = $8018, size = $1E, file = %O;
ROM: start = $8036, size = $3FC8, define = yes, file = %O;
RAM: start = $C010, size = $0fE0, define = yes;
RAM2: start = $0334, size = $CB, define = yes; #extra scratch area - Tape I/O buffer
}
@ -15,6 +16,7 @@ SEGMENTS {
CODE: load = ROM, type = ro;
RODATA: load = ROM, run=ROM, type = ro;
DATA: load = ROM, run = RAM, type = rw, define = yes;
BSS: load = RAM, type = bss;
BSS: load = RAM, type = bss;
TCP_VARS: load = RAM2, type = bss;
IP65ZP: load = IP65ZP, type = zp;
}

View File

@ -14,6 +14,21 @@
.export tcp_remove_listener
.export tcp_send
.segment "TCP_VARS"
tcp_cxn_state =0
tcp_cxn_local_port =1
tcp_cxn_remote_port =3
tcp_cxn_remote_ip =5
tcp_cxn_local_seq =9
tcp_cxn_remote_seq =13
tcp_cxn_entry_size =17
tcp_max_connections =10
tcp_connections:
.res tcp_max_connections*tcp_cxn_entry_size
.code
tcp_add_listener:
tcp_remove_listener:
tcp_send:
@ -25,4 +40,3 @@ tcp_init:
rts
.res 2000 ;fixme

View File

@ -1,16 +0,0 @@
;stub functions that allows us to build a UDP only stack by linking in dummy tcp functions
.export tcp_init
.export tcp_process
.export tcp_add_listener
.export tcp_remove_listener
.export tcp_send
tcp_add_listener:
tcp_remove_listener:
tcp_send:
tcp_process:
sec
tcp_init:
rts

Binary file not shown.