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.006s
<1…6789101112…34>
  • 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
  • PFN PRINT by Garry Rowland...Hi Folks, Whilst watching Casualty last night I thought I would surf the archive and look at some "classic" software. One I tried was a program cal…

    ... had the instructions, something about DEF FN and such.... I also used ...
    Dave Fountain Dave Fountain September 2010 Sinclair Miscellaneous
  • Time function?How do you do a timer? Example: Start timer If timer = 10 seconds then reset timer Thanks

    ... /> Basicly:

    [code]50 DEF FN t()= INT ((65536* PEEK 23674 ... )/50)
    60 LET now=FN t()
    70 PRINT "DO ... 10 SECONDS...";
    80 IF FN t()
    na_th_an na_th_an September 2010 Development
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ... .

    [code]
    4 DEF FN p(a)=PEEK a+256 ... :
    FOR i=FN p(23627) TO FN p(23641)-2:
    FN p(i+1): NEXT i ... /> FOR a=i+1 TO FN p(23641)-2:
    IF ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ...
    [CODE]10 REM DEF FN v()=PEEK (23627)+256*PEEK ... (23628)
    15 REM DEF FN t(a)=INT (PEEK ( ... a)/32)
    20 REM DEF FN c$(a)=CHR$ (PEEK ... /> 9050 REM LET v0=FN v()
    9055 LET ... 9130 REM LET n$(i0)=FN c$(v0)
    9135 ... br /> 9150 REM IF FN t(v0)5 THEN ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... the time stuff in a DEF FN but for some reason they ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... Shell Sort demo
    2 DEF FN t()=65536*PEEK 23674+256 ...
    90 LET t1=FN t(): LET t2=FN t():
    LET ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • 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 ...
    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 ...
    Rebelstar without a cause Rebelstar without a cause September 2010 Emulators
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... quicksort implementation...
    [code] 1 DEF FN t()=(PEEK 23672+256*PEEK ... 1000
    30 LET t1=FN t(): LET fr=1: LET ... : GO SUB 4000: LET t2=FN t()
    40 GO SUB ...
    mcleod_ideafix mcleod_ideafix October 2010 Sinclair Basic
<1…6789101112…34>

Latest Posts

  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • European Software Titles with an English version
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
hex 1.7K 2.4K
def 11.7K 12.9K
fn 866 4.4K

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…
  • Why Hex in place of Denary?Ok - most MC books / tutorials advocate the use of hex instead of denary.<br /> <br /> But the Speccy doesn't actually have a Hex converter so you ne…
  • A very Slovakian adventure........Forever Hex DemopartyHey guys........I will be traveling from London Luton to Bratislava, and then onto Trencin for Forever Hex (the 8-bit Demo party - March 18-20)......…

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