mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-08-05 18:25:43 +00:00
webserver: add Makefile
This commit is contained in:
21
ethernet/Makefile
Normal file
21
ethernet/Makefile
Normal file
@@ -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
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user