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…567891011…34>
  • more on storing mazesPrompted by Wookiee's escapades, I've been pondering on how to use DATA statements directly for displaying background graphics, thus avoiding the dup…

    ... DATA "n"

    10 DEF FN p(a)=PEEK a+256 ... 1):
    DEF FN g(v)=v-256*FN h(v): DEF FN h(v ... )=INT (v/256)
    11 LET udg=FN p ... m: READ n$: LET datend=FN p(datadd):
    LET m ... />
    45 POKE defadd,FN g(udg): POKE defadd+1 ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Memory move routine?Hi Folks, I have been searching for the thread that covers the memory move routine that uses a$=b$ via DEF FN. I thought it was written by Battle B…

    ... that uses a$=b$ via DEF FN. I thought it was written ...
    Paddy Coleman Paddy Coleman February 2012 Sinclair Basic
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…

    ... be taken off again.
    * DEF FN m(s$)=USR mc: LET ... bc=FN m(s$): whereby mc can ... string details from within the DEF FN statement using the DEFADD pointer ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Screen2StringFurther to writing that BASIC one-liner to redirect CAT to a string I thought that I'd do a general redirection routine for anything which normally p…

    ... is essentially treated as a DEF FN parameter) it can only be ... /> 2 DEF FN p(a)=PEEK a+256*PEEK (a+1): DEF FN g ... (v)=v-FN h(v)*256: DEF FN h(v ... S",CODE "$",14,0,FN g(sa),FN h(sa),0,0 ... are redirected)
    DATA FN g(sa),FN h(sa):
    ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • saving time populating large arraysI use a variation on this idea for storing machine code at the end of programs without interfering with LIST, then it occurred to me that it would al…

    ... 0*1 = 1813
    2 DEF FN p(a)=PEEK a+256 ... br /> DEF FN g(v)=v-FN h(v)*256: DEF FN h(v ...
    12 LET vars=FN p(23627)-alen:
    POKE ... 23670,FN g(vars): POKE 23671,FN h(vars):
    FN g(vars): POKE 23671,FN h(vars):
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • handy method for passing m/c parametersI knew that a single number or string parameter could be passed to a m/c routine with either: [b]LET a=b+USR address[/b] puts b on the calculator st…

    ... be quicker than using a DEF/FN, as there's no need ... to search for the DEF every time, although it's ... ; string parameters, for which a DEF FN would be better.
    Battle Bunny Battle Bunny May 2013 Sinclair Basic
  • IZX: a new standard format and driver for ZX-Spectrum icons[B]IZX[/B] is a very compact and efficient standard format to create icons for the ZX-Spectrum. You can download it from here: [LIST] [*][URL="http:…

    ... "IZX icons"CODE
    20 DEF FN z(r,c,i)=USR ... this:

    [CODE]FLASH FN z(5, 8, 16)[/CODE ...
    Einar Saukas Einar Saukas July 2013 Brand new software
  • Full 16*16-digit BASIC multiplicationI liked Andre Adrian's 32-bit long multiplication routine so much that I decided to a decimal version. After all, 2^63 is only 9223372036854775808, a…

    ... [code]
    3 DEF FN R(r$)=RR: DEF FN p(a)=PEEK a ... +256*PEEK (a+1):
    DEF FN b$(r)="0000"(TO 4 ... $(G)+FN b$(K)+FN b$(H)+FN b$(L)+
    FN b$(V)+FN ... b$(X)+FN ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • dumping protected BASIC loadersI wrote this a few weeks ago but forgot to post it. It will load & list from tape/TAP/TZX any BASIC program which has been saved with SAVE, including…

    ... :

    [code]
    2 DEF FN p(a)=PEEK a+256 ... a: PRINT :
    LET ps=FN p(bytes+11): LET bs ... =FN p(bytes+15): LET vs= ... *PEEK a+PEEK (a+1);":";FN p(a+2); PAPER 7 ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • TAPlist - the emulator versionI've got this working reasonably well; there's just a couple of small extra features which I want to add. (Recall that TAPlist writes a formatted lis…

    ... of commands in the range DEF FN (206) to COPY (255) which ... additional indent (currently set for: DEF FN, LPRINT, DATA, REM, FOR, INPUT ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    ... 's certain functions such as DEF FN which won't convert....so ...
    IanJ IanJ August 2014 Sinclair Basic
  • SeBASIC Updated to version 3.2 by aowen...SeBASIC has just received an update!... Version 3.2 is now available, but it'll cost ya!... Its only $5 USD, and can be downloaded from here:…

    ...
    * Fixed a bug in DEF FN recursive functions (thanks to Miguel ... .
    * ZXC3 version excludes the DEF FN fix, and moves the cursor ...
    kgmcneil kgmcneil November 2016 Announcements
  • Random-Access to Microdrive FileI am working on a BASIC program to backup a microdrive text-file to standard tape array-file. To backup a text-file from one microdrive to a secon…

    ... />

    [code]
    1 DEF FN p(a)=256*PEEK (a ... : REM DPEEK(a)
    2 DEF FN m(n,d)=n-d ... br /> 3 DEF FN l(v)=v-256*FN h(v): DEF FN h(v ... 0
    1311 DATA FN l(buf),FN h(buf)
    ... 1312 DATA FN l(512),FN h(512)
    1313 ...
    mattsteel mattsteel May 2018 Sinclair Basic
  • Need the title of the Sinclair Basic manual to look for itI had a copy but I've lost the USB chip it was on! I need it to look up commands because some Basic programs I looked at all used the command MOD and…

    ... Applesoft Basic program that used DEF FN (A command I'm not ... for yourselves:-

    10 DEF FN M(N) = ((A / N) - INT ... LET O$ = ""
    40 IF FN M(3) = 0 THEN O ... $ = "FIZZ"
    50 IF FN M(5) = 0 THEN O ...
    mik3d3nch mik3d3nch January 2019 BASIC
  • converting decimal into binaryso like the opposite of the bin function. in basic if possible. it only needs to be an 8 bit number. like a dec$ function?

    so like the opposite of the bin function. in basic if possible. it only needs to be an 8 bit number. like a dec$ function?
    digital digital December 2020 Development
  • Compiling BasicI'm not good in compiling sinclair basic because i was 15 when i got my first spectrum, and it was the first computer i saw. I wasn't aware of compil…

    It might even be done with a recursive DEF FN. I need to think of the code however.

    Your program would be then

    instead LET A=VAL A$
    it will be LET A=FN V(A$)

    and a DEF FN V(A$)= .... in the begin of the prog.
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • Compiling BasicI'm not good in compiling sinclair basic because i was 15 when i got my first spectrum, and it was the first computer i saw. I wasn't aware of compil…

    ... be done with a recursive DEF FN. I need to think of ... (A$)

    and a DEF FN V(A$)= .... in the begin ...
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum. There was a command in speccy basic that would let you scroll a string variab…

    ... up from scratch by a DEF FN statement? Chaosmongers' solutions ... this:

    10 DEF FN r$(a$)=a$(2 TO ... a$(1)
    20 DEF FN l$(a$)=a$(LEN a ... br />
    Hence, FN r$("ABCDEFG") returns BCDEFGA.
    FN r$ or FN l$ repeatedly, printing ...
    The Mighty Dopethrone The Mighty Dopethrone December 2003 Games
  • VariablesVariable Help: Can BASIC discriminate between odd and even variables? If so, what simple syntax can express it?

    ... more versatile.

    10 DEF FN m(x,y) = x - INT ... />
    Example 1
    PRINT FN m (5, 1.4)

    Example 2
    PRINT FN m (5, -1.4)

    Example 3
    PRINT FN m (-5, 1.4)

    Example 4
    PRINT FN m (-5, -1.4)
    Geoff Geoff June 2004 Sinclair Basic
  • QuickBASICQuickBASIC Emulation: Is it possible to declare and pass global variables throughout a program along with confine a local variable to just a module-…

    ... .

    I used the DEF FN routine for it as stated ...
    Dr BEEP Dr BEEP June 2004 Sinclair Basic
<1…567891011…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
bin 3.7K 6.1K
function 4.3K 6.5K
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…
  • SpecBAS INT function vs Spectrum INT functionDunny's SpecOS (SpecBas) vs Normal Spectrum Basic.<br /> <br /> INT function<br /> <br /> The Spectrum rounds -ve INT values down (e.g. INT -2.2 = -3…
  • 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…
  • need helpw with speccy i found in a binToday what a find, walking past a wheely bin I saw an atari box, after more investigation I uncovered a wood panel atari and a speccy plus leads for…
  • 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…

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