01-28-2014, 02:00 PM
boriel Wrote:Very good idea, Ardencrest! :!:
However, %open and the like are used to extend Sinclair BASIC.
A more simple Idea will be implement them as functions (and even use ASM). Something like:
I could implement these if you want, but don't own a spectranet.Code:10 DIM handle as Integer;
20 handle = SNetOpen("file", "r"): REM handle is the channel, like #4, but the routine returns its own
30 IF handle = -1 THEN GOTO 3000: END IF: REM Error if -1
35 SNetOneof(100): REM Don't know what it does
40 SNetInput(handle, a$): REM another way could be a$ = SNetRead(handle)
50 PRINT a$
60 GO TO 40
...
100 SNetClose(handle)
Do you know if there's an emulator which supports spectranet?
any update an adding the spectranet % to the compiler :wink:
Quote:temp.bor:1: illegal character '%'
I'm always on the chat or facebook.