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.019s
<1…6789101112…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…

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

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

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

    ... /> DPEEK (address)
    FN P (address)

    DEF FN P(A)=PEEK ...
    jp jp January 2008 Sinclair Basic
  • Why are we here? (At WoS)No, not a deep philosophical question about the nature of life, the universe and human existence. The thread &#8220;what does your partner think of …

    ... (except for recursive use of DEF FN, if I remember my [B ...
    ewgf ewgf March 2008 Sinclair Miscellaneous
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... I devised was:
    1 DEF FN r(c,d,p)=c ... >=-d)
    10 PLOT FN r(RND*255,255,PEEK ... 23672),FN r(RND*175,175,PEEK ... the completion time substantially. (The DEF FN version takes about 80 minutes ...
    Battle Bunny Battle Bunny March 2008 Sinclair Basic
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    Sofar I have made this rotation:

    [code]
    LET m=0:
    LET n=7:
    LET h=m*6*(n=1)+m+9:
    LET n$=a$:
    FOR g=0 TO 5:
    LET a$(h+g*n)=n$(h+(g*n+n)*(g
    Dr BEEP Dr BEEP March 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    [quote=Dr BEEP;257287]Sofar I have made this rotation:

    [code]
    LET m=0:
    LET n=7:
    ....
    LET h=m*6*(n=1)+m+9:
    LET n$=a$:
    FOR g=0 TO 5:
    LET a$(h+g*n)=n$(h+(g*n+n)*(g
    Dr BEEP Dr BEEP March 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... in #591 which has the DEF FN removed. I agree it is ...
    Digital Prawn Digital Prawn April 2008 Development
  • A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …

    ... to interpreted languages only (VAL$, DEF FN, READ, DATA, RESTORE...).

    boriel boriel April 2008 Development
<1…6789101112…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
v 16.8K 25.3K

Related Threads

  • 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 …
  • speccy v's comodore v's bbcThose old enough to remember the playground days when we each had our own little group speccy better than the comodore and the bbc users were all gee…
  • 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…
  • 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…
  • Frying a 48K ZX Spectrum (revision 4A) with 10 V instead of 5 VHello<br /> <br /> I got a used zx spectrum. When I opened it up, there was no 5 V positive voltage regulator at the 10 V power inlet. Instead what…
  • 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…
  • Quiz V - the revenge of D`n`COk, 50 quick fire questions.. some cryptic - you`ll have un unravel the clues to get the game name, while others are description of the game. <br /> …

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

Copyright © 2024 World of Spectrum