You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is my source of http client, As I can see it uses two bytes on ZP, but can be easily fixed to not do it.
we can probably get rid of binary block detection and INIT and RUN part to make it smaller. (lines 121-136 and 150-162)
Simple Get with result written to screen memory address
icl "http_client.asm"
org $2000
main
mva #METHOD_GET open_aux1
mwa #url connection_string_address
mwa $58 DCB_destStart ; savmsc
jsr request
jmp *
url
dta 'N:https://google.com/',0
data_end
run main
here is example how to use it with PUT and header setting:
icl "http_client.asm"
org $2000
main
mva #METHOD_PUT open_aux1
mwa #url connection_string_address
mwa #data DCB_srcStart
mwa #data_end-data DCB_srcLen
mwa $58 DCB_destStart
mwa #header headers
jsr request
jmp *
url
dta 'N:https://hookb.in/W1mq1p3D0GHYplzzpPL1',0
header
dta 'Content-Type: text/plain; charset=utf-8',0
dta 'Cache-Control: no-cache',0
dta 0
data
dta 'hello=world',0
data_end
run main
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://gitlab.com/bocianu/fujitalk-client/-/blob/main/http_client.asm
here is my source of http client, As I can see it uses two bytes on ZP, but can be easily fixed to not do it.
we can probably get rid of binary block detection and INIT and RUN part to make it smaller. (lines 121-136 and 150-162)
Simple Get with result written to screen memory address
here is example how to use it with PUT and header setting:
Beta Was this translation helpful? Give feedback.
All reactions