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.008s
<1…567891011…34>
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... ]In BASIC:
    [CODE]
    DEF FN a(y,x)=16384+x ... like:

    [CODE]
    DEF FN a(y,x)=16384+x ...
    Metalbrain Metalbrain March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... like:

    [CODE]
    DEF FN a(y,x)=16384+x ... brackets:

    [code]
    DEF FN a(y,x)=16384+x ...
    Alcoholics Anonymous Alcoholics Anonymous March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    For a function that gives you each line too:

    [code]
    DEF FN a(y,x,l)=16128+x+32*y+1792*INT(y/8)+l*256
    [/code]

    Where l takes the values 1 to 8. Change the 16128 to 16384 if you want to use 0-7 for the line numbers.
    Matt_B Matt_B March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... like:

    [code]
    DEF FN a(y,x)=16384+x ...
    zx128k zx128k March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... do what you want, the DEF FNs described here are very ... question for the gurus: Are DEF FN faster or slower than executing ...
    48K 48K March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    [QUOTE=48K;176838]Are DEF FN faster or slower than executing ... program to find the DEF FN each time an FN is executed, but ... if you keep all your DEF FNs ... the time as opposed to DEF FN which renames the vars used ...
    Alcoholics Anonymous Alcoholics Anonymous March 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…

    ... in Sinclair Basic:
    Define DEF FN in top, place GO SUB ...
    Dr BEEP Dr BEEP 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…

    ... 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
<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
bin 3.7K 6.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…
  • 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…
  • 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…
  • need helpw with speccy i found in a binToday what a find, walking past a wheely bin I saw an atari box, after more investigation I uncovered a wood panel atari and a speccy plus leads for…
  • 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…
  • CGC 2005 -- MANIC MUSLIM (Official Osama Bin Laden Simulator)Anyone interested in seeing BONIOSOFT's utterly shite MANIC MUSLIM game should go to...<br /> <br /> [url="http://www.lofi-gaming.org.uk/speccy/cgc20…

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

Copyright © 2024 World of Spectrum