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.031s
<1…78910111213…34>
  • While we're on the subject of BASIC Although my memory of the past still seems to be fairly reliable, memories relating to learning computer programming seem to have disappeared…

    ... the potential of commands like DEF FN (DEFine FunctioN) now it seems ...
    mik3d3nch mik3d3nch February 2019 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…

    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 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
  • 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
  • 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. …

    ... />
    How about those PowerFull DEF FN Statements?
    How far do ... go?

    fals: 10 DEF FN C$(z,y,x,item ...
    Dr BEEP Dr BEEP August 2005 Sinclair Basic
<1…78910111213…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
d 129K 175.1K

Related Threads

  • How to play 3-D MS games Blade Eagle and Maze Hunter in 2-D ?I looked at a few cheat sites; perhaps they don't consider it cheating to play 3-D Master System games in 2-D.<br /> <br /> How do I play these games…
  • 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…
  • RIP Dave Arneson, co-creator of D&D[url]http://news.bbc.co.uk/1/hi/entertainment/7994444.stm[/url]<br /> <br /> [quote][B]Role-playing games pioneer dies[/B]<br /> <br /> Dave Arneson,…
  • one tv show that you'd wish they'd re-shownot seen it for years, but I used to watch indelible evidence (it used to be on bbc2) years ago.. I thought it was really good, but alas it never got…
  • 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 …
  • Multiface One MF I and Plus D +D and Spectrum 48kHi,<br /> <br /> I have an 48k Speccy. And a Plus D Interface.<br /> <br /> Now I want to use it together with a Multiface One, <br /> but it seems I…
  • 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…

Related Searches

  • modulo function def fn
  • fuse def fn keyboard
  • def fn usr
  • def fn
  • def fn within a function
  • bin def fn
  • def fn recursive bug
  • def fn bug
  • def fn recursive bin
  • 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
  • def fn copying

Copyright © 2024 World of Spectrum