World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.007s
<1…567891011…34>
  • Compiling BasicI'm not good in compiling sinclair basic because i was 15 when i got my first spectrum, and it was the first computer i saw. I wasn't aware of compil…

    It might even be done with a recursive DEF FN. I need to think of the code however.

    Your program would be then

    instead LET A=VAL A$
    it will be LET A=FN V(A$)

    and a DEF FN V(A$)= .... in the begin of the prog.
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • Compiling BasicI'm not good in compiling sinclair basic because i was 15 when i got my first spectrum, and it was the first computer i saw. I wasn't aware of compil…

    ... be done with a recursive DEF FN. I need to think of ... (A$)

    and a DEF FN V(A$)= .... in the begin ...
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    ... :

    10 DEF FN f(n)=VAL "1n*FN f(n-1 ...

    10 DEF FN s$(n)=VAL$ """""+"" ""+FN $(n-1)"( TO 2 ...
    Philip Kendall Philip Kendall July 2003 Sinclair Basic
  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum. There was a command in speccy basic that would let you scroll a string variab…

    ... up from scratch by a DEF FN statement? Chaosmongers' solutions ... this:

    10 DEF FN r$(a$)=a$(2 TO ... a$(1)
    20 DEF FN l$(a$)=a$(LEN a ... br />
    Hence, FN r$("ABCDEFG") returns BCDEFGA.
    FN r$ or FN l$ repeatedly, printing ...
    The Mighty Dopethrone The Mighty Dopethrone December 2003 Games
  • VariablesVariable Help: Can BASIC discriminate between odd and even variables? If so, what simple syntax can express it?

    Well there is a function :)

    10 DEF FN p$(n) = ("ODD" AND
    n/2INT (n/2))+("EVEN" AND n/2=
    INT (n/2))
    20 PRINT FN p$(3)
    30 PRINT FN p$(1000)
    Geoff Geoff June 2004 Sinclair Basic
  • VariablesVariable Help: Can BASIC discriminate between odd and even variables? If so, what simple syntax can express it?

    ... more versatile.

    10 DEF FN m(x,y) = x - INT ... />
    Example 1
    PRINT FN m (5, 1.4)

    Example 2
    PRINT FN m (5, -1.4)

    Example 3
    PRINT FN m (-5, 1.4)

    Example 4
    PRINT FN m (-5, -1.4)
    Geoff Geoff June 2004 Sinclair Basic
  • QuickBASICQuickBASIC Emulation: Is it possible to declare and pass global variables throughout a program along with confine a local variable to just a module-…

    ... .

    I used the DEF FN routine for it as stated ...
    Dr BEEP Dr BEEP June 2004 Sinclair Basic
  • 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…

    ... code]
    DEF FN B$(n)=STR$ INT (n/128)+STR$ INT (FN V ... STR$ INT (FN V(FN V(FN V(FN V(FN V(FN V(n,128 ... STR$ INT FN V(FN V(FN V(FN V(FN V(FN V(FN V(n ... /> Similarly:

    [code]
    DEF FN T$(n)=STR$ INT (n ... )+STR$ INT (FN V(FN V( monty.mole monty.mole November 2004 Sinclair Basic
  • 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…

    ... will yield:

    [code]DEF FN H$(n)=CHR$ (INT (n ... "optimised" version):

    [code]DEF FN D$(n)=CHR$ (INT n ... ]DEF FN H$(n)=FN D$(n/4096)+FN D$(FN V(n,4096)/256)+FN ... D$(FN V(FN V(n,4096),256)/16)+FN D$(FN V(FN V(FN ...
    monty.mole monty.mole November 2004 Sinclair Basic
  • 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…

    ... ;"9")[/code]:

    [code]DEF FN D(H$)=(CODE H$(1 ... faster calculation:

    [code]DEF FN H$(n)=CHR$ (INT (n ... 9)+48)+CHR$ (INT (FN V(FN V(n,4096),256)/16 ... gt;9)+48)+CHR$ ((FN V(FN V(FN V(n,4096),256 ... ),16))+7*(INT FN V(FN V(FN ...
    monty.mole monty.mole November 2004 Sinclair Basic
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... head, and I rarely use Def FN`s unless it`s a ...
    CKay CKay March 2005 Development
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... and y (inclusive).

    DEF FN r(x,y) = INT (RND ... use for ex:
    PRINT FN r(10, 100);

    Arjun Arjun April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... in a def fn as in the next example:
    Def fn a$(x ... *int(x/32))
    Print Fn a$(45);"..."
    That would ...
    zx_if1 zx_if1 April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... last time:

    10 DEF FN M(A,A$,Z,P ...

    20 LET X=FN M(X,INKEY$,32,"5 ... ","8")
    30 LET Y=FN M(Y,INKEY$,22,"6 ...
    Dr BEEP Dr BEEP April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    Oooh, that DEF FN stuff looks like it would be an ideal candidate for RC, no?
    Arjun Arjun April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    [quote]
    On 2005-04-13 13:14, Arjun wrote:
    Oooh, that DEF FN stuff looks like it would be an ideal candidate for RC, no?
    [/quote]
    Who you calling arsey???
    rich_chandler rich_chandler April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... you do a

    Def FN Tim=PEEK (23672)+256*PEEK ...
    CKay CKay April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... 01:49, CKay wrote:
    Def FN Tim=PEEK (23672)+256*PEEK ... like this:

    10 DEF FN p(x) = PEEK(x) + 256 ... (x+1)
    20 PRINT FN p(23672)

    Replace ...
    Arjun Arjun April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    [quote]
    On 2005-04-13 13:14, Arjun wrote:
    Oooh, that DEF FN stuff looks like it would be an ideal candidate for RC, no?
    [/quote]

    No, the call of INKEY$ is only done once!
    Dr BEEP Dr BEEP April 2005 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... 01:49, CKay wrote:
    Def FN Tim=PEEK (23672)+256*PEEK ... like this:

    10 DEF FN p(x) = PEEK(x) + 256 ... (x+1)
    20 PRINT FN p(23672)

    Replace ... , must admit, after hardly using Def FN`s ever they seem to ...
    CKay CKay April 2005 Sinclair Basic
  • Look At This Baby anyone got a lower numbered speccyI just missed out, but underwurlde is a seller so it will be on again, but i wont be able to afford it then. It looks like a grey keymat ?? Do you th…

    ...

    30 DEF FN t()=FN m(FN u(), FN u() ) : REM time, right ...
    Geoff Geoff June 2005 Sinclair Miscellaneous
<1…567891011…34>

Latest Posts

  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • i am currently listening to........
    mel the bell on 11:34AM
  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • Ways to preserve Speccy Tapes in the loft
    harriusherbartio on 10:58AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 10:47AM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 10:30AM
  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • Frankie's ZX Spectrum Digouts
    Zup on April 8
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 8
  • 1992 Spectrum Software
    harriusherbartio on April 7

HitBox

Word Docs Hits
def 11.7K 12.9K
fn 866 4.4K
usr 3.4K 6.2K

Related Threads

  • DEF FN DirectivesI am looking at using some machine code functions from the DK Graphics Pack. They are machine code but they are called via Basic with the function de…
  • Can you improve this recursive DEF FN?I came up with this function to scan strings for characters without needing to use FOR...NEXT and IF...THEN, but it seems rather long-winded. Can any…
  • BASin v.15 DEF FN bugThe bug would appear to be in "BASSupport.pas : Procedure ProcessDEFFN"; as it's not inserting the 6-byte variable place holder after each parameter …
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere.<br /> [code]<br /> 2 DEF FN t$(n,t,d)<br /> …
  • Fix for the DEF FN bug of zmakebasSome months ago I discovered a bug in zmakebas: it does not include the 5 bytes required after every parameter of a DEF FN.<br /> <br /> By the tim…
  • RANDOMIZE USR, PRINT USR etcHello just wondering why is it called RANDOMIZE UsR what does randomising have to do with it ? When calling machine code routine from adress x you ty…
  • BASIC Bug: DEF FN after REMHello all,<br /> Having mused the Spectrum ROM disassembly by Drs Logan ad O'Hara, I wondered about how good ZX BASIC was at locating the DEF FN whe…
  • Randomize USR xxxxxA weird topic:<br /> When I was a kid I use to mess around with the RANDOMIZE USR xxxxx, sad I know!!!<br /> For instance RANDOMIZE USR 51234 would g…
  • Run BASIC program by R. USR xxxxxGuys, please help. Suppose I have BASIC program in my Spectrum 48K starting with line 10. I'd like to start it by RANDOMIZE USR xxxxx. Which paramete…

Related Searches

  • modulo function def fn
  • fuse def fn keyboard
  • def fn
  • def fn within a function
  • def fn d
  • bin def fn
  • def fn recursive bug
  • def fn bug
  • def fn recursive bin
  • fn usr
  • def fn library
  • def fn v
  • def fn gosub fast
  • def fn battlebunny
  • def fn fast
  • def fn look for
  • spaghetti def fn
  • dr beep s recursive def fn
  • dr beep def fn
  • def fn trick

Copyright © 2024 World of Spectrum