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 898 results in 0.001s
<1…3456789…30>
  • 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…

    ... done with a recursive DEF FN. I need to think of ... /> it will be LET A=FN V(A$)

    and ... a DEF FN V(A$)= .... in the begin ...
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • Number 6 in the Village (text adventure) Please help!!!Does anyone have a solution to this text adventure. I've tried to escape by air and sea using the jammer but it hasn't worked. I've been playing it …

    ...
    The note is coded- FN SN VZSDQEZKK ZMC CHF.^{7 ...
    BadBeard BadBeard March 2003 Games
  • 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
  • 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 …

    Then it was used as a function to compute N times a string ???
    FN A("HELLO",3) = "HELLOHELLOHELLO"

    I just do it by heart, I need to find the article to see how it was used exactly.
    Dr BEEP Dr BEEP 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…

    ... from scratch by a DEF FN statement? Chaosmongers' solutions can ... br />
    10 DEF FN r$(a$)=a$(2 TO ... $(1)
    20 DEF FN l$(a$)=a$(LEN a ... 1))

    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?

    ... 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
  • This month's Retro Gamer - Cascade 50 honouredWell, after what seems like no end of Cascade Cassette 50 talk this month at WOS ("50 [I]great[/I] games on one [I]great[/I] cassette"), Retro Gamer …

    ... a Crash Smash!

    (FN - YES, i know C& ...
    ZX Beccy ZX Beccy August 2004 Sinclair Miscellaneous
  • 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…

    ... )/8)+STR$ INT (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(n,128 ... )+STR$ INT FN V(FN V(FN V(FN V(FN V(FN V(FN V(n ... )/3000)+":"+STR$ INT (FN V(FN V(FN V(FN V(n,1800…
    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…

    ... )/16)/10)+48)+CHR$ ((FN V(FN V(FN V(n,4096),256 ... ),16))+7*INT ((FN V(FN V(FN ... 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…

    ... br />
    [code]DEF FN D(H$)=(CODE H$(1 ... br />
    [code]DEF FN H$(n)=CHR$ (INT (n ... )+48)+CHR$ (INT (FN V(FN V(n,4096),256)/16 ... )+7*(INT (FN V(FN V(n,4096),256)/ ... ;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
  • Treachery does anyone have the game map for 'treachery' it was a type in of issue 29 of C&VG I believe it was written by Mike 'lords of Midnight' Singleton a…

    ... a second) accessed via a FN...
    robert@fm robert@fm March 2005 Games
  • 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…

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

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

    ... 16-23 in a def fn as in the next example ... :
    Def fn a$(x) = chr$22+chr ... *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. …

    ... 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
<1…3456789…30>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    dm_boozefreek on 4:45PM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 4:10PM
  • "Late Entries"
    harriusherbartio on 4:00PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11

HitBox

Word Docs Hits
fn 866 4.4K
defadd 102 200

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…
  • problem with DEFADD storageI have a function: DEF FN t(t$,m,t)=USR t<br /> which is called with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt)<br /> where, at the time…
  • 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…
  • fn bug in basin?Hi.<br /> I was just trying to make myself some functions in basin and when i tryed them, the progam stopped on call.<br /> So i've tryed this simple…
  • FN nesting error?While playing with FN functions that call assembly, I've found something weird. <br /> <br /> Check out this code:<br /> [code]10 DEF FN f(a,b)=a+b<b…
  • 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…
  • 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…

Related Searches

  • modulo function def fn
  • fuse def fn keyboard
  • def fn usr
  • def fn
  • def fn within a function
  • fn h
  • upper case fn
  • def fn d
  • recursive fn
  • bin def fn
  • def fn recursive bug
  • def fn bug
  • defadd
  • def fn recursive bin
  • fn usr
  • def fn library
  • def fn v
  • def fn gosub fast
  • def fn battlebunny
  • def fn fast

Copyright © 2024 World of Spectrum