From 7263bbacdf86b5d498bf26e3b0ea2af342733f02 Mon Sep 17 00:00:00 2001 From: jonnosan Date: Sat, 18 Jul 2009 14:14:55 +0000 Subject: [PATCH] git-svn-id: http://svn.code.sf.net/p/netboot65/code@162 93682198-c243-4bdb-bd91-e943c89aac3b --- client/examples/httpd.asm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/examples/httpd.asm b/client/examples/httpd.asm index c0d41c9..8ede624 100644 --- a/client/examples/httpd.asm +++ b/client/examples/httpd.asm @@ -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