emailler/ip65/download_c.s
Oliver Schmidt c47a89ce1a Split url.s into url.s and download.s.
url_parse() doesn't require TCP so it makes sense to allow a program using url_parse() to link successfully without TCP support.
2018-07-22 19:22:57 +02:00

33 lines
469 B
ArmAsm

.include "../inc/common.inc"
.export _url_download
.import url_download
.import url_download_buffer
.import url_download_buffer_length
.import resource_buffer
.import popax
_url_download:
stax url_download_buffer_length
jsr popax
stax url_download_buffer
jsr popax
jsr url_download
bcs error
sec
lda resource_buffer
sbc url_download_buffer
tay
lda resource_buffer+1
sbc url_download_buffer+1
tax
tya
rts
error:
ldx #$00
txa
rts