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

This commit is contained in:
jonnosan 2009-07-18 14:14:55 +00:00
parent 76ae659e45
commit 7263bbacdf

View File

@ -120,20 +120,18 @@ listen_on_port_80
;http callback - will be executed whenever data arrives on the TCP connection
http_callback
ldaxi #nb65_param_buffer
nb65call #NB65_GET_INPUT_PACKET_INFO
nb65call #NB65_GET_INPUT_PACKET_INFO
lda nb65_param_buffer+NB65_PAYLOAD_LENGTH+1
cmp #$ff
bne .not_eof
lda #1
sta connection_closed
rts
.not_eof
.not_eof
ldax nb65_param_buffer+NB65_PAYLOAD_POINTER
stax temp_ptr
lda nb65_param_buffer+NB65_PAYLOAD_LENGTH
sta buffer_length
ldax nb65_param_buffer+NB65_PAYLOAD_LENGTH
stax buffer_length
rts
;look for NB65 signature at location pointed at by AX