mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-08-14 20:27:37 +00:00
Allow tcp_send_string to send strings > 255 chars.
This commit is contained in:
@@ -369,7 +369,7 @@ tcp_close:
|
|||||||
; inputs:
|
; inputs:
|
||||||
; tcp connection should already be opened
|
; tcp connection should already be opened
|
||||||
; AX: pointer to buffer - data up to (but not including)
|
; AX: pointer to buffer - data up to (but not including)
|
||||||
; the first nul byte will be sent. max of 255 bytes will be sent.
|
; the first nul byte will be sent.
|
||||||
; outputs:
|
; outputs:
|
||||||
; carry flag is set if an error occured, clear otherwise
|
; carry flag is set if an error occured, clear otherwise
|
||||||
tcp_send_string:
|
tcp_send_string:
|
||||||
@@ -388,6 +388,9 @@ tcp_send_string:
|
|||||||
inc tcp_send_data_len
|
inc tcp_send_data_len
|
||||||
iny
|
iny
|
||||||
bne @find_end_of_string
|
bne @find_end_of_string
|
||||||
|
inc tcp_send_data_len+1
|
||||||
|
inc ptr1+1
|
||||||
|
jmp @find_end_of_string
|
||||||
@done:
|
@done:
|
||||||
ldax tcp_send_data_ptr
|
ldax tcp_send_data_ptr
|
||||||
; now we can fall through into tcp_send
|
; now we can fall through into tcp_send
|
||||||
|
Reference in New Issue
Block a user