mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-10-05 02:56:12 +00:00
Fixed recently introduced addressing mode bugs.
This commit is contained in:
parent
a3f8f1d015
commit
ce9a6076ad
@ -49,7 +49,7 @@ hex_digit: .res 1
|
|||||||
http_parse_request:
|
http_parse_request:
|
||||||
stax string_ptr
|
stax string_ptr
|
||||||
|
|
||||||
ldax var_buf
|
ldax #var_buf
|
||||||
stax table_ptr
|
stax table_ptr
|
||||||
|
|
||||||
lda #1 ; start of method
|
lda #1 ; start of method
|
||||||
@ -186,7 +186,7 @@ put_byte:
|
|||||||
; if variable did not exist, carry flag will be set.
|
; if variable did not exist, carry flag will be set.
|
||||||
http_get_value:
|
http_get_value:
|
||||||
sta var_name
|
sta var_name
|
||||||
ldax var_buf
|
ldax #var_buf
|
||||||
stax string_ptr
|
stax string_ptr
|
||||||
ldy #0
|
ldy #0
|
||||||
|
|
||||||
|
10
ip65/httpd.s
10
ip65/httpd.s
@ -104,7 +104,7 @@ httpd_start:
|
|||||||
|
|
||||||
@listen:
|
@listen:
|
||||||
jsr tcp_close
|
jsr tcp_close
|
||||||
ldax io_buf
|
ldax #io_buf
|
||||||
stax tcp_buffer_ptr
|
stax tcp_buffer_ptr
|
||||||
ldax #http_callback
|
ldax #http_callback
|
||||||
stax tcp_callback
|
stax tcp_callback
|
||||||
@ -151,7 +151,7 @@ httpd_start:
|
|||||||
jmp @listen
|
jmp @listen
|
||||||
|
|
||||||
@got_eol:
|
@got_eol:
|
||||||
ldax io_buf
|
ldax #io_buf
|
||||||
jsr http_parse_request
|
jsr http_parse_request
|
||||||
jsr jump_to_callback ; call the handler to generate the response for this request.
|
jsr jump_to_callback ; call the handler to generate the response for this request.
|
||||||
; AX should now point at data to be sent
|
; AX should now point at data to be sent
|
||||||
@ -197,7 +197,7 @@ http_callback:
|
|||||||
|
|
||||||
; look for CR or LF in input
|
; look for CR or LF in input
|
||||||
sta found_eol
|
sta found_eol
|
||||||
ldax io_buf
|
ldax #io_buf
|
||||||
stax get_next_byte+1
|
stax get_next_byte+1
|
||||||
|
|
||||||
@look_for_eol:
|
@look_for_eol:
|
||||||
@ -215,7 +215,7 @@ http_callback:
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
reset_output_buffer:
|
reset_output_buffer:
|
||||||
ldax io_buf
|
ldax #io_buf
|
||||||
sta emit_a_ptr+1
|
sta emit_a_ptr+1
|
||||||
stx emit_a_ptr+2
|
stx emit_a_ptr+2
|
||||||
lda #0
|
lda #0
|
||||||
@ -310,7 +310,7 @@ send_response:
|
|||||||
send_buffer:
|
send_buffer:
|
||||||
ldax output_buffer_length
|
ldax output_buffer_length
|
||||||
stax tcp_send_data_len
|
stax tcp_send_data_len
|
||||||
ldax io_buf
|
ldax #io_buf
|
||||||
jsr tcp_send
|
jsr tcp_send
|
||||||
jmp reset_output_buffer
|
jmp reset_output_buffer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user