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.009s
<1234567…34>
  • 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
  • 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…

    This is what I've compiled so far:

    [quote]Resources
    =========

    * Make all caps
    ---------------

    You can turn CAPS LOCK on or off using a simple poke to 23658:

    POKE 23658,8: REM CAPS ON
    ...
    na_th_an na_th_an April 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
  • 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
  • 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. …

    ... could help!

    10 DEF FN A(A$)=VAL A$(TO ... 4)

    20 PRINT FN A(STR$ A + STR$ B ...
    Dr BEEP Dr BEEP October 2005 Sinclair Basic
<1234567…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
copying 1.8K 2.1K

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…
  • 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…
  • New Forums at 'Def Guide to ZZAP!64' siteI know that there are some C64 fans and ex-readers of 'ZZAP!64' here, so just to let you know that Iain has added a new style message board to his si…
  • Copying Spectrum tape games to +3 disksIs there an easy way of doing this? I know you can use a multiface 3, but I don't have one of these and they sell for silly money on eBay. I picked u…
  • Campaign for free to air High Def TV on FreeviewThe government are on the verge of selling the analogue tv bandwidth ( if thats what its called ? ) to mobile phone companies, but the decision hasn'…

Related Searches

  • modulo function def fn
  • fuse def fn keyboard
  • def fn usr
  • def fn
  • def fn within a function
  • def fn d
  • 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

Copyright © 2024 World of Spectrum