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.010s
<1…567891011…34>
  • Game OptimisationBelow is a section of code Im using for movement enermy display and collision detect. What happens is that you move the sight with ,.qa and space do…

    ... in Sinclair Basic:
    Define DEF FN in top, place GO SUB ... at the moment is the DEF FN part but apart from that ...
    Toxitalk Toxitalk May 2007 Sinclair Basic
  • Game OptimisationBelow is a section of code Im using for movement enermy display and collision detect. What happens is that you move the sight with ,.qa and space do…

    ... above. Same goes for the DEF FN function. The search is also ...
    Dr BEEP Dr BEEP May 2007 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. …

    ... using another computer :)

    DEF FN h$(x) = "0123456789ABCDEF"([B]1 ... i = 0 TO 255: PRINT FN h$(i) : NEXT i[/QUOTE ... out of range). Could the DEF FN be rehashed to recursively call ...
    BloodBaz BloodBaz June 2007 Sinclair Basic
  • The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …

    ... :

    [code]
    1 DEF FN r(c,d,p)=c ... >=-d)
    10 PLOT FN r(RND*255,255,PEEK ... 23672),FN r(RND*175,175,PEEK ...
    Dunny Dunny June 2007 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... always make our own subroutine, DEF FN, or machine code routine. But ...
    Digital Prawn Digital Prawn July 2007 Development
  • cant format answereHi all, I am writing a short basic program that will convert a frequency to a length. 10 print "Spectrum antenna length conversion." 20 let w = 468 …

    ... -bogglingly complicated series of nested DEF FN statements ...
    Battle Bunny Battle Bunny July 2007 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... expression with a "DEF FN".

    The expression FN v(o$) takes ... reason this is now a DEF FN is that it has to ... SCREEN$ value, and the same FN(v) function can now be ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... :

    [CODE]
    1 DEF FN v(o$)=2*(o$="r ... c=(m>0)*(c$=" ")*FN v(k$):
    FOR r ...
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ...

    [code]
    1 DEF FN v(o$)=2*(o$="r ... c=(m>0)*(c$=" ")*FN v(k$):
    FOR r ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... variable crosswind.

    Added DEF FN r() to read the keyboard ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... slow:

    [CODE]
    DEF FN r(x)=(IN x-32 ...
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... slow:

    [CODE]
    DEF FN r(x)=(IN x-32 ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... /> I changed the following:- replaced DEF FN r() with your suggested version ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... :

    [CODE]
    1 DEF FN r(x)=IN x191 AND ... IN x0)*FN r(32766):
    LET b ... =(f>a)*(FN r(57342)-FN r(64510)):
    LET ...
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... :

    [CODE]
    1 DEF FN z$(x)=CHR$ 22+CHR ... $(x)/4-8:
    DEF FN p$(x)=FN z$(x)+CHR$ 16 ... +CHR$ FN m(x)+CHR$ (FN m ... 7 TO 55:
    PRINT FN p$(f):
    NEXT f ... i=6):
    LET a=FN m(z+d):
    LET ... b=FN m(z+d+d):
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... br />
    [CODE]
    1 DEF FN z$(x)=CHR$ 22+CHR ... $(x)/4-8:
    DEF FN p$(x)=FN z$(x)+CHR$ 16 ... +CHR$ FN m(x)+CHR$ (FN m ... 18 TO 53:
    PRINT FN p$(z+31):
    NEXT ... i=6):
    LET a=FN m(z+d):
    LET ... b=FN m(z+d+d):
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... br />
    [CODE]
    1 DEF FN z$(x)=CHR$ 22+CHR ... $(x)/4-8:
    DEF FN p$(x)=FN z$(x)+CHR$ 16 ... +CHR$ FN m(x)+CHR$ (FN m ... 7 TO 55:
    PRINT FN p$(f):
    NEXT f ... i=6):
    LET a=FN m(z+d):
    LET ... b=FN m(z+d+d):
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... br />
    [CODE]
    1 DEF FN z$(x)=CHR$ 22+CHR ... $(x)/4-8:
    DEF FN p$(x)=FN z$(x)+CHR$ 16 ... +CHR$ FN m(x)+CHR$ (FN m ... 7 TO 62:
    PRINT FN p$(f):
    NEXT f ... i=6):
    LET a=FN m(z+d):
    LET ... b=FN m(z+d+d):
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... allow multiple key presses via DEF FN r(x), as used in ...
    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... :
    LET b=256:
    DEF FN w(x)=PEEK ABS x ... (x+1):
    LET e=FN w(g+15):
    LET ... /> LET z$="":
    LET k=FN w(-p-1):
    LET ... +4:
    LET p=q+FN w(p+2):
    LET ...
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... this:

    [CODE]
    DEF FN i(x)=(x
    Einar Saukas Einar Saukas September 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... places, you could use a DEF FN to position the cursor like ...
    Einar Saukas Einar Saukas September 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... places, you could use a DEF FN to position the cursor like ...
    Digital Prawn Digital Prawn September 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    [code]
    2 DEF FN w(a,s)=VAL ((a$( ... f,g*7-3;((STR$ FN w(f,g)+b$ AND ... /> in 3,1 ; FN W(1,1)*FN W(2,1)
    Dr BEEP Dr BEEP September 2007 Development
  • 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…

    ... a DEF FN.
    I defined the function something like:[CODE]DEF FN P ... it with:[CODE]LET A=FN P(2,30,"Boobs")[/CODE ... get the parameters of the DEF FN function are to look at ... variable which points to the DEF FN function in use.

    icabod icabod December 2007 Development
  • 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…

    ... , to the parameters of the DEF FN.
    So in order to ... you had a DEF FN of:
    [CODE]DEF FN P(A,B$)=usr ... gets called, and calling the FN from BASIC. Just look at ...
    icabod icabod December 2007 Development
  • 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…

    ... , and that was via a DEF FN.[/quote]

    Interesting... I ... be entirely doable as an FN.
    Winston Winston December 2007 Development
  • 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 nice thing about DEF FN + some USR call is that ...
    Winston Winston December 2007 Development
  • 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…

    I like the DEF FN method of calling USR functions. Always think it is worth having a distinct m/c entry point to go with it though.
    BloodBaz BloodBaz December 2007 Development
<1…567891011…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
recursive 215 281
bug 8.7K 11.1K

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…
  • 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 …
  • 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…
  • 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…
  • 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…
  • 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 /> …
  • A recollection of a Bug in a "good" game:the mystery of the bug and the game will be revealed later!Well what is the "big deal":- a bug in an old Spectrum game. So what!<br /> <br /> Well , I should explain: it was a good very popular game and I …
  • PocketClive bugHi...<br /> <br /> thought I would give all of you that downloaded PocketClive, the PocketPC spectrum emuator a small bug report! <br /> <br /> There…

Related Searches

  • 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
  • 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
  • recursive def fn

Copyright © 2024 World of Spectrum