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…16171819202122…34>
  • 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…

    ... /> 1000 LET t1=FN t(): LET t2=FN t(): LET t0=t1 ...
    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…

    ... /> 1000 LET t1=FN t(): LET t2=FN t(): LET t0=t1 ...
    Hark0 Hark0 March 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…

    ... 0: CLEAR 59999
    3 DEF FN p(a)=PEEK a+256 ... (a+1): DEF FN l(v)=v-256*FN h(v): DEF FN h(v ... )=INT (v/256)
    4 DEF FN ... q(a$,b$,l)=5: RESTORE 4: LET fnq=FN p ... /> Maybe BAS2TAP don't interprete "FN p(a+3)"...

    Hark0 Hark0 March 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…

    ... strings (eg. in a recursive DEF FN), use TXT2Emu's "{..}" codes; eg ... }; UDG A = {90} (or {A}); FN = {A8}.
    Battle Bunny Battle Bunny March 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…

    [QUOTE=Crisis;759807]put the DEF FN of line 2 at start ...
    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…

    ... DEF FN p(a)=PEEK a+256*PEEK (a+1):
    DEF FN v()=FN ... AND (PEEK FN v()193 OR FN p(FN v()+4)1900 ... OR marg> PEEK (FN v()+9))):
    LET ... OR tabs> PEEK (FN v()+11))):
    RANDOMIZE marg ... tabs=USR (FN p(FN v()+6)-(63600-(FN v()+6)))):
    Battle Bunny Battle Bunny April 2014 Sinclair Basic
  • DIM and FOR, NEXT loopHi there. I'm making a program with 100 items on screen using dim and a for next loop. The thing is, each time I want to manipulate the items I do an…

    ... for: GO SUB, GO TO, DEF FN, RESTORE, FOR. It's particularly ... critical for DEF FN as every statement on every ...
    Battle Bunny Battle Bunny May 2014 Sinclair Basic
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    ... define a MOD function with DEF FN. I think there's an ...
    chev chev June 2014 Sinclair Basic
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    ... hook up a couple of DEF FN statements to some machine code ...
    chev chev June 2014 Sinclair Basic
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    ... hook up a couple of DEF FN statements to some machine code ... like this:
    GO SUB FN b(val1,val2,opcode,bits ... with PRINT USR rather than DEF FN. (Looking at them again, I ...
    Battle Bunny Battle Bunny June 2014 Sinclair Basic
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    Try this optimised multi-coloured border-checked wraparound example:
    [code]
    3 BORDER 1: PAPER 5: CLS: PAPER 7:
    FOR y=1 TO 20: PRINT AT y,1;TAB 31: NEXT y
    10 LET X=10: LET Y=10: DIM i$(1): LET w=x: LET z=y:
    LET a ...
    Battle Bunny Battle Bunny June 2014 Sinclair Basic
  • Basic program malfunctionHello. Please does anyone know why this basic program 10 LET x=0 20 LET x=x+0.1 30 print x 40 if x<>1 then goto 20 50 STOP does not properly work o…

    ... called by the same method - "DEF FN p$(n,l,r)=STR ...
    Battle Bunny Battle Bunny June 2014 Sinclair Basic
  • Basic program malfunctionHello. Please does anyone know why this basic program 10 LET x=0 20 LET x=x+0.1 30 print x 40 if x<>1 then goto 20 50 STOP does not properly work o…

    ... DIM n$(3,15):
    DEF FN w(w$,o$)
    =VAL ... )+("(w$(1)=o$)")):
    DEF FN r()=(n(3)-n(1 ... (3) OR STR$ FN r()STR$ INT FN r()
    THEN ... STR$ n(a): LET ap=FN w(a$,"."):
    LET ... a$=n$(a): LET ap=FN w(a$,"."):
    LET ...
    Battle Bunny Battle Bunny June 2014 Sinclair Basic
  • Block RoutineHi Folks, I want to draw a block on the screen dependent on providing the X,Y,W,H values. I came up with the following: [CODE]100 LET l$=" …

    ... BasinC:

    [CODE]1 DEF FN a(x,y,h,v ... 0
    25 LET i=FN a(5,5,20,15 ...
    Paddy Coleman Paddy Coleman July 2014 Sinclair Basic
  • Block RoutineHi Folks, I want to draw a block on the screen dependent on providing the X,Y,W,H values. I came up with the following: [CODE]100 LET l$=" …

    ... /> [code]
    100 CLEAR 62999: DEF FN b(x,y,w,h ...
    Battle Bunny Battle Bunny July 2014 Sinclair Basic
  • analysing program variable usageIf I wanted to count the number of times each variable is referenced while a program is running (not the number of times each variable is referenced …

    ... 9999).
    [code]
    3 DEF FN p(a)=PEEK a+256 ... =k0
    1730 LET er=FN p(es)
    1740 LET ... SAVE "InitVARS" CODE FN p(23627),FN p(23641)-FN p(23627)
    LOAD "InitVARS" CODE FN p(23627):
    DEF FN p(a)=PEEK a ...
    Battle Bunny Battle Bunny August 2014 Sinclair Basic
  • 1st interface in 30 years (update)Hi all, Just a wee update to my "1st ZX interface in 30 years" project. Main IC's: 82C55 three 8-bit port I/O (configured for 12 dig in, 12 dig out…

    ... re-write.....and ironically thats DEF FN which runs the m/code ...
    IanJ IanJ August 2014 Hardware
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... Generation 1.
    [code] 3 DEF FN p(a)=PEEK a+256 ... ): CLEAR 32767:
    LET cd=FN p(23730)+1: REM LOAD ... /> 5 LET InitG=FN p(cd): LET InitP=FN p(cd+2 ... ):
    LET GenPG=FN p(cd+4): LET InitS ... =FN p(cd+6)
    10 ...
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... ]

    [code]
    3 DEF FN p(a)=PEEK a+256 ... ): CLEAR 32767:
    LET cd=FN p(23730)+1: REM LOAD ... /> 5 LET InitG=FN p(cd): LET InitP=FN p(cd+2 ... ):
    LET GenPG=FN p(cd+4): LET InitS ... =FN p(cd+6)
    11 ...
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
  • Experimenting with turboloadersHello, My first post, having lurked here for a while. I'm a lifelong computer nerd, Spectrum fan since childhood in the eighties, and have recently…

    ... , one does

    1 DEF FN l(x,y)=USR 60000 ... a block with, say, RANDOMIZE FN l(16384, 6912)

            ;; definition like FN l(x,y).  The first ...
    stephenw32768 stephenw32768 May 2015 Development
  • Double height text...<p>Is here any good routines for printing a font double height?</p><p>I've concocted this ridiculous routine but I'm sure it can be done much better.…

    ... 't work either.)

    ;DEF FN d(d$,r,c)=USR ... DoubleHeight
    ;LET bc=FN d(d$,r,c): REM ...
    Battle Bunny Battle Bunny June 2015 Development
  • Double height text...<p>Is here any good routines for printing a font double height?</p><p>I've concocted this ridiculous routine but I'm sure it can be done much better.…

    ... font to Courier.)

    ;DEF FN d(d$,r,c)=USR ... DoubleHeight
    ;LET bc=FN d(d$,r,c): REM ...
    Battle Bunny Battle Bunny June 2015 Development
  • BASIC to Python - bringing a modern view on an 80's obsession...Howdy! I don't know how relevant this will be here, but I've just finished up a 3-part overview on my blog where I convert an old 1K ZX81 basic pr…

    ... probably easier with functions (GOSUB/DEF FN) than BASIC.

    As ...
    Timmy Timmy July 2015 Sinclair Miscellaneous
  • 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. By the time, the WoS f…

    ... ]

    which fixes the DEF FN issue where the program fails ...
    dbolli dbolli August 2015 Sinclair Basic
  • DEFFNder: a small library of BASIC functions written in Z80I've published a small library of 15 Sinclair BASIC functions written in Z80. I wrote it last year for a project of mine. Some of them are generic, s…

    ... />
    A couple of the DEF FN example calls in the documentation ...
    dbolli dbolli August 2015 Sinclair Basic
  • DEFFNder: a small library of BASIC functions written in Z80I've published a small library of 15 Sinclair BASIC functions written in Z80. I wrote it last year for a project of mine. Some of them are generic, s…

    ... "]
    A couple of the DEF FN example calls in the documentation ... :

    [code]
    10 DEF FN f(h$,k)="" USR lookup16 ... :

    [code]
    10 DEF FN f(h$,k)=USR lookup16 ...
    programandala.net programandala.net August 2015 Sinclair Basic
<1…16171819202122…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