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.001s
<1234567…34>
  • New SpecBAS available - Procedures and Functions.Go here: [url]http://www.zxspectrum4.net/forum/viewtopic.php?f=6&t=17[/url] And get the latest if you're interested. I've added procedures and func…

    Go here:

    [url]http://www.zxspectrum4.net/forum/viewtopic.php?f=6&t=17[/url]

    And get the latest if you're interested. I've added procedures and functions (DEF PROC and speccy-style DEF FN).

    D.
    Dunny Dunny December 2010 Sinclair Miscellaneous
  • Recursive 4-way floodfillHi guys) Shortly, I wanna find out whether there's a way to some object. Perhaps some of you have already encountered such an issue which is relativ…

    Hi guys)

    Shortly, I wanna find out whether there's a way to some object. Perhaps some of you have already encountered such an issue which is relatively easily solved in pseudocode:[CODE]Procedure Fill(const x,y:byte);
    begin
    if ...
    NRA NRA January 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... v/256):
    LET udg=FN p(23675)
    20 LET ... 14,0,FN l(df),FN h(df),FN l(dl),FN h(dl ...
    40 POKE defadd,FN l(udg): POKE defadd+1 ...
    60 POKE defadd,FN l(udg): POKE defadd+1 ... searches the DEFADD area (where FN variables are defined) before ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • SpecBAS 0.646 now available.Yay! Here's another round of bugfixes and additions to the Program. Not so much of the extract coding features, but more back-to-basics this time: […

    ... a mark with CTRL-SHIFT-Fn (F1 - F10), and then jump ... to that mark with CTRl-Fn.
    RENUMBER command. Renumbers either ...
    Dunny Dunny May 2011 Sinclair Miscellaneous
  • CrusoePlease add the following "known errors" description for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0002872"]Crusoe[/URL]: [QUOTE]Bu…

    ... stack overflow, caused by indirect recursive sub-routine calls, which would ...
    Einar Saukas Einar Saukas June 2011 Infoseek database
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... they both work, the DEF FN wasn't totally satisfying, ... shortage of them) :); the DEF FN definition is shown below. (I ... /> PRINT FN b$(FN h(12345),10,2,8);FN b$(FN l(12345 ... :
    [code]
    PRINT FN b$(00110000,2,10,8 ... n,a,b,l)=FN b$(VAL FN b$(n,a,10 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • saving part of a BASIC programHere's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to …

    ... DEF FN b(h$)=16*FN n(h$(1))+FN n(h ... $(2)):
    DEF FN ... g(v)=v-FN ... 9991 LET prog=FN p(23635): LET vars=FN p(23627):< ... LET l$=CHR$ FN g(l)+CHR$ FN h(l):
    LET l2=FN p(a0+2): LET a0 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Find-Fill-Copy functions for BASICThere's not much going on here, so here's three m/code routines to provide some data manipulation functions which are otherwise slow to do from BASIC…

    ... rename as 'b']
    . eg. FN f("z$()","b",find) -or ... - FN f("z()","",find)
    * ... with value 'b'
    . eg. FN f("z$()","wxyz",fill) -or ... 'b' (may overlap)
    . eg. FN c(22528,22529,127,CHR ... ...,pn],r1" or "DEF FN f(p1[,p2...,pn])=USR ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • storing machine code in BASICA couple of years ago I posted a routine for storing machine code between PROG & VARS, based on an idea in Toni Baker's "Mastering Machine Code". Thi…

    ... ",va)+FN d$("B",FN g(ov))+FN d$("C",FN h(ov))+FN d ... )+FN d$("B",FN g(nv))+FN d$("C",FN h(nv))+FN d$("D",FN ... g(n))+FN ... d$("E",FN ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • more on storing mazesPrompted by Wookiee's escapades, I've been pondering on how to use DATA statements directly for displaying background graphics, thus avoiding the dup…

    ... DEF FN g(v)=v-256*FN h(v): DEF FN h(v ... 256)
    11 LET udg=FN p(23675): LET defadd=23563 ... m: READ n$: LET datend=FN p(datadd):
    LET m ... br />
    45 POKE defadd,FN g(udg): POKE defadd+1 ... 1: READ n$: LET datend=FN p(datadd)
    71 IF ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Memory move routine?Hi Folks, I have been searching for the thread that covers the memory move routine that uses a$=b$ via DEF FN. I thought it was written by Battle B…

    ... uses a$=b$ via DEF FN. I thought it was written ...
    Paddy Coleman Paddy Coleman February 2012 Sinclair Basic
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…

    ... taken off again.
    * DEF FN m(s$)=USR mc: LET ... bc=FN m(s$): whereby mc can ... details from within the DEF FN statement using the DEFADD pointer ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Screen2StringFurther to writing that BASIC one-liner to redirect CAT to a string I thought that I'd do a general redirection routine for anything which normally p…

    ... essentially treated as a DEF FN parameter) it can only ...
    [code]
    2 DEF FN p(a)=PEEK a+256 ... ",CODE "$",14,0,FN g(sa),FN h(sa),0,0 ... are redirected)
    DATA FN g(sa),FN h(sa):
    ... /> POKE 23563,FN g(sd): POKE 23564,FN h(sd): RETURN ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • enhanced GOSUB/GOTO (in BASIC)Further to my previous post under "BREAK from GOSUB" here's the two ideas mentioned there put together. Note that to keep it quick it expects the DEF…

    ... /> DEF FN c()=FN p(23621): DEF FN p(a)= ... [code]
    GO SUB FN r(subroutine_line,number_of_levels,0)
    ...0 LET break=FN p(prog+19): REM break ... ,FN g(FN c()+1): POKE gs+1,FN h(FN ... ----------
    9980 LET gln=FN p(prog+19): LET gst ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • number padding functionI wrote a number padding function in BASIC a while ago, but when I came to want it again I couldn't find it, so I've done this enhanced [url=http://w…

    ... rightpad
    ... examples ...
    FN p$(1.2,0,0 ... ,1) := "1.0"
    FN p$(1,-5,3) := " 1 ... .000"
    FN p$(1,-5,0) := " 1 ... 3) := "-00.120"
    FN p$(0,0,0) := ""
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • A "bit" of a curiosityHaving to use a bit of m/code to do the AND in that key check function, I was prompted to revisit the "AND,XOR,OR,...for BASIC" topic and came up wit…

    ... RETURN

    llll DEF FN b(a,b,c,d ... /256)
    ....
    GO SUB FN b(val1,val2,opcode,bits ...
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • SpecBAS 0.747 Now available!Hiya folks - it's update time again! SpecBAS has had a load of new fixes, as well as some new additions! Firstly, as you all wanted it, SpecBAS can…

    ... to crash
    PROCedure and FN names can now be any ...
    Dunny Dunny July 2012 Sinclair Miscellaneous
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... function of the form:
    "FN a$(a$,a[,b...,z ... expression. This works but the FN side of it is too ... lose the flexibility of the FN method, which can be used ... is the flexibility of the FN method with the speed of ...
    Battle Bunny Battle Bunny September 2012 Development
  • saving time populating large arraysI use a variation on this idea for storing machine code at the end of programs without interfering with LIST, then it occurred to me that it would al…

    ...
    12 LET vars=FN p(23627)-alen:
    POKE ... 23670,FN g(vars): POKE 23671,FN h(vars):
    FN p(23627)+alen:
    ... POKE 23670,FN g(vars): POKE 23671,FN h(vars):
    9999 LET vars=FN p(23627): LET check=1813 ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • A 128 Routine to Put Tokens in StringsI was writing a DEF FN on the +128k and decided that I'd had enough of not being able to put function tokens in strings without a great palaver and s…

    I was writing a DEF FN on the +128k and decided ... a quoted string. So for FN insert UDG F, for AND ... ...
    [code]
    9990 DATA "fn",168,"and",198,"len",177 ... ";l: RESTORE l: LET a=FN p(23639):
    LET la ... b>=ae):
    DEF FN p(a)=PEEK a+256 ...
    Battle Bunny Battle Bunny December 2012 Sinclair Basic
  • Compiling Lisp to Z80.I am doing some thought experiments on this. Here is an example of a Lisp program. It adds two numbers together. [code] (define (add x y) (if (= …

    ... is then iterative rather than recursive, which saves constantly pushing and ...
    wilsonsamm wilsonsamm January 2013 Chit chat
  • Andromeda Inc.Since there was a thread in the games section about Tarantula, I made a search and found the game [URL="http://www.worldofspectrum.org/infoseekid.cgi…

    ... :

    [code]
    DEF FN P$(Y)=CHR$ 0+CHR ... :

    [code]
    DEF FN P$(Y)=CHR$ 19+CHR ...
    Metalbrain Metalbrain January 2013 Infoseek database
  • ZX Spectrum Style Encrypter/Decrypter[code] H%kioyl^%%kioyl^(y+yllq1n^1inot[fyinot[fyllq1n^12]yuai]yuai]yuai~kioyl13-im9~inot[f)^llyllq1n^1+yllq1n^1inot[fHkioyl13-13()$*%kioyl^+yllq1n^1…

    ... ]yuai]yuai~W+yllq1n^1inot[fN+yllq1n^1inot[finot[finot[finot ... ~inot[f44(&**)+yllq1n^1inot[fN%kioyl^%%kioyl^(vinot[fyllq1n^12 ...
    Sadako Sadako March 2013 Announcements
  • Raising to the powerA curiosity of ZX Basic I found yesterday is that you can't do this: [code] 10 LET x=-3 20 LET y=x^2 [/code] While you can for example do LET y=-3^…

    ... a function defined by DEF FN)?
    Winston Winston April 2013 Sinclair Basic
  • handy method for passing m/c parametersI knew that a single number or string parameter could be passed to a m/c routine with either: [b]LET a=b+USR address[/b] puts b on the calculator st…

    ... quicker than using a DEF/FN, as there's no need ... parameters, for which a DEF FN would be better.
    Battle Bunny Battle Bunny May 2013 Sinclair Basic
  • TXT2EMU enhancementI was looking at the encodings supported by BAS2TAP for entering graphics, print controls, etc. as plain text. Basically, there's only one needed, be…

    ... example, in:
    [code]DEF FN j$(s,l)=CHR$ PEEK ... (s)+VAL$ (("FN j$("+STR$ (s+1)+","+STR ... ))[/code]
    replace the quoted FN with {A8} thus:
    [code ... ]DEF FN j$(s,l)=CHR$ PEEK ...
    Battle Bunny Battle Bunny May 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…

    ... 33: RESTORE 20: LET fnq=FN p(23639)+8:
    ... LET qlo=FN l(fnq): LET qhi=FN h(fnq): LET ... /> GO TO 40: REM find FN q() from DATADD
    < ... b$,l)
    42 REM FN q() PARAMETERS
    a$= ... /> LIST 45: GO SUB FN q(s$,"16384",2048):
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • SE Basic IV 4.1 Buffy previewSE Basic IV 4.0 Anya was released back in December 2012. You can read about it here: [url]http://cheveron.github.io/sebasic4/[/url] But here's some …

    ... not tokenizing things when entering recursive functions. You can also use ...
    chev chev July 2013 Sinclair Basic
  • IZX: a new standard format and driver for ZX-Spectrum icons[B]IZX[/B] is a very compact and efficient standard format to create icons for the ZX-Spectrum. You can download it from here: [LIST] [*][URL="http:…

    ... icons"CODE
    20 DEF FN z(r,c,i)=USR ... this:

    [CODE]FLASH FN z(5, 8, 16)[/CODE ...
    Einar Saukas Einar Saukas July 2013 Brand new software
<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
recursive 215 281
fn 866 4.4K

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

Related Searches

  • recursive
  • modulo function def fn
  • fuse def fn keyboard
  • def fn usr
  • fn defadd
  • def fn
  • def fn within a function
  • fn h
  • upper case fn
  • def fn d
  • bin def fn
  • def fn recursive bug
  • def fn bug
  • recursive function
  • binary recursive function
  • recursive backtrack
  • def fn recursive bin
  • fn usr
  • dr beep s recursive def fn
  • recursive def fn

Copyright © 2024 World of Spectrum