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…15161718192021…34>
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... the start and which of DEF FN or an Array is best ...
    dmsmith dmsmith December 2013 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... GOSUB than it is a DEF FN on the same line. This ... line, whereas to find a DEF FN it has to search through ... SUB routine rather than a DEF FN.

    Oh, and to ... /> 2 LET t1=FN t(): LET t2=FN t(): LET t0=t1 ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... , slower than the equivalent expanded DEF FN, and always use more memory ... possible to expand a recursive DEF FN (eg. if the terminating ... lost in having a longer DEF FN statement in the BASIC, so ... which describes how to calculate DEF FN memory usage. There's a ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... .

    Line 5090, DEF FN j(x,i)=INT x ... the definition; eg:
    DEF FN j(x,b)=INT x ... br />
    Line 5070, DEF FN b(x,i)=INT(x ... DEF FN accordingly, so FN b() usage becomes; eg:
    instead of:
    DEF FN ... br /> changed to:
    DEF FN b(x,i)=INT(x ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • Graphics questionHello. I was wondering, does anybody here know of a method to display a large (as in, the better part of the screen) bitmap/raster image using ZX Sp…

    ... ]
    [*]Declare it:
    mmmm DEF FN a$(a$)=""
    [*]Locate it ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • Graphics questionHello. I was wondering, does anybody here know of a method to display a large (as in, the better part of the screen) bitmap/raster image using ZX Sp…

    ... second.
    [code]
    3 DEF FN a$(a$,s$)="": CLEAR 65535 ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... turn for processing via a DEF FN string parameter.

    I ...
    Battle Bunny Battle Bunny January 2014 Sinclair Basic
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    ... turn for processing via a DEF FN string parameter.

    I ... seemed like putting all the DEF FNs at the very start ...
    dmsmith dmsmith January 2014 Sinclair Basic
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... DEF FN x(x,y,d)=FN a(x,y,FN r(d)):
    DEF FN ... DEF FN y(x,y,d)=FN b(x,y,FN r(d)):
    DEF FN ... /> 5 DEF FN r(d)=d/180*PI
    6 DEF FN d(r ... TO 3:
    LET a1=FN x(a(a,1),a ... (a,2),t): LET a2=FN y(a(a,1),a ...
    Battle Bunny Battle Bunny January 2014 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... DEF FN x(x,y,d)=FN a(x,y,FN r(d)):
    DEF FN ... DEF FN y(x,y,d)=FN b(x,y,FN r(d)):
    DEF FN ... /> 5 DEF FN r(d)=d/180*PI
    6 DEF FN d(r ... TO 4:
    LET a1=FN x(p(a,b,1 ... ,b,2),t): LET a2=FN y(p(a,b,1 ...
    Battle Bunny Battle Bunny January 2014 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... be precise. Change FN b to:
    [center]DEF FN b(b)=b ... instead of crashing the program. FN a needs a similar change.
    Battle Bunny Battle Bunny January 2014 Development
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... #", "CLS", "CONTINUE",
    "COPY", "DATA", "DEF FN", "DIM", "DRAW", "ERASE", "FLASH", "FORMAT ... ", "ATTR", "CHR$", "CODE", "COS", "EXP", "FN", "INKEY$", "INT",
    "IN", "LEN ...
    Kweepa Kweepa January 2014 Development
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... on RETURN

    llll DEF FN b(a,b,c,d ... /256)
    ....
    GO SUB FN b(val1,val2,opcode,bits ...
    Battle Bunny Battle Bunny January 2014 Development
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... #", "CLS", "CONTINUE",
    "COPY", "DATA", "DEF FN", "DIM", "DRAW", "ERASE", "FLASH", "FORMAT ... ", "ATTR", "CHR$", "CODE", "COS", "EXP", "FN", "INKEY$", "INT",
    "IN", "LEN ...
    Kweepa Kweepa January 2014 Development
  • hash function permutation tableI'm using a simple Pearson hash function to generate keys for a $(103,6) array using a 256-byte permutation table. How do I arrange the entries in th…

    ... "k$()" DATA k$()
    4 DEF FN b(a,b,c,d ... i
    220 GO SUB FN b(zh,63,1,12 ... i
    320 GO SUB FN b(zh,63,1,12 ... perf_hash
    410 GO SUB FN b(0,k,-1,0 ... =zh
    420 GO SUB FN b(37,k,-1,0 ...
    Battle Bunny Battle Bunny January 2014 Development
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... of the BASIC:

    DEF FN p(a)=PEEK a+256 ... *PEEK (a+1): PRINT FN p(23627)-FN p(23635)

    Battle Bunny Battle Bunny January 2014 Development
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... of the BASIC:

    DEF FN p(a)=PEEK a+256 ... *PEEK (a+1): PRINT FN p(23627)-FN p(23635)

    Speccy_James Speccy_James January 2014 Development
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... get a "FN without DEF" error, so:
    [code] 3 DEF FN p(a ... +1)
    ...
    PRINT FN p(23627)-FN p(23635)[/code]
    FN as I use it so ...
    Battle Bunny Battle Bunny January 2014 Development
  • Turbo save?I'm doing some experiments with turbo loaders, and I don't know how to save turbo blocks on virtual tapes. Spectaculator and fuse don't seem to save…

    ... routine is called via [b]DEF FN A(A,B,C)=USR ... 65170[/b]. When using FN, A is 0 to save ...
    Zup Zup January 2014 Emulators
  • Turbo save?I'm doing some experiments with turbo loaders, and I don't know how to save turbo blocks on virtual tapes. Spectaculator and fuse don't seem to save…

    ... for that - the combination of DEF FN and Spanish is too much ...
    leespoons leespoons January 2014 Emulators
  • Turbo save?I'm doing some experiments with turbo loaders, and I don't know how to save turbo blocks on virtual tapes. Spectaculator and fuse don't seem to save…

    ... :
    - I don't use DEF FN to load. Instead, I load ...
    Zup Zup January 2014 Emulators
  • Exploding routineI've been mucking about with 'Explode' from YS Program Pitstop, but I can not get it to work independently of the basic program. LET L=USR 61456 doe…

    ... defined as:
    [code]10 DEF FN e(a,b,c,d ...
    mcleod_ideafix mcleod_ideafix January 2014 Development
  • INPUT help?Hi folks. :) Brace yourselves, this is probably a very silly question, my BASIC knowledge is very... well, basic... Let's say, for example, I'm mak…

    The simplest way to restrict the size of a numeric field is ...
    [code]
    4 DIM a$(4)
    5 INPUT a$
    6 LET a=VAL a$
    [/code]
    ... which will restrict the output length to 4 without any explicit checking, but will fail if ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... the string definitions in the "DEF FN a(a$,b$)=0" statement ... br /> [*]Line 2 locates the "DEF FN a(a$,b$)=0" statement ... />
    [code]
    1 [b]DEF FN a(a$,b$)=0:[/b ... : LET lo=22528:
    DEF FN b(s)=s+INT (RND ... *3)*256: [b]DEF FN p(a)=PEEK a+256 ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... /> [code]
    101 [b]DEF FN a(a$,b$,u,v ... 768: LET lo=22528:
    DEF FN b(s)=s+INT (RND ... *3)*256: [b]DEF FN p(a)=PEEK a+256 ... b]RESTORE 101: LET da=FN p(23639)+8[/b]
    115 GO SUB FN a(a$,b$,da+6 ... 120:
    125 GO SUB FN a(a$,b$,da+4 ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • that "listing variables during runtime" thingWell, I did eventually finish this, but with my meds playing up I don't have much time each day that I can spend at the computer, so it's taken rathe…

    ... /> 9900 RESTORE 9992: RANDOMIZE USR (FN p(23639)+6):
    RESTORE ... br /> RESTORE 9991: LET s1=FN p(23639)+6:
    DATA ... o,"Name ";o$: LET o=FN i(o,2,7): GO ... br /> FOR i=FN p(s1) TO FN p(s1+2)-2 ... br /> LET i=i+2+FN p(i+1): PRINT "$" AND ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • From RAM to dim v$() "video buffer" SPEED UP!Hi! This question is related to "quick RAM copy using LET in Basic" ([url]http://www.worldofspectrum.org/forums/showthread.php?t=44296[/url]). Wel…

    ... .
    [code] 11 DEF FN a(a$)=0: DEF FN p(a)=PEEK a ... v$(20*32): LET da=FN p(23639)+8
    13 ... RANDOMIZE FN a("a"(1)): LET pa ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
<1…15161718192021…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

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