-
Your Favourite British comedyWhat is your favourite British Comedy? I've voted for [I]One Foot inthe Grave[/I], as I think it's the best comedy (from any country) ever, being not…
[quote=def chris;292424]^^ Fast Show. good shout. had it ... -
WoS Sinclair BASIC page updated[url]www.worldofspectrum.org/sinclairbasic[/url]
... because Brainfuck doesn't have def fn you'd be much better ... -
New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…
... as strings. Use BIN$ (n) [FN b$(n)] to convert a ... x$,y$)
[code]
DEF FN a$(x$,y$)=STR$ (VAL ... x$,y$)
[code]
DEF FN o$(x$,y$)=STR$ (VAL ... x$,y$)
[code]
DEF FN x$(x$,y$)=STR$ 1 ... NOT
FN n$(n$)
[code]
DEF FN n$(n$)= ... -
New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…
[quote=aowen;310390][code]
DEF FN r(x,y)=(USR 7766 ... .[/quote]
[code]
DEF FN r(x,y)=(USR 7766 ... -
New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…
... ]
BIN(string)
DEF FN B(b$)=VAL b$(1 ... />
BIN(string)
DEF FN B(b$)= VAL ("BIN "+B$) -
reading Hex[code]1 DIM a$(20,20) 2 DIM g$(16) 3 LET g$="\::\ \' \ '\ .\. \.:\:.\:'\':\''\..\: \ :\'.\.'" 4 BORDER 4 20 LET a$(1)="00000000000000000000" 21 LET …
... ]
Replace VAL(...) with FN n(...)
you can ... ()
[code]
10 DEF FN n(c$)=CODE c$-48 ... $
40 PRINT t$(i),FN n(t$(i))
50 ... -
faster bitwise operators?well, sinclair basic lacks bitwise operators and I searched "basic forum" with keyword "bitwise" and only 3 thread came up. So the forum also lacks b…
... /showthread.php?t=6093"]Using DEF FN to add functions to Sinclair ... -
Blake's 7I've got an idea for a Blake's 7 video game for the 128K Spectrum (Only problem is I can't code in neither machine code or Sinclair BASIC, so I will …
... inside a call to a DEF FN?[/QUOTE]
No idea ... -
Blake's 7I've got an idea for a Blake's 7 video game for the 128K Spectrum (Only problem is I can't code in neither machine code or Sinclair BASIC, so I will …
... inside a call to a DEF FN?[/quote]
Due to ... -
New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…
... ,string[/I])
[code]
DEF FN M(x$,y$)=(x$ AND ... -
New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…
... ,string[/I])
[code]
DEF FN M(x$,y$)=(x$ AND ... how about SHORTER(string, string) FN S, and LONGER(string,string ... ) FN L?
The definitive ... -
Very basicI found the wos site a few months ago when searching for solutions to my broken spectrum, that i had dug out of storage and was learning basic on. Si…
... 'll actually find out what DEF FN is for. -
More colours II (Was: Most popular new features?)The suggested 4xCLUT multi-colour solution never took off.
... br />
[code]
10 DEF FN c$(c)=CHR$ 18+CHR ... (c-INT (c/2)*2) : DEF FN c(r,g,b)=(g ... the equivalents are:
FN c$(0) = FLASH 0; BRIGHT ... 0
FN c$(1) = FLASH 0; BRIGHT ... 1
FN c$(2) = FLASH 1; BRIGHT ... -
Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…
... short of supporting "VAL" and "DEF FN" as these are very complex ... -
Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…
... like:
[code]
DEF FN w(x,y,a$)=USR ... />
[code]
LET n=FN w(0,0,a$+CHR ... -
Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…
... =aowen;407065]
[code]
DEF FN w(x,y,a$)=USR ... -
Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…
... there.[/quote]
A DEF FN has to have a fixed ... parameters, so you could have DEF FN w(a$, b$, c$)=1 ... all of those with FN so print FN w(a$,b$) would ... -
Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…
[QUOTE=aowen;407170]A DEF FN has to have a fixed ... parameters, so you could have DEF FN w(a$, b$, c$)=1 ... all of those with FN so print FN w(a$,b$) would ... -
Randomize usrHi, I've often wondered why/how they came up with RANDOMIZE USR <memory address> to invoke machine code couldn't they have used a better keyword (e…
... :
[code]
10 DEF FN a$(a)=""
20 CLEAR ... : REM RET
40 PRINT FN a$(USR 40000);
[/code ... -
The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…
Arjun, the upper$ and lower$ functions only return the first letter of the string capitalized. Something like this will do the whole word:
DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 AND CODE s$ -
The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…
... the whole word:
DEF FN u$(s$)=VAL$ "CHR$ ((CODE ... -
New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…
[QUOTE=aowen;56596]...
[b]LOWER$[/b]([i]string1[/i])
[code]
DEF FN L$(l$)=CHR$ (CODE l$)+(32 AND CODE l$>64 AND CODE l$96 AND CODE u$64 AND CODE l$96 AND CODE u$