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.079s
<1234567…34>
  • those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…

    ... and (much later) I remembered Dr Beep's recursive DEF FN version, but in between I ... thought I'd write a DEF FN to do it ... and ... 's what I came up with:
    [code]
    100 DEF FN ... b$(n,s$)
    =s$+VAL$ (("FN b$(" + STR$ INT ...
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • 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…

    ... ?

    Using:

    DEF FN w(w$,o$,c)=VAL ... (("FN w(w$,o$,c+1)" ... />
    with:

    w$(FN w(w$,o$,1))
    FN w(w$,o$,1)*100).
    Battle Bunny Battle Bunny September 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…

    ... recursive definition i very very interesting

    [QUOTE=Dr BEEP;544274]1 def fn ... :

    2 DEF FN c$(d,b)=VAL$ (("FN z$(d)" AND ... d=b))
    5 DEF FN z$(d)=CHR$ (d+48 ... />
    :smile:

    And FN c$(45648,36) gives Z80 ...
    mattsteel mattsteel September 2011 Sinclair Basic
  • 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 …

    ... .pas : Procedure ProcessDEFFN"; as it's not inserting the 6-byte ... each parameter in the DEF FN definition. There's code there to do ... that, but it's not working for some reason ...
    Battle Bunny Battle Bunny April 2012 Emulators
  • 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…

    ... , Dr BEEP wrote:
    It might even be done with a recursive DEF FN. I ... (A$)

    and a DEF FN V(A$)= .... in the begin ...
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... in #591 which has the DEF FN removed. I agree it is ... still have the possibility of Dr. BEEP's 1 character saving from the ...
    Digital Prawn Digital Prawn April 2008 Development
  • 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; …

    ... [/post], and it's working fine. It's quite a relief not ... a slightly altered version of Dr BEEP's "scanning" method for passing USR ... my former method of using DEF FN. The changes are that I ... I pass the destination routine's address as the last argument ...
    Battle Bunny Battle Bunny August 2011 Development
  • Raising to the powerA curiosity of ZX Basic I found yesterday is that you can't do this: [code] 10 LET x=-3 20 LET y=x^2 [/code] While you can for example do LET y=-3^…

    ... way of explaining what guesser's already explained ...

    ... it?

    Here's an alternative function, which doesn ... s a lot easier to type in as well.

    DEF FN ... />
    Any resemblance to Dr BEEP's expression is purely coincidental.
    Battle Bunny Battle Bunny April 2013 Sinclair Basic
  • Raising to the powerA curiosity of ZX Basic I found yesterday is that you can't do this: [code] 10 LET x=-3 20 LET y=x^2 [/code] While you can for example do LET y=-3^…

    [QUOTE=Battle Bunny;694001]DEF FN p(n,e)=ABS n^e * (-1 OR INT (e/2)*2=e)

    Any resemblance to Dr BEEP's expression is purely coincidental.[/QUOTE]

    Yeah right, hide behind a disclaimer :p
    Dr BEEP Dr BEEP April 2013 Sinclair Basic
  • A film with MISTER BEEP's ZX Speccy music! :)Here can be found a film with MISTER BEEP's music made with ZX SPECTRUM! :) [url]http://www.youtube.com/watch?v=dw933RK-v6E[/url] It's really funny! …

    Here can be found a film with MISTER BEEP's music made with ZX SPECTRUM! :) [url]http://www.youtube.com/watch?v=dw933RK-v6E[/url]
    It's really funny! :)

    Best wishes,
    Beep
    [url]http://republika.pl/mister_beep/[/url]
    Mister Beep Mister Beep October 2006 Sinclair Miscellaneous
  • Dr Doom's Revengemaybe it's the "super hero game curse" that makes most of the super hero games suck...but when I read about Dr.Doom's Revenge I got really excited ab…

    maybe it's the "super hero game curse" ... ...but when I read about Dr.Doom's Revenge I got really ... , Captain America...both taking on Dr. DOOM!!! (although the Fantastic 4 ...
    VanTammen VanTammen October 2007 Games
  • 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…

    ... the function defined such as DEF FN g(x, y, p, q ...
    carlinski carlinski December 2007 Development
  • Happy Birthday Dr BeepHappy Birthday Dr Beep... ...41 or 29H or 101001b today.

    Happy Birthday Dr Beep...

    ...41 or 29H or 101001b today.
    rich_chandler rich_chandler December 2008 Chit chat
  • Happy Birthday Dr. Beep !!Happy Birthday Dr. Beep ! Have a good day, have a beer: [_]p ... and keep on beeping those tunes!

    Happy Birthday Dr. Beep !

    Have a good day, have a beer: [_]p

    ... and keep on beeping those tunes!
    Hercules Hercules December 2009 Chit chat
  • A Miscellany of Dangerous TipsHere's a selection of ideas for using some of the more obscure system variables which I've found handy on occasion. They can be very convenient if us…

    ... is from Toni Baker's book [url=ftp://ftp ... the one containing the DEF FN then it's been found.
    ... and, knowing where it's going back to enables where ... can be done as s simple DEF FN if required often, ... can be done as a recursive DEF FN.

    Finally, ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere. [code] 2 DEF FN t$(n,t,d) =STR$ INT (n/t)…

    ... nowhere.
    [code]
    2 DEF FN t$(n,t,d)
    +VAL$ (("FN t$("
    +STR$ (n-INT ...
    Battle Bunny Battle Bunny August 2013 Sinclair Basic
  • 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…

    ... after every parameter of a DEF FN.

    By the time ...
    programandala.net programandala.net August 2015 Sinclair Basic
  • BASIC Bug: DEF FN after REMHello all, 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 when call…

    ... BASIC was at locating the DEF FN when called upon.

    [code]
    10 DEF FN a()=10
    20 PRINT ... :
    [code]
    10 REM : DEF FN a()=10
    20 PRINT ... ROM routine that looks for DEF FN, DATA and (oddly) NEXT appears ...
    BloodBaz BloodBaz May 2022 BASIC
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... *((l=2-2*m(q+FN r(-1)))+(l=17-17 ... *m(q+FN r(1)))+(l=23-23 ... =l+4-4*m(q+FN r(1)*((l=17)-(l ... worth it to check if Dr BEEP's optimization suggested in #439 would ... here (in this case [B]FN r(1)[/B] would be ...
    Einar Saukas Einar Saukas March 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... l=2-2*m(q+FN r(-1)))+(l=17- ... 17*m(q+FN r(1)))+(l=23-23 ... l+4-4*m(q+FN r(1)*((l=17)-( ... /> [/QUOTE]

    That's excellent!

    It is ... worth it to check if Dr BEEP's optimization suggested in #439 would ... here (in this case [B]FN r(1)[/B] would be ...
    Digital Prawn Digital Prawn March 2008 Development
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    Here's a recursive DEF FN INSTR one-liner, cunningly contrived ... it in a separate function "FN c(c,o$)" didn't ... work. I thought that maybe "DEF FN c()=c+LEN o$-1 ... .

    [code]
    4 DEF FN i(w$,o$,c)=
    VAL (("FN i(w$,o$,c+1 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Any ideas on how to solve this equation?If I have three numbers 10:A:B where A & B are equal +ve integers <10, what formula could I apply to pairs of numbers (A,10) or (10,B) such that the …

    ... try and develop a single recursive DEF FN which could do the same ... .

    [code]
    DEF FN b(n,f,t)

    DEF FN n(n,f,t)=FN b(FN b(n,f ... that's not too bad, really. It uses two DEF FNs ... base 16, from which it's only a small step up ...
    Battle Bunny Battle Bunny September 2011 Development
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... barmy task of implementing Dr.Beep's idea of providing BASIC ... substantially reorganised so that recursive calls kept the operators ... EX1NUM", so that any recursive calls will build up a ... NEXTQ1: rst $20 ;step over "s
    cp $22
    ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…

    ... which works anyway, although it's not pretty. The b$ parameter ... is always "", as it's used as a base on ... blank.
    [code]
    100 DEF FN b$(n,b$)
    =("0 ... /> What I need is a recursive DEF FN visualisation utility, which can take ...
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • Confounded DEF FNCan anyone see why this is going wrong? I've been tinkering with it since tea time and got nowhere. [code] 2 DEF FN t$(n,t,d) =STR$ INT (n/t)…

    ... />
    To PS.
    The recursive DEF FN to format the time is ... that, when it's being evaluated, the FN uses an extra ... only way to stop a recursive string function.

    ... each time, so Andrew's original non-recursive DEF FN was written assuming that ...
    Battle Bunny Battle Bunny August 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…

    ... recursive DEF FNs are generally, often significantly, slower than the equivalent expanded DEF FN ... evaluated. It's not always possible to expand a recursive DEF FN (eg. if ... describes how to calculate DEF FN memory usage. There's a table of ...
    Battle Bunny Battle Bunny December 2013 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…

    ... listings; it uses the ROM's own routine for syntax checking ... and TXT2REMu truncates them. There's a detailed description in the ... ENTER". Use the emulator's Load Binary File option to ... strings (eg. in a recursive DEF FN), use TXT2Emu's "{..}" codes; eg. block ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
<1234567…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
dr 9.7K 11.2K
beep 10K 14.1K
s 331.4K 594.7K
recursive 215 281
def 11.7K 12.9K
fn 866 4.4K

Related Threads

  • Beep...Beep...Beep...Beep...Beep.That all my Dads PC does now when I switch it on. Seems to be coming from inside the computer, not the PC Speaker. All the rest is completely dead.…
  • 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…
  • What's the Speccy's equivalent of Atari's E.T.?E.T. has long been associated as one of the worst games - if not the worst game for the Atari 2600.<br /> <br /> I wondered, is there an equivalent f…
  • So that's what's in the Colonel's secret recipe!http://www.bbc.co.uk/news/uk-england-36126788
  • Less MIA -Puffy's Saga (1989)(MCM Software)[+3 Disk][re-release][aka Claude Sablatou's Puffy's Saga]Hi All :)<br /> for SPA2 guys :)<br /> in short :)<br /> <br /> inlay <br /> <br /> [img]http://forest.no-ip.org/wos/pu/inlay.jpg[/img]<br /> …
  • speccy v's comodore v's bbcThose old enough to remember the playground days when we each had our own little group speccy better than the comodore and the bbc users were all gee…
  • T H E . S H A W . B R O T H E R S . . . did you play on these games? . . . . *website online now*There's a Spectrum section on our site at [url="http://www.sickhappyidle.com"]http://www.sickhappyidle.com[/url] (click on the spectrum or go through…
  • T H E . B E S T . J O Y S T I C K . E V E RThe best joystick I ever had was the<br /> Emax Arcade Professional<br /> <br /> Big, BIG, massive thing just like the ones in the arcade...<br /> <b…
  • M.E.S.S.i've downloaded mess and none of the many emus work most have a no entry sign by them and the rest say unable to initialize machine emulation anyone …
  • Connecting a PC's VGA monitor to speccy's RGB...I've searched the entire web for this...<br /> can anyone help me? I want to talk with my speccy...

Related Searches

  • dr beep
  • modulo function def fn
  • fuse def fn keyboard
  • dr beep politician
  • def fn usr
  • def fn
  • def fn within a function
  • happened dr beep
  • def fn d
  • recursive fn
  • bin def fn
  • def fn recursive bug
  • def fn bug
  • in31 dr beep
  • dr beep joystick
  • dr beep joystick basic
  • dr beep joystick issues in
  • def fn recursive bin
  • dr beep def fn
  • recursive def fn

Copyright © 2024 World of Spectrum