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…78910111213…34>
  • 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 ...
    Paddy Coleman Paddy Coleman October 2010 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…

    ... /> [code] 5 RANDOMIZE
    10 DEF FN b$()=STR$(INT (RND*2 ... n$=FN b$()+FN b$()+FN b$()+FN b$()+FN b$()+FN b$()+FN b$()+FN b$()
    mcleod_ideafix mcleod_ideafix October 2010 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…

    ... it... :)

    [code]10 DEF FN b$(n,d)=VAL$ "STR ... $(INT (n/d),d/2)+FN b$(n-d*INT (n ... -255): ";n
    30 PRINT FN b$(INT (n/16),4 ... );FN b$(n-16*INT (n/ ...
    mcleod_ideafix mcleod_ideafix October 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…

    ... i: PRINT : RETURN
    9000 DEF FN t()=(PEEK 23672+256*PEEK ... 5000
    9030 LET t1=FN t(): LET a=1: LET ... : GO SUB 4000: LET t2=FN t()
    9040 GO SUB ...
    Einar Saukas Einar Saukas October 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…

    ... i: PRINT : RETURN
    9000 DEF FN t()=(PEEK 23672+256*PEEK ... 5000
    9030 LET t1=FN t(): LET a=1: LET ... : GO SUB 4000: LET t2=FN t()
    9040 GO SUB ...
    Einar Saukas Einar Saukas October 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…

    [B]STEP 3 -[/B] Now let's take a look at the quicksort algorithm, since we will need to properly understand it in order to find further improvements.

    The basic idea behind the quicksort algorithm can be represented by the following pseudo-code ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    [QUOTE=Dr BEEP;483699][code]
    1 let b$="hello"
    2 let v$="b$"
    3 let a$=VAL$ v$
    4 print a$
    [/code][/QUOTE]

    Very nice - scope for a [B]DEF FN[/B] there ?!
    jp jp October 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…

    ... i: PRINT : RETURN
    9000 DEF FN t()=(PEEK 23672+256*PEEK ... 5000
    9030 LET t1=FN t(): LET a=1: LET ... : GO SUB 4000: LET t2=FN t()
    9040 GO SUB ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
  • ForthTrying to search for FORTH programs and FORTH articles within the forum is proving to be a complete nightmare!! If I search for FORTH in Infoseek I …

    ... that's because it uses DEF FN and FN). "Mined Out", "Derby Day ... ] [INT] 1000
    OP /
    FN INT
    OP -
    OP ...
    Jimmy Jimmy October 2010 Sinclair Miscellaneous
  • inverting graphics using basic?just curious if it could be done by poking screen memory ? and what's the structure. (foreground / background for each char ? ) reason I ask is I'd …

    ... bit long funciton):

    DEF FN O(x,y)=(128 AND ... AND INT (FN V(FN V(FN V(FN V(FN V(FN V(FN V(x ... ) OR INT FN V(FN V(FN V(FN V(FN V(FN V(FN V(y ... , this is AND:

    DEF FN A(x,y)=(128 AND ... AND INT FN V(FN V(FN…
    Arda Arda December 2010 Sinclair Basic
  • inverting graphics using basic?just curious if it could be done by poking screen memory ? and what's the structure. (foreground / background for each char ? ) reason I ask is I'd …

    ... bit long funciton):

    DEF FN O(x,y)=(128 AND ... AND INT (FN V(FN V(FN V(FN V(FN V(FN V(FN V(x ... ) OR INT FN V(FN V(FN V(FN V(FN V(FN V(FN V(y ... , this is AND:

    DEF FN A(x,y)=(128 AND ... AND INT FN V(FN V(FN
    bigjon bigjon December 2010 Sinclair Basic
  • inverting graphics using basic?just curious if it could be done by poking screen memory ? and what's the structure. (foreground / background for each char ? ) reason I ask is I'd …

    ... bit long funciton):

    DEF FN O(x,y)=....

    FN, but how, can please somebody ... are depend on another function (FN V) and that is dependant ... itself on yet another function (FN T from memory)!
    BloodBaz BloodBaz December 2010 Sinclair Basic
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... in the IDE
    [*][B]DEF FN [/B]does not work - causes ... runtime

    [B]100 DEF FN a(x,y,p$)=CODE ... TO y)
    110 PRINT FN a(3,4,"Paddy")
    Paddy Coleman Paddy Coleman January 2011 Sinclair Basic
  • 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…

    ... area used by user-defined FN evaluations. I'd often used ... first I tried using a DEF FN to assign the display file ... I could use LET s$=FN s$(), but I got nowhere ... was using a user-defined FN by POKEing DEFADD with an ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • 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…

    ...
    10 DIM s$(length): DEF FN p(a)=PEEK a+256 ... +1):
    DEF FN l(v)=v-256*FN h(v): DEF FN h(v ... )=INT (v/256):
    LET udg=FN ...
    chev chev April 2011 Sinclair Basic
  • 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…

    ... uses this technique with a DEF FN to handle copies from string ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • 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…

    ... .

    [code]
    10 DEF FN p(a)=PEEK a+256 ... +1):
    DEF FN l(v)=v-256*FN h(v): DEF FN h(v ... )=INT (v/256)
    20 DEF FN ... PEEK a>127):
    DEF FN m$(a$,a,b$,b ... $(b$,b,l,1)+")":
    DEF FN d$(a$,a,l,o ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... value:

    [code] 10 DEF FN D(o,n)=n-VAL ... /> For example [b]BEEP 1, FN D(4, C)[/b] would ...
    chev chev April 2011 Sinclair Basic
  • 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…

    ... .

    [code]
    2 DEF FN p(a)=PEEK a+256 ... +1):
    DEF FN l(v)=v-256*FN h(v): DEF FN h(v ... )=INT (v/256):
    DEF FN d ... a>127)
    3 DEF FN m$(a$,a,b$,b ... ,INT(l/256),1)+")":
    DEF FN d$(a$,a,b,l ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • That thing on ZX_Beccy's shelfI am sure I am not the only one who thinks ZX_Beccy has the most amazing Sinclair collection but has anyone else been curious about that white spectr…

    [QUOTE=murtceps;534043]there's also two < Symbols and two > Where = ended up.[/QUOTE]

    Also, no CIRCLE, DRAW, DEF FN, FN, OPEN#, CLOSE#, CAT, MOVE, ERASE, FORMAT :)
    memrah memrah May 2011 Chit chat
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... =Paddy Coleman;507897]
    [*][B]DEF FN [/B]does not work - causes ...
    Arda Arda May 2011 Sinclair Basic
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... questions...

    1) ([B]DEF FN[/B]) I am using version ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • Storing and displaying attributes...Hi Folks, I have a requirement to store and then redisplay a line of attributes from the screen. For example: 100 DIM a$(1,32) 110 LET line=10 120…

    ... delimiter character for a DEF FN definition, telling the FN variable search routine ...
    Battle Bunny Battle Bunny June 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…

    1 def fn b$(d)=val$ (("str$ d" and d1))
    Dr BEEP Dr BEEP June 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 ...
    Dr BEEP Dr BEEP June 2011 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…

    ... $[/B]
    [code]
    1 def fn b$(d)=val$ (("str$ d ...

    [code]
    1 DEF FN b$(d)=VAL$ ((CHR$ 19 ...
    Dr BEEP Dr BEEP June 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…

    [code]
    1 DEF FN b$(d)=VAL$ ((CHR$ 19
    3+"d" AND d1))
    [/code]
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
<1…78910111213…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