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.119s
<1…891011121314…34>
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    ...
    NEXT b:
    NEXT a
    60 PRINT n$[/code ... , using an user function:
    [code]10 DEF FN b$(n)=("0000" ...
    The "Monte Carlo" method (a random variant of the brute ... the arguments in an user function (a [url=http://www.worldofspectrum.org ...
    mcleod_ideafix mcleod_ideafix August 2014 Sinclair Basic
  • 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 ... we were called from a function
            ;; definition like FN l(x,y ... '
            xor     a
            out     (254),a
            ld      b,a
            ld ...
    stephenw32768 stephenw32768 May 2015 Development
  • What am I doing wrong here?[code]IF INKEY$=SCREEN$ (21,4) THEN LET SCORE=SCORE+1[/code] It's delivering a positive every time.

    ... [code]
    ; USAGE:
    ; DEF FN s$(r,c)=STR$ USR ... inc hl
    ld a,(hl) ;A =row
    ld bc ... on the calculator stack; also A=CHR$, DE=pointer, BC= ... ;becomes the output from the function instead of BC.
    ...
    Battle Bunny Battle Bunny May 2016 Sinclair Basic
  • Leading Zeroes on a Score in BASICI'm trying to print the score with leading zeroes such that it's always 6 characters wide, i.e.: 000010, 000150, 006100 etc. I quickly knocked thi…

    ... at 999, I just enclosed within a FOR...NEXT loop that part ... gone before:
    [code]PRINT FN s$(STR$ score)[/code]
    [code]DEF FN s$(s$)=p$(TO 9 ...
    Battle Bunny Battle Bunny July 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…

    ... my approach to be a good one! Interested in ... Also, if you use the DEF FN approach, how do you ... evaluated, for example for DEF FN a(x,y) when x ... /> +$0 ASCII code of function name 'a'
    +$1 $0E ... /> +$9 $00
    +$A sign byte of second parameter ...
    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…

    ... entrance, and the dungeon level within that location. Leaving and then ... re-entering a level will rebuild that level ... /> [/code]
    The 'O' is a capital letter 'O'.

    4 Removed redundant "DEF FN p$(p,q)".
    12 ...
    Battle Bunny Battle Bunny June 2017 Sinclair Basic
  • Go to, gosub or something different?I'm going to write an arcade game in basic. May compile it. In both basic and compiled basic would a goto or gosub be faster? Also if I stored …

    ... GO SUB stack. Calling a FN is slower as every statement ... code, as long as a DEF FN only references its own local ... parameters within its DEF FN extent which is always searched first; but a DEF FN is ... contain compared to a GO SUB routine. Recursive DEF FNs use ...
    Battle Bunny Battle Bunny August 2017 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…

    ... ="1024MAK;949710"]
    MOD is a function that is available in some ... returns the remainder part of a division. For example, the expression ... 5” returns 0. But this function is not available on the ... one could DEF FN as MOD? In other words set up a function to ...
    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…

    ... one could DEF FN as MOD? In other words set up a function to ... you'd have noticed that DEF FN can only support 1-letter ... did with a LINE function before, but that would take a lot of ... out.[/quote]
    They have a special category for Spectrum 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…

    ... d have noticed that DEF FN can only support 1 ... DEF FN MOD() is not possible since the name of the function ... it can be defined a DEF FN function in BASIC to simulate ... MOD function in ZX Spectrum 48K BASIC as DEF FN a(b ... br />
    10 DEF FN a(b,c)=((b/c)-INT ...
    IvanBasic IvanBasic January 2019 BASIC
  • While we're on the subject of BASIC Although my memory of the past still seems to be fairly reliable, memories relating to learning computer programming seem to have disappeared…

    ... trouble of grasping DEF FN syntax, for example. As a kid, I had ... it was literally defining a mathematic like function f(x). And that ...
    Arjun Arjun February 2019 BASIC
  • what does the USR command actually stand for?im sure its an acronym, if i remember rightly. ____ sub routine?

    ... extract parameters - I remember seeing a type-in routine to delete ... chunks of a program, which was called with ... ] . Or declare it as a user-defined function DEF FN a(p,q) = USR [i ...
    John Elliott John Elliott June 2019 BASIC
  • BASin Release 10a is up...Well, none of my releases ever get far before the inevitable bug fix version... Go grab it at [url="http://homepage.ntlworld.com/paul.dunn4/BASin_…

    ... and an issue with repainting a breakpoint on the last ... now ignored (BadBeard)
    Fixed DEF FN statements - not correctly tokenised (Chris ... )
    Added a small kludge that allows you ... filtering yet.
    Fixed a small bug in the renumber ...
    Dunny Dunny June 2004 Emulators
  • BASin release 12b available for downloadOk, there were a few nasty bugs in the last release, so in fine SPIN team tradition here's a new release that possibly fixes those errors. In this r…

    ... SPIN team tradition here's a new release that possibly fixes ... /> Fixed Crisis's bug with DEF FN, and colin's problem with ... fix was quite a radical rewrite of a small portion of ... see if we can crush a few more bugs this ... If all is well in a week's time, I'll ...
    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…

    Are 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 BASIC manual only glosses over them without going into a lot of detail.

    Necros.
    Ian Hamilton Ian Hamilton January 2006 Sinclair Basic
  • What's your favourite death in a game?In a morbid fashion what is your favourite death in a game be it a quick sprite dies type thing or a brutal scene? Speccy only is preferable but feel…

    ... your favourite death in a game be it a quick sprite dies ... type thing or a brutal scene? Speccy only is ... character or an enemy sprite within a game.

    Here's ... a few of mine to start ...
    dm_boozefreek dm_boozefreek April 2006 Games
  • Firefox (new thoughts)Maybe more people would use Firefox if there was a version for the Speccy! [code] 10 PRINT AT 2, 2; "Press F for Firefox or I for M$IE" 20 LET K$=IN…

    ... use Firefox if there was a version for the Speccy!
    60 DEF FN M$(IE)=""+M$(IE)+""" is ... evil"
    70 PRINT FN M$(IE)
    REM etc ...
    Where's that AY chip gone... Where's that AY chip gone... November 2006 Chit chat
  • A retro-spec-tive, music of 07So now the new year's in... this is a sample of the music that has accompanied the long sleepless nights, slaving over a hot soldering iron while bre…

    ... long sleepless nights, slaving over a hot soldering iron while breathing ... - The Debt Collection
    (Probably a topical thing for 2007 given ... /> Brad Mehldau - Exit Music for a Film

    09_allover. ... it all that much but within a month or so I couldn ...
    Winston Winston January 2008 Chit chat
  • Julian Date / Mean AnomolyHere's another bunch of nonsense that (when finished) might be helpful*: [quote] 10 CLS : PRINT AT 0,0;"Please enter the information required:": …

    ... information required:": PRINT
    20 DEF FN a(d,h,m,s)=d ... /60/60/24)
    30 DEF FN b(j,m,d,c ... +c-1524.5
    31 DEF FN c(j)=357.5291+(0 ...
    gcallard gcallard May 2008 Sinclair Basic
  • BASin r14d - Final bugfix for the r14 seriesOk, there's not a great deal to "show" here, as most of the work has been going on "under the hood" so to speak. And there's been a [i]lot[/i] of wor…

    ... s a space in the 2nd keyword - GO TO, GO SUB, DEF FN ... /> Fixed - Expression evaluations timeout a lot sooner now - typically after ... your program changes from a 128k to a 48k compatible program, and ... notation numbers after a $C4 (BIN Token) inside a string were ...
    Dunny Dunny December 2008 Emulators
  • Having trouble with some type-insI'm trying to enter some type-ins into BASin but I get into errors I can't handle. Since both type-ins are coming from the same book, it becomes a li…

    ... the same book, it becomes a little scary that I may ... be reading a book with so many errors ... ]
    // page 150
    130 DEF FN d(s$) = (s$ > "9 ...
    rahtgaz rahtgaz January 2009 Sinclair Basic
  • The best ... beginning with "D"Name (in your opinion) your "Best game beginning with [A to Z, one letter per post]". So, for the letter "D", which do you think are the: [B]Best g…

    ... /> Best sound or music (in a game):

    Best ... connected to the Speccy, not a game title:[/B]
    a game)[/B][B]:[/B] Dynamite ... 2. Actually no, for a change (otherwise this entire ... not a game title:[/B] I'd say the DEF FN command, ...
    ewgf ewgf January 2009 Sinclair Miscellaneous
  • Need a Win prog which shows what is using up the network (WiFi)connection ... G'argh!Ok ... it's a (WinXP) computer using a cable modem. It's firewalled. The other day a WiFi router was added to it. It's locked, it's supposedly sec…

    Ok ... it's a (WinXP) computer using a cable modem. It ... and when viewed from a different computer it pops ... 'm talking 100s of megs within a few hours.

    a laptop next room. That ... />
    Is there a (free?) prog out there which ...
    ZnorXman ZnorXman May 2009 Chit chat
  • 'Newsfield Years' Film Released!Please excuse the plug, there are no excuses I know as I have just registered but I am a filmaker as well as a gamer and people need to know about th…

    ... submit with gritted teeth expecting a couple of annoyed people, ... Unclear User? legal battle, developing a comic strip, their journalists becoming ... of these stories take shape within a games industry that was ... is available in both High-Def and SD now, the film ...
    cgc cgc February 2010 Sales
  • Film on Newsfield (Crash, Zzap etc.) released!Please excuse the plug, there are no excuses I know as I have just registered but I am a filmaker as well as a gamer and people need to know about th…

    ... submit with gritted teeth expecting a couple of annoyed people, ... Unclear User? legal battle, developing a comic strip, their journalists becoming ... of these stories take shape within a games industry that was ... is available in both High-Def and SD now, the film ...
    cgc cgc February 2010 Announcements
  • How would you win ?1m in a Spectrum virtual reality challenge?Imagine, if you will, a strange opportunity in which you have been selected to play a virtual reality challenge game pitting your wits against the pr…

    ... have been selected to play a virtual reality challenge game pitting ... wits against the prospect of a ?1m prize. Through the ... technology you will be transported within a Spectrum game of your choice ... remain stationary or hide in a corner will result in your ...
    Amfoot Amfoot February 2010 Games
<1…891011121314…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
within 7.8K 8.5K
a 589.5K 1.7M
function 4.3K 6.5K

Related Threads

  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • Trying to find a magazine entry for a program I wrote as a child!Hi, <br /> <br /> Back when I was a child I wrote a program called "milkround" that we published in either your spectrum, your sinclair or sinclai…
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on
  • How to separate a character from a number in a string?Hi <br /> I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say…
  • A TZX, a MIA and a previously unknown title from QLSThe Spanish website [url="http://trastero.speccy.org/"]El Trastero del Spectrum[/url] has a TZX of [url="http://www.worldofspectrum.org/infoseekid.cg…

Related Searches

  • modulo function def fn
  • fuse def fn keyboard
  • i demand a working search function
  • def fn usr
  • def fn
  • 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
  • bin function def fn

Copyright © 2024 World of Spectrum