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.044s
<1…567891011…34>
  • Experimenting with turboloadersHello, My first post, having lurked here for a while. I'm a lifelong computer nerd, Spectrum fan since childhood in the eighties, and have recently…

    ... , one does

    1 DEF FN l(x,y)=USR 60000 ... a block with, say, RANDOMIZE FN l(16384, 6912)

            ;; definition like FN l(x,y).  The first ... of second arg
            ld      d,(ix+13)       ; high byte of ...
    stephenw32768 stephenw32768 May 2015 Development
  • BASIC to Python - bringing a modern view on an 80's obsession...Howdy! I don't know how relevant this will be here, but I've just finished up a 3-part overview on my blog where I convert an old 1K ZX81 basic pr…

    ... . If you ask me, I'd say BASIC, with all its ... probably easier with functions (GOSUB/DEF FN) than BASIC.

    As ...
    Timmy Timmy July 2015 Sinclair Miscellaneous
  • Bored of the Rings coded messageI was browsing [url="https://tcrf.net/"]The Cutting Room Floor[/url] recently and stumbled upon the entry for [url="https://tcrf.net/Bored_of_the_Rin…

    ... out the letter which I'd missed out in line 3 ... , restricting results to A-Z (FN c() is true). With a ... ,123,226,205,32:
    DEF FN c(a)=a>=CODE ...
    Battle Bunny Battle Bunny May 2016 Games
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... ]
    6 DEF FN x(x)=INT (x*dp9+dp5): DEF FN y(y ... ,draws: PLOT FN x(x1),FN y(y1):
    FOR d=k1 TO ... draws:
    READ x2,y2: DRAW FN x ... (x2),-y2:
    NEXT d:
    NEXT ...
    Battle Bunny Battle Bunny September 2016 Sinclair Basic
  • POKE taking a variable amount of time...Hi Folks, Does anyone know why the following POKE statements seem to vary in their execution time? [code]100 POKE 60000,10 110 POKE 60001,16…

    ... [/i] instruction as if you'd typed the values into an ... /> Also, if you use the DEF FN approach, how do you access ... evaluated, for example for DEF FN a(x,y) when x ...
    GReW GReW September 2016 Sinclair Basic
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... entirely different result. The DEF FN was put at line 2 ... :
    [code]DEF FN a(a$)=USR 65368[/code ... ]
    The assembler for FN a(a$) is:
    ... ,(ix+4)
    ld d,(ix+5)
    ld ... ret

    STKSGN: ld d,a ;store signed A on ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • Finished with my dice rolling programTook me all day but I'm rather proud of it, simple though it is. Its up at Dropbox if anyones interested https://www.dropbox.com/s/qdgtfc0zyy94hxm…

    ...
    [code]
    1 DEF FN p(a)=PEEK a+256 ... a+1)
    2 DEF FN b(a)=(a-INT ( ... /> LET n$=STR$ FN b(PEEK (bitsat+a ...
    39 FOR d=1 TO 5 STEP ... 40 FOR r=d+1 TO d+3 STEP 2: ... 41 NEXT a: NEXT d
    49 NEXT k< ...
    Battle Bunny Battle Bunny July 2017 BASIC
  • How to improve my program using oversized numbersI'd like my dice program to print out the number four times bigger than normal if possible. Anyone know how to do this? Or I could write a sub rou…

    ...
    [code]
    1 DEF FN p(a)=PEEK a+256 ... a+1)
    2 DEF FN b(a)=(a-INT ( ... /> LET n$=STR$ FN b(PEEK (bitsat+a ...
    39 FOR d=1 TO 5 STEP ... 40 FOR r=d+1 TO d+3 STEP 2: ... 41 NEXT a: NEXT d
    49 NEXT k< ...
    Battle Bunny Battle Bunny July 2017 BASIC
  • Command line compiler?How do people compile their BASICs these days? I'm thinking of something along the lines of an ASM compiler. E.g. you have a file on your hdd named …

    ... in the instructions; eg.
    "FN d(h$(2 TO))+"
    would ... be typed as:
    "{A8}d(h$(2{CC}))+"
    otherwise ... as plain text and the DEF FN would give a "Nonsense in ...
    Battle Bunny Battle Bunny July 2017 Sinclair Basic
  • are there any machine code to basic converters?i know it sounds stupid but for amature programmers like me it would be great. i could speed up the basic on an emulator and it would give me more of…

    ... /> [code]
    1001 DEF FN b(a,b,c,d,g,v)=g ... =0 TO 2: GO SUB FN b(val1,val2,o,8 ... /> 1090 FOR p=0 TO d-1:
    LET e1=INT ...
    Battle Bunny Battle Bunny July 2017 Sinclair Basic
  • Why no PLOT, etc. on bottom two lines?I was pondering if there was any way to get PLOT, etc. to address the full screen from BASIC without having to write a few lines of assembler to bypa…

    ... REM PlotDraw191.BAS
    4 DEF FN p(a)=PEEK a+256 ... /> 11 LET p191=FN p(PD): LET d191=FN p(PD+2 ... ,C=ABS y,ABS x; D,E=SGN y,SGN x ...
    push de
    ld d,$00
    DLlarge:ld h ...
    Battle Bunny Battle Bunny January 2018 Sinclair Basic
  • Need Some Basic HelpHi all, I’ve decided to give programming in Spectrum Basic a go again (bit of nostalgia trip!) and I’m trying to develop a CYOA style game. How…

    ... br /> [code]
    3 DEF FN p(a)=PEEK a+256 ... "Data file name? ";d$: IF LEN d$>10 THEN GO ... /> 1031 IF NOT LEN d$ THEN GO TO 1020< ... br /> 1033 PRINT " LOAD """;d$;"""CODE ";bstart;",";blen
    1034 ... LOAD d$CODE bstart,blen
    ...
    Battle Bunny Battle Bunny April 2018 Sinclair Basic
  • Need the title of the Sinclair Basic manual to look for itI had a copy but I've lost the USB chip it was on! I need it to look up commands because some Basic programs I looked at all used the command MOD and…

    ... that suggest that one could DEF FN as MOD? In other words ... any BASIC manual you'd have noticed that DEF FN can only support ... lot of time and it'd be in assembly, and it ... Spectrum BASIC already, but you'd rather try 'all those Basic ...
    Timmy Timmy January 2019 BASIC
  • Need the title of the Sinclair Basic manual to look for itI had a copy but I've lost the USB chip it was on! I need it to look up commands because some Basic programs I looked at all used the command MOD and…

    ... snotty remark about 'if you'd read any basic manual' - I ... I didn't know how DEF FN works.

    I come ...
    mik3d3nch mik3d3nch January 2019 BASIC
  • Need the title of the Sinclair Basic manual to look for itI had a copy but I've lost the USB chip it was on! I need it to look up commands because some Basic programs I looked at all used the command MOD and…

    ... BASIC manual you'd have noticed that DEF FN can only support ... believe you are explaining that DEF FN MOD() is not possible ... can be defined a DEF FN function in BASIC to ... ZX Spectrum 48K BASIC as DEF FN a(b,c) with ... attached.

    10 DEF FN a(b,c)=((b/c ...
    IvanBasic IvanBasic January 2019 BASIC
  • Need the title of the Sinclair Basic manual to look for itI had a copy but I've lost the USB chip it was on! I need it to look up commands because some Basic programs I looked at all used the command MOD and…

    ... snotty remark about 'if you'd read any basic manual' - ... I didn't know how DEF FN works.

    I ... that's not how DEF FN works then you blame ... know about DEF FN then you need to read about DEF FN, just ... 'I didn't know how DEF FN works' is a lame excuse ...
    Timmy Timmy January 2019 BASIC
  • Why buy a Raspberry PI to learn programming when you can learn on a Spectrum?I had a raspberry PI for just over a year, never did anything on it except it was fun to get it hooked up to the Internet and be surfing it on a syst…

    ... pretty decent.

    I'd really like to see some ... things one can do with DEF FN. I think it was a ... perimeter function:

    10 DEF FN p(a,b)=2*a ... *b

    20 PRINT FN p(20,50)

    dmsmith dmsmith August 2019 Chit chat
  • Is there much ?Do you think there`s much cooperation, and in fact co-development now goes on within the 8-bit community.. in fact is there any? I know that`s a daf…

    ... a thing or two regarding Def FN and special pokes etc etc ...
    CKay CKay November 2004 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
d 129K 175.1K

Related Threads

  • How to play 3-D MS games Blade Eagle and Maze Hunter in 2-D ?I looked at a few cheat sites; perhaps they don't consider it cheating to play 3-D Master System games in 2-D.<br /> <br /> How do I play these games…
  • 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…
  • RIP Dave Arneson, co-creator of D&D[url]http://news.bbc.co.uk/1/hi/entertainment/7994444.stm[/url]<br /> <br /> [quote][B]Role-playing games pioneer dies[/B]<br /> <br /> Dave Arneson,…
  • one tv show that you'd wish they'd re-shownot seen it for years, but I used to watch indelible evidence (it used to be on bbc2) years ago.. I thought it was really good, but alas it never got…
  • 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 …
  • Multiface One MF I and Plus D +D and Spectrum 48kHi,<br /> <br /> I have an 48k Speccy. And a Plus D Interface.<br /> <br /> Now I want to use it together with a Multiface One, <br /> but it seems I…
  • 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…

Related Searches

  • modulo function def fn
  • fuse def fn keyboard
  • def fn usr
  • def fn
  • def fn within a function
  • bin def fn
  • def fn recursive bug
  • 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
  • def fn trick
  • def fn copying

Copyright © 2024 World of Spectrum