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.010s
<1…78910111213…34>
  • Blake's 7I've got an idea for a Blake's 7 video game for the 128K Spectrum (Only problem is I can't code in neither machine code or Sinclair BASIC, so I will …

    ... inside a call to a DEF FN?[/QUOTE]

    No idea ...
    RST#08 RST#08 May 2009 New game ideas
  • Blake's 7I've got an idea for a Blake's 7 video game for the 128K Spectrum (Only problem is I can't code in neither machine code or Sinclair BASIC, so I will …

    ... inside a call to a DEF FN?[/quote]

    Due to ...
    Dr BEEP Dr BEEP May 2009 New game ideas
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... ,string[/I])
    [code]
    DEF FN M(x$,y$)=(x$ AND ...
    Dr BEEP Dr BEEP July 2009 Sinclair Basic
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... ,string[/I])
    [code]
    DEF FN M(x$,y$)=(x$ AND ... how about SHORTER(string, string) FN S, and LONGER(string,string ... ) FN L?

    The definitive ...
    chev chev July 2009 Sinclair Basic
  • Very basicI found the wos site a few months ago when searching for solutions to my broken spectrum, that i had dug out of storage and was learning basic on. Si…

    ... 'll actually find out what DEF FN is for.
    chop983 chop983 September 2009 Sinclair Basic
  • More colours II (Was: Most popular new features?)The suggested 4xCLUT multi-colour solution never took off.

    ... br />
    [code]
    10 DEF FN c$(c)=CHR$ 18+CHR ... (c-INT (c/2)*2) : DEF FN c(r,g,b)=(g ... the equivalents are:

    FN c$(0) = FLASH 0; BRIGHT ... 0
    FN c$(1) = FLASH 0; BRIGHT ... 1
    FN c$(2) = FLASH 1; BRIGHT ...
    chev chev November 2009 Emulators
  • Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…

    ... short of supporting "VAL" and "DEF FN" as these are very complex ...
    joefish joefish November 2009 Games
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    ... write your own functions with DEF FN. There's a fairly comprehensive ...
    chev chev December 2009 Sinclair Basic
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    ... like:

    [code]
    DEF FN w(x,y,a$)=USR ... />
    [code]
    LET n=FN w(0,0,a$+CHR ...
    chev chev December 2009 Sinclair Basic
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    ... =aowen;407065]
    [code]
    DEF FN w(x,y,a$)=USR ...
    gasman gasman December 2009 Sinclair Basic
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    ... there.[/quote]

    A DEF FN has to have a fixed ... parameters, so you could have DEF FN w(a$, b$, c$)=1 ... all of those with FN so print FN w(a$,b$) would ...
    chev chev December 2009 Sinclair Basic
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    [QUOTE=aowen;407170]A DEF FN has to have a fixed ... parameters, so you could have DEF FN w(a$, b$, c$)=1 ... all of those with FN so print FN w(a$,b$) would ...
    roko roko December 2009 Sinclair Basic
  • Randomize usrHi, I've often wondered why/how they came up with RANDOMIZE USR <memory address> to invoke machine code couldn't they have used a better keyword (e…

    ... :

    [code]
    10 DEF FN a$(a)=""
    20 CLEAR ... : REM RET
    40 PRINT FN a$(USR 40000);
    [/code ...
    chev chev December 2009 Sinclair Basic
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    Arjun, the upper$ and lower$ functions only return the first letter of the string capitalized. Something like this will do the whole word:

    DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 AND CODE s$
    Alcoholics Anonymous Alcoholics Anonymous January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... the whole word:

    DEF FN u$(s$)=VAL$ "CHR$ ((CODE ...
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    [QUOTE=aowen;56596]...

    [b]LOWER$[/b]([i]string1[/i])
    [code]
    DEF FN L$(l$)=CHR$ (CODE l$)+(32 AND CODE l$>64 AND CODE l$96 AND CODE u$64 AND CODE l$96 AND CODE u$
    jp jp March 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... me of ZX BASIC and DEF FN may want to move argument ... 'exists' check could just be DEF FN e(a$) = USR (prog+5 ...
    John Elliott John Elliott May 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... file check routine which uses DEF FN to define the file name ... /> The function definition is:
    DEF FN o(f$)=USR 49050
    FN o(f$) arg
    ld ...
    Battle Bunny Battle Bunny June 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... ?[/QUOTE]

    Errrm ... use DEF FN to pass arguments to USR ...
    Battle Bunny Battle Bunny June 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... day. Specifically, the use of FN o(f$) in these lines ... : GO SUB 9220: DEF FN o(f$)=USR 49050: DEF FN p(t,e ... LET r$=l$(item): IF FN o(r$+CHR$ 255) THEN ... file name passed in the FN o(f$) call.

    Battle Bunny Battle Bunny June 2010 Sinclair Basic
  • BITWISE operators...Hi Folks, Another question - is there a way (fast) to do bitwise operations in Sinclair BASIC? Many thanks Paddy

    ... numbers as strings in the DEF FN article on the tech wiki ...
    chev chev August 2010 Sinclair Basic
  • BITWISE operators...Hi Folks, Another question - is there a way (fast) to do bitwise operations in Sinclair BASIC? Many thanks Paddy

    ... you could use a FN. Your example would become ... address of first character after FN
    INC HL
    FN
    AND B
    [CODE]
    10 DEF FN A(X,Y) = USR start_address ...
    20 PRINT FN A(10,20)
    [/ ...
    GReW GReW August 2010 Sinclair Basic
<1…78910111213…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
bug 8.7K 11.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…
  • 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 …
  • 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…
  • 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…
  • fn bug in basin?Hi.<br /> I was just trying to make myself some functions in basin and when i tryed them, the progam stopped on call.<br /> So i've tryed this simple…
  • 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 /> …
  • A recollection of a Bug in a "good" game:the mystery of the bug and the game will be revealed later!Well what is the "big deal":- a bug in an old Spectrum game. So what!<br /> <br /> Well , I should explain: it was a good very popular game and I …
  • PocketClive bugHi...<br /> <br /> thought I would give all of you that downloaded PocketClive, the PocketPC spectrum emuator a small bug report! <br /> <br /> There…

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

Copyright © 2024 World of Spectrum