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
<1234567…34>
  • 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. …

    ... without a DEF FN, but we can think of your DEF FN

    Dr BEEP Dr BEEP October 2005 Sinclair Basic
  • BASin release 12a available for downloadChristmas has arrived early, and the new release of BASin is ready for you lot to point out errors, inconsistencies and bugs. Get it here: [url="ht…

    ... don't understand - BASin displays DEF FN functions perfectly here.


    10 DEF FN c$(a??????,b??????,c??????)=str ... />
    Typing in the same DEF FN in BASin results in no ...
    Dunny Dunny October 2005 Sinclair Basic
  • BASin release 12a available for downloadChristmas has arrived early, and the new release of BASin is ready for you lot to point out errors, inconsistencies and bugs. Get it here: [url="ht…

    ... question marks RETURNed in my DEF FN you migth consider it..
    Dunny Dunny October 2005 Sinclair Basic
  • Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…

    DEF FN: see many, many articles here and in css.
    IN, OUT: Well, you're going to need some hardware. What do you expect to demo these?
    Philip Kendall Philip Kendall January 2006 Sinclair Basic
  • Method to read byte as binary string rather than dec?Hi all Am fiddling around with the screen buffer and have written a routine to scan the screenbuffer into upper ram and then write it back in upside…

    Eek - "Def FN" brings back some bad memories of trying to get a type-in sprite engine to work out of a book.

    Made my head hurt as a kid - never did get it to run.
    Womble Womble February 2006 Sinclair Basic
  • Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…

    ... about IN and OUT and DEF FN

    ... br />
    *************************************
    DEF FN Define function

    ... Example
    10 DEF FN A(X)=X^3
    Associated keywords
    FN
    *******************************

    Blondin235 Blondin235 March 2006 Sinclair Basic
  • how to pass arguments from Basic to MC ?can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this: PRINT USR xxxxx, arg1, arg2:…

    ... needed. I think I used DEF FN functions to call the code ...
    icabod icabod April 2006 Development
  • how to pass arguments from Basic to MC ?can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this: PRINT USR xxxxx, arg1, arg2:…

    ... detail: define a function as DEF FN f(x)=USR nnnnn . In ...
    gasman gasman April 2006 Development
  • Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…

    ... :

    [code]
    10 DEF FN a$(n$)=VAL$ ((VAL$ (""""""+("+CHR ... $)+CHR$
    34+CHR$43+""FN a$(n$(2 TO LEN ...
    MikeW MikeW April 2006 Sinclair Basic
  • Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…

    ... any functions (specifically CHR$, TO, FN) that appear in red are ... completeness, here's Mike's DEF FN from hell in BASin-friendly ... :

    [code]
    10 DEF FN a$(n$)=VAL$ ((VAL$ (""""""+("+\#19434 ...
    Dunny Dunny May 2006 Sinclair Basic
  • 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…

    10 Def Fn D$(n,s$)=val$ (("s$+fn D$(n-1,s$)" And N>0)+("""""" And N=0))
    20 Print Fn D$(10,"abc")
    Dr BEEP Dr BEEP November 2006 Sinclair Basic
  • 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…

    ... example of recursiveness in a DEF FN function. Sadly it doesn't ...
    Philip Kendall Philip Kendall November 2006 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. …

    10 DEF FN m(a,b)=a-(b*INT (a/b))

    Merry Xmas!
    Woody Woody December 2006 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. …

    ... odd:

    [code]10 DEF FN q(a)=(a/2)=INT ... 2:

    [code]10 DEF FN q(a,b)=(a/b ...
    Marcelo Marcelo December 2006 Sinclair Basic
  • Little BASIC gameTry to make all standard BASIC-errors and tell us how you did it. Not allowed i.e. : PRINT USR 1362 D - Break cont-repeats but ok 10 GO TO 10 RU…

    ... :1[/B]

    PRINT FN a() : REM with no program ... ]P FN without DEF FN, 0:1[/B]

    10 DEF FN a(x ... ) = 1 : PRINT FN ...
    Geoff Geoff January 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. …

    ... why:

    [code]
    DEF FN x$(a) = CHR$(a+48 ... >9))
    DEF FN h$(x) = VAL$("FN h$(INT(x/16 ... ))+FN x$(x-16*INT ...
    Alcoholics Anonymous Alcoholics Anonymous February 2007 Sinclair Basic
  • Cybernoid editorSo, my long tern goal is to make my own Cybernoid or Rex like game (see an ancient thread about Sprite advice)...but my skills are somewhat lacking..…

    ... two-liner:

    10 DEF FN x$(a) = CHR$(a+48 ... >9))
    20 DEF FN h$(x) = FN x$(INT (x/16 ... )) + FN x$(x-16*INT (x/ ... 16))
    30 PRINT FN h$(201)

    Basically ...
    Marcelo Marcelo February 2007 Development
  • 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. …

    ... =Alcoholics Anonymous;171624][code]
    DEF FN x$(a) = CHR$(a+48 ... a>9))
    DEF FN h$(x) = FN x$(INT (x/16 ... )) + FN x$(x-16*INT (x/ ... />
    Just do a PRINT FN h$(100).

    There ...
    48K 48K February 2007 Sinclair Basic
  • Cybernoid editorSo, my long tern goal is to make my own Cybernoid or Rex like game (see an ancient thread about Sprite advice)...but my skills are somewhat lacking..…

    ... two-liner:

    10 DEF FN x$(a) = CHR$(a+48 ... >9))
    20 DEF FN h$(x) = FN x$(INT (x/16 ... )) + FN x$(x-16*INT (x ... /16))
    30 PRINT FN h$(201)

    ... understand how Alcoholics Anonymous's DEF FN version works - so your effort ...
    48K 48K February 2007 Development
  • 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. …

    [code]
    DEF FN x$(a) = CHR$(a+48+(7 AND a>9))
    DEF FN h$(x) = VAL$("FN h$(INT(x/16))+FN x$(x-16*INT (x/16))"(1+(13 AND x
    Dr BEEP Dr BEEP February 2007 Sinclair Basic
<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
def 11.7K 12.9K
fn 866 4.4K
copying 1.8K 2.1K

Related Threads

  • 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…
  • 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…
  • 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…
  • Copying Spectrum tape games to +3 disksIs there an easy way of doing this? I know you can use a multiface 3, but I don't have one of these and they sell for silly money on eBay. I picked u…
  • Campaign for free to air High Def TV on FreeviewThe government are on the verge of selling the analogue tv bandwidth ( if thats what its called ? ) to mobile phone companies, but the decision hasn'…

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

Copyright © 2024 World of Spectrum