From 89f9e15ab546be49cdb911aa83e14dfbc57831d4 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 30 Nov 2016 21:33:33 -0500 Subject: [PATCH] webserver: add Makefile --- ethernet/Makefile | 21 +++++++++++++++++++++ ethernet/webserver.bas | 22 +++++++++++----------- 2 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 ethernet/Makefile diff --git a/ethernet/Makefile b/ethernet/Makefile new file mode 100644 index 00000000..d99b624b --- /dev/null +++ b/ethernet/Makefile @@ -0,0 +1,21 @@ +PCX2HGR = ../hgr-utils/pcx2hgr +DOS33 = ../dos33fs-utils/dos33 +TXT2BAS = ../asoft_basic-utils/tokenize_asoft +SHAPETABLE = ../hgr-utils/shape_table + +all: ethernet.dsk + +SETUP.BAS: setup.bas + $(TXT2BAS) < setup.bas > SETUP.BAS + +WEBSERVER.BAS: webserver.bas + $(TXT2BAS) < webserver.bas > WEBSERVER.BAS + + +ethernet.dsk: SETUP.BAS \ + WEBSERVER.BAS + $(DOS33) -y ethernet.dsk SAVE A SETUP.BAS + $(DOS33) -y ethernet.dsk SAVE A WEBSERVER.BAS + +clean: + rm -f *~ *.BAS diff --git a/ethernet/webserver.bas b/ethernet/webserver.bas index e11114b0..9af5509e 100644 --- a/ethernet/webserver.bas +++ b/ethernet/webserver.bas @@ -25,15 +25,15 @@ 110 POKE 43367,3: REM 8kB RX buffer 115 POKE 43367,3: REM 8kB TX buffer -START: -/* sets TCP mode */ -Sn_MR = 0x01; -/* sets source port number */ -Sn_PORT = source_port; -/* sets OPEN command */ -Sn_CR = OPEN; -if (Sn_SR != SOCK_INIT) Sn_CR = CLOSE; goto START; -} -{ -If (Sn_SR == SOCK_ESTABLISHED) goto ESTABLISHED stage; +'START: +'/* sets TCP mode */ +'Sn_MR = 0x01; +'/* sets source port number */ +'Sn_PORT = source_port; +'/* sets OPEN command */ +'Sn_CR = OPEN; +'if (Sn_SR != SOCK_INIT) Sn_CR = CLOSE; goto START; +'} +'{ +'If (Sn_SR == SOCK_ESTABLISHED) goto ESTABLISHED stage;