mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-08-28 12:29:35 +00:00
webserver: add Makefile
This commit is contained in:
parent
9e2239d871
commit
89f9e15ab5
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user