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

    ... ?

    Using:

    DEF FN w(w$,o$,c ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…

    ... ) I remembered Dr Beep's recursive DEF FN version, but in between ... thought I'd write a DEF FN to do it ... and ... with:
    [code]
    100 DEF FN b$(n,s$)
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • A Miscellany of Dangerous TipsHere's a selection of ideas for using some of the more obscure system variables which I've found handy on occasion. They can be very convenient if us…

    ... be automatically created within the DEF FN statement itself by the ... and used independently of any DEF FN statement, which allows quick ... the size & location of DEF FN strings (which are treated ... can be done as a recursive DEF FN.

    Finally, ...
    Battle Bunny Battle Bunny October 2012 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…

    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…

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

    and a DEF FN V(A$)= .... in the ...
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    Here's a recursive DEF FN INSTR one-liner, cunningly ... work. I thought that maybe "DEF FN c()=c+LEN o ... .

    [code]
    4 DEF FN i(w$,o$,c ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Any ideas on how to solve this equation?If I have three numbers 10:A:B where A & B are equal +ve integers <10, what formula could I apply to pairs of numbers (A,10) or (10,B) such that the …

    ... try and develop a single recursive DEF FN which could do the ... padding.

    [code]
    DEF FN b(n,f,t ... " AND NOT n))

    DEF FN n(n,f,t ... bad, really. It uses two DEF FNs rather than one but ...
    Battle Bunny Battle Bunny September 2011 Development
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    LOL - thanks Crisis but I will stick with good old BASin. It delivers everything I need and I can live without recursive DEF FN. ;)

    Paddy
    Paddy Coleman Paddy Coleman October 2011 Sinclair Basic
  • those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…

    ... blank.
    [code]
    100 DEF FN b$(n,b$)
    What I need is a recursive DEF FN visualisation utility, which can ... easier to fix a broken DEF FN.
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…

    ... /> What I need is a recursive DEF FN visualisation utility, which can ... easier to fix a broken DEF FN.[/QUOTE]
    Wouldn't ... and generate an eye-bleeding DEF FN from it.
    JamesW JamesW March 2012 Sinclair Basic
  • those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…

    ... a loop, then stick the DEF FN in the middle, replace ... the "DEF FN...=" with PRINT, remove any ... should be handy for debugging recursive DEF FNs.
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere. [code] 2 DEF FN t$(n,t,d) =STR$ INT (n/t)…

    ... />
    To PS.
    The recursive DEF FN to format the time ... only way to stop a recursive string function.

    Taking ... , so Andrew's original non-recursive DEF FN was written assuming that ...
    Battle Bunny Battle Bunny August 2013 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... forgot to mention is that recursive DEF FNs are generally, often ... slower than the equivalent expanded DEF FN, and always use more ... always possible to expand a recursive DEF FN (eg. if the ... which describes how to calculate DEF FN memory usage. There' ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... in strings (eg. in a recursive DEF FN), use TXT2Emu's "{..}" codes ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • User defined function in Sinclair BASICI'm looking to create a user defined function in Sinclair BASIC to add up numbers being input. This is the program without a user defined function be…

    ... . However the function can be recursive and this leads to much ... in rather amazing one-line recursive DEF FNs.

    Unfortunately I ... had a think.

    def fn s(a$)=(a$"" AND ...
    Alcoholics Anonymous Alcoholics Anonymous February 2017 BASIC
  • User defined function in Sinclair BASICI'm looking to create a user defined function in Sinclair BASIC to add up numbers being input. This is the program without a user defined function be…

    Recursive DEF FNs can be pretty tricky. ...
    Battle Bunny Battle Bunny February 2017 BASIC
  • Go to, gosub or something different?I'm going to write an arcade game in basic. May compile it. In both basic and compiled basic would a goto or gosub be faster? Also if I stored …

    ... code, as long as a DEF FN only references its own ... for its parameters within its DEF FN extent which is always ... searched first; but a DEF FN is restricted in the ... to a GO SUB routine. Recursive DEF FNs use much more memory ...
    Battle Bunny Battle Bunny August 2017 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…

    ... BASIC would be tortuously slow. Recursive functions are possible, but ... i])
    [code]
    DEF FN C$(n)=CHR$ INT ... b]()
    [code]
    DEF FN F()=65536-USR 7962 ... i])
    [code]
    DEF FN H$(n)=CHR$ (INT ... i])
    [code]
    DEF FN L$(l$)=CHR$ (CODE ...
    chev chev November 2004 Sinclair Basic
  • Recursive functionsA while ago Phil demonstrated a nice example of recursiveness in a DEF FN function. Sadly it doesn't appear to be online anymore and I have difficult…

    A while ago Phil demonstrated a nice example of recursiveness in a DEF FN function. Sadly it doesn't appear to be online anymore and I have difficulties finding it out myself: does anyone have a good example? Thx.
    Paul van der Laan Paul van der Laan November 2006 Sinclair Basic
  • 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'…

    ... to watch BBC in hi def, The link is for a ...
    swordheart swordheart February 2007 Chit chat
  • Recursive acronymsBrowsing through Wikipedia (as one does, y'know -- it's so full of itself and What Wikipedia Is Not, strange that it never mentions the three main th…

    ... %29]VISA[/url] is a recursive acronym!  (In the interests of ...
    robert@fm robert@fm April 2007 Chit chat
  • 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…

    ... the function defined such as DEF FN g(x, y, p ...
    carlinski carlinski December 2007 Development
  • def chris's scary halloween dnb mixyes unfortunately it's time for another mix for the witching season from me... [IMG]http://i44.tinypic.com/25aoi87.png[/IMG] [url=http://soundcloud…

    ... /> [url=http://soundcloud.com/user2316397/def-chris-halloween-dnb-mix/download ... [url=http://soundcloud.com/user2316397/def-chris-halloween-dnb-mix]stream ...
    def chris def chris October 2011 Chit chat
  • stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…

    ... it to work?

    DEF FN j$(s,l)=CHR ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • 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 …

    ... after each parameter in the DEF FN definition. There's code ...
    Battle Bunny Battle Bunny April 2012 Emulators
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere. [code] 2 DEF FN t$(n,t,d) =STR$ INT (n/t)…

    ... nowhere.
    [code]
    2 DEF FN t$(n,t,d ...
    Battle Bunny Battle Bunny August 2013 Sinclair Basic
<1234567…34>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    Your Spec-chum on 2:19PM
  • 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

HitBox

Word Docs Hits
recursive 215 281
def 11.7K 12.9K

Related Threads

  • 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…
  • 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…
  • Recursive functionsA while ago Phil demonstrated a nice example of recursiveness in a DEF FN function. Sadly it doesn't appear to be online anymore and I have difficult…
  • 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'…
  • Recursive acronymsBrowsing through Wikipedia (as one does, y'know -- it's so full of itself and What Wikipedia Is Not, strange that it never mentions the three main th…
  • 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…
  • Happy birthday def chris!!Merry birthday... get s***faced!! :smile:
  • Recursive 4-way floodfillHi guys)<br /> <br /> Shortly, I wanna find out whether there's a way to some object. Perhaps some of you have already encountered such an issue whic…
  • def chris's scary halloween dnb mixyes unfortunately it's time for another mix for the witching season from me...<br /> <br /> [IMG]http://i44.tinypic.com/25aoi87.png[/IMG]<br /> <br /…

Related Searches

  • time def
  • recursive
  • modulo function def fn
  • fuse def fn keyboard
  • def fn usr
  • def fn
  • def fn within a function
  • def fn d
  • recursive fn
  • bin def fn
  • def fn bug
  • recursive function
  • binary recursive function
  • recursive backtrack
  • def fn recursive bin
  • def th kibrary
  • def fn library
  • dr beep s recursive def fn
  • recursive def fn
  • recursive def

Copyright © 2024 World of Spectrum