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.005s
<1…78910111213…34>
  • 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
  • Saving and Loading from tape in MC?I'm actually having problems with saving and loading from the ROM routines for the interpreter... I'm currently using the following codes for saving…

    ... :

    [code]
    4 DEF FN p(a)=PEEK a+256 ... ):
    DEF FN g(v)=v-FN h(v)*256:
    DEF FN h(v ... =FN p(FN p(errsp)): LET sp=FN p(errsp):
    POKE sp,FN ... errsp THEN
    LET sp=FN p(errsp):
    POKE sp ...
    Battle Bunny Battle Bunny July 2011 Development
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... ?
    I dont mean the DEF FN placing in LINE 0 here ... one, put the most used DEF FN ahead.
    Further, longer variable ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... DEF FN a()=FN r(1+INT (RND*49)):
    DEF FN r(x)=VAL (("FN ... 6
    80 LET a(FN a())=n
    110 NEXT ...
    Battle Bunny Battle Bunny July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... DEF FN a()=FN r(1+INT (RND*n)):
    DEF FN r(x)=VAL (("FN ... -1
    80 LET a(FN a())=50-n
    110 ...
    loonix loonix July 2011 Sinclair Basic
  • automatic relocating of non-relocatable codeI was pondering upon the problem of changing absolute addresses used by CALL, JP, etc. when code is moved, without reassembling at the new location; …

    ... my former method of using DEF FN. The changes are that I ...
    Battle Bunny Battle Bunny August 2011 Development
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... this:
    [code]
    1 DEF FN b$(b)="00000000"(TO 8 ... LEN STR$ FN b(b))+STR$ FN b(b):
    DEF FN b(b ... )=VAL (("b-INT (b/2)*2+10*FN b ... b))
    10 LET b$=FN b(USR main)
    [/ ... I tried merging the two DEF FNs into one, but that ...
    Battle Bunny Battle Bunny September 2011 Development
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... />
    [CODE]
    DEF FN b$(b,u)=("" AND USR ... string "0000000000000000" inside the DEF FN, so if you change ...
    [CODE]
    3 DEF FN b$(b,u)=("" AND USR ... 7 DEF FN h(h$)=16*FN n(h$(1))+FN n(h ... its starting address using the DEF FN x(a$).

    mattsteel mattsteel September 2011 Sinclair Basic
  • 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. …

    ... a string variable

    DEF FN x(x$)=PEEK (4+PEEK ...
    mattsteel mattsteel September 2011 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

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…
  • Campaign for free to air High Def TV on FreeviewThe government are on the verge of selling the analogue tv bandwidth ( if thats what its called ? ) to mobile phone companies, but the decision hasn'…
  • Happy birthday def chris!!Merry birthday... get s***faced!! :smile:

Related Searches

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

Copyright © 2024 World of Spectrum