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.078s
<1234567…34>
  • 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 function defined such as DEF FN g(x, y, p, q ...
    carlinski carlinski December 2007 Development
  • 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…

    ... ?

    Using:

    DEF FN w(w$,o$,c)=VAL ... (("FN w(w$,o$,c+1)" ... />
    with:

    w$(FN w(w$,o$,1))
    FN w(w$,o$,1)*100).
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • 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 …

    ... after each parameter in the DEF FN definition. There's code there ...
    Battle Bunny Battle Bunny April 2012 Emulators
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere. [code] 2 DEF FN t$(n,t,d) =STR$ INT (n/t)…

    ... nowhere.
    [code]
    2 DEF FN t$(n,t,d)
    +VAL$ (("FN t$("
    +STR$ (n-INT ...
    Battle Bunny Battle Bunny August 2013 Sinclair Basic
  • 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. By the time, the WoS f…

    ... after every parameter of a DEF FN.

    By the time ...
    programandala.net programandala.net August 2015 Sinclair Basic
  • BASIC Bug: DEF FN after REMHello all, 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 when call…

    ... BASIC was at locating the DEF FN when called upon.

    [code]
    10 DEF FN a()=10
    20 PRINT ... :
    [code]
    10 REM : DEF FN a()=10
    20 PRINT ... ROM routine that looks for DEF FN, DATA and (oddly) NEXT appears ...
    BloodBaz BloodBaz May 2022 BASIC
  • I've lost my FUSE to PC keyboard conversion filePlease someone help me. I have lost my laboriously drawn keyboard map showing how to get Spectrum keywords using a PC keyboard with FUSE. I just cop…

    ... have lost my laboriously drawn keyboard map showing how to get ... keyboard with FUSE. I just copied down the built in Spectrum keyboard on Fuse ...
    mik3d3nch mik3d3nch May 2017 Emulators
  • BASIC Keyword ReferenceRealised that the Sinclair Basic section would be a better place for discussion of BASIC keywords, so for reference the old thread is in [thread=2005…

    ... RANDOMIZE : K : T
    DEF FN : E : SYM + 1 READ ... RUN : K : R
    FN : E : SYM + 2 SAVE ... keys on the 128k keyboard. Details of
    keyboard.
    They ...
    icabod icabod March 2008 Sinclair Basic
  • fn bug in basin?Hi. I was just trying to make myself some functions in basin and when i tryed them, the progam stopped on call. So i've tryed this simple thing: 10 …

    ... simple thing:

    10 def fn a(x)=x*10
    20 print fn a(10)

    and ...
    rikokun rikokun September 2011 Sinclair Basic
  • FN nesting error?While playing with FN functions that call assembly, I've found something weird. Check out this code: [code]10 DEF FN f(a,b)=a+b 20 PRINT FN f(FN f(…

    ... this code:
    [code]10 DEF FN f(a,b)=a+b ... , if I change the DEF FN to: DEF FN f(a,b)=a, the ... call.

    [code]10 DEF FN f(a,b)=a+b ...
    20 DEF FN g(a,b)=a+b ... !
    40 PRINT FN f(FN f(2,FN g(3,1)),4 ... !
    100 PRINT FN g(FN g(2,FN g(3,1)),4 ...
    mcleod_ideafix mcleod_ideafix October 2011 Sinclair Basic
  • A Miscellany of Dangerous TipsHere's a selection of ideas for using some of the more obscure system variables which I've found handy on occasion. They can be very convenient if us…

    ... automatically created within the DEF FN statement itself by the ... used independently of any DEF FN statement, which allows quick ... be done as a recursive DEF FN.

    Finally, ... to memory... (Mar)
    * Keyboard problem... (Apr)
    * Screen2String ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • MOVE_M Object Movement Manager for BASICAs moving things around on the screen is usually the slowest part of a game written in BASIC, I've been pottering around with this routine to handle …

    ... the time, scanning the keyboard and moving things based ... 10 REM Title
    11 DEF FN p(a)=PEEK a+256 ... *PEEK (a+1): DEF FN i(d,a)=USR ... 12 CLEAR 62999: LET ORG=FN p(23730)+1: LOAD " ... REM To temporarily enable the keyboard from BASIC:
    REM ...
    Battle Bunny Battle Bunny September 2013 Sinclair Basic
  • Help With AY Music Program in BASICHi, last year I started writing a BASIC program for making and recording AY Music. I thought it would be easier than learning how to use Soundtracker…

    ... :

    [b]1. The keyboard scans multiple times but plays ...
    850 REM *** draw musical keyboard ***
    860 PLOT 4,1 ... y
    2000 REM Musical Keyboard Control Via Computer Keys
    RetroPhase2014 RetroPhase2014 December 2015 Sinclair Basic
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... 23676.

    * Reading the keyboard
    ----------------------

    The best ... long buzz which immobilises the keyboard, preventing you typing any further ... to noticeably slow down the keyboard response (since computing stops as ...
    na_th_an na_th_an April 2005 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. …

    ... use only to read the keyboard.
    In these days I ... in a def fn as in the next example:
    Def fn a$(x ... *int(x/32))
    Print Fn a$(45);"..."
    That would ...
    zx_if1 zx_if1 April 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…

    ... is used to address the keyboard, microdrives and printer, etc
    keyboard, microdrives and printer, etc.
    IN

    *************************************
    DEF FN Define function

    Description ...
    Blondin235 Blondin235 March 2006 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…

    ... , but you are reading the keyboard everytime with the INKEY$ command ... 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…

    ... , but you are reading the keyboard everytime with the INKEY$ command ... 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
  • 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…

    ... />
    Added DEF FN r() to read the keyboard. Unfortunately this takes ... , I found that the keyboard became unreponsive, due to ... of the time (intermittent keyboard reading occured). Therefore I ... bit" before reading the keyboard. The game now functions ...
    Digital Prawn Digital Prawn August 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…

    ... have to fiddle about in Fuse and see how it's ... />
    The nice thing about DEF FN + some USR call is that ...
    Winston Winston December 2007 Development
  • BASIC Keyword ReferenceHi. I do most of my ZX work on a grey-case +2 which, as we all know, is devoid of most of the 48k BASIC keywords (it has LOAD and stuff, but not much…

    ... 's command helper in the keyboard tool:

    [code]
    DEF FN Caps Shift+Symbol Shift, then ... Symbol Shift and 'V'
    FN Caps Shift+Symbol Shift, then ...
    Dunny Dunny March 2008 Sinclair Miscellaneous
  • 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…

    [code]
    1 DEF FN a(r,n)=r-INT ( ... new

    LET c=FN a(3+PEEK 23673,256 ... reached

    PRINT "Room:";FN a(CODE c$(p),40 ... x$=h$;"NESW"(g);":";STR$ (FN a(CODE h$,40)^2 ...
    Dr BEEP Dr BEEP March 2008 Development
  • Keyboard mapping...Hi Folks, This is probably going to be one of those daft questions but... On the emulators (Spectrum and CPC) why are the keyboards not mapped to t…

    ... just use the normal PC keyboard layout. I tried Basin once ... is fine. Do not use DEF FN though as it seems to ... perspective.

    As for keyboard, I suppose one option is ... to buy a cheap TESCO keyboard (?5) and stick keytops on ...
    Paddy Coleman Paddy Coleman September 2010 Emulators
  • Keyboard mapping...Hi Folks, This is probably going to be one of those daft questions but... On the emulators (Spectrum and CPC) why are the keyboards not mapped to t…

    ... is fine. Do not use DEF FN though as it seems to ... perspective.

    As for keyboard, I suppose one option is ... to buy a cheap TESCO keyboard (?5) and stick keytops on ...
    Rebelstar without a cause Rebelstar without a cause September 2010 Emulators
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... CHANS area to call the keyboard input routine instead of the ... area used by user-defined FN evaluations. I'd often ... first I tried using a DEF FN to assign the display file ... I could use LET s$=FN s$(), but I got ... was using a user-defined FN by POKEing DEFADD with ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…

    ... /> 5 CLEAR 26000
    9 DEF FN b$(n,b)=(STR$ (n ... -2^b>=0)+FN b$(n-(2^b AND ... '"a$=";
    25 LET a$=FN b$(a,15): PRINT a ... ://home.hccnet.nl/c.born/Fuse-Memory%20Browser-recursiveDEF_FN.png[/IMG ...
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
<1234567…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Goodbye Z80
    i love the z80s on 6:28PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 6:04PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
fuse 6.8K 11.8K
def 11.7K 12.9K
fn 866 4.4K
keyboard 14.1K 21.6K

Related Threads

  • ANNOUNCE: Fuse 0.6.1, libspectrum 0.2.0, fuse-utils 0.6.1I'm pleased to announce the release of the Free Unix Spectrum Emulator (Fuse) 0.6.1, which is now available from its [url="http://www.srcf.ucam.org/~…
  • Keyboard stickers for a DK'Tronics keyboardSee topic.<br /> I know sintech used to sell them, but I can't find them in their shop anymore.<br /> Anyone know another place where to get these pu…
  • 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…
  • Keyboard issue on Fuse for LinuxHi,<br /> <br /> My laptop has only one 'enter' key, though it seems it acts<br /> like it was the numeric pad enter key. So I can do nothing<br /> u…
  • 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 …
  • SAGA 1 Emporer keyboard ->swap-> dk' Tronics keyboardHi,<br /> <br /> Anyone here that would like to swap a SAGA 1 Emporer keyboard for a dk Tronics keyboard?<br /> Without the insides, just the keyboar…
  • 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 /> …

Related Searches

  • fuse onscreen keyboard
  • modulo function def fn
  • fuse 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

Copyright © 2024 World of Spectrum