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.012s
<1234567…34>
  • 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
  • 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
  • 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 …

    ... after each parameter in the DEF FN definition. There's code there ...
    Battle Bunny Battle Bunny April 2012 Emulators
  • 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
  • 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…

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

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

    and a DEF FN V(A$)= .... in the begin ...
    Dr BEEP Dr BEEP January 2003 Sinclair Basic
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... : POKE 23620,0

    [Dr. BEEP]

    ====================

    * General ... read them in a SCREEN$. [Dr. BEEP]
    * Alternatively if you want ...
    na_th_an na_th_an April 2005 Development
  • 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. …

    [QUOTE=Dr BEEP;171915]I would do it like this:
    [code]
    DEF FN h$(x) = "0123456789ABCDEF"(INT(x/16))+"0123456789ABCDEF"(x-16*INT (x/16))
    [/code][/QUOTE]
    Dr Beep, that is a very cool lateral solution, which even I understand! :-)
    48K 48K February 2007 Sinclair Basic
  • Game OptimisationBelow is a section of code Im using for movement enermy display and collision detect. What happens is that you move the sight with ,.qa and space do…

    [QUOTE=Dr BEEP;192968]The second respond isn' ... in Sinclair Basic:
    Define DEF FN in top, place GO SUB ... at the moment is the DEF FN part but apart from that ...
    Toxitalk Toxitalk May 2007 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... variable crosswind.

    Added DEF FN r() to read the keyboard ... to use a trick that Dr. BEEP showed me last month, which ...
    Digital Prawn Digital Prawn August 2007 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…

    ... in #591 which has the DEF FN removed. I agree it is ... still have the possibility of Dr. BEEP's 1 character saving from ...
    Digital Prawn Digital Prawn April 2008 Development
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    [QUOTE=Paddy Coleman;478487]Hi Dr. Beep,
    ...
    Yeah I know ... the time stuff in a DEF FN but for some reason they ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    [QUOTE=Dr BEEP;483699][code]
    1 let b$="hello"
    2 let v$="b$"
    3 let a$=VAL$ v$
    4 print a$
    [/code][/QUOTE]

    Very nice - scope for a [B]DEF FN[/B] there ?!
    jp jp October 2010 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; …

    ... a slightly altered version of Dr BEEP's "scanning" method for passing ... my former method of using DEF FN. The changes are that I ...
    Battle Bunny Battle Bunny August 2011 Development
  • 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…

    ... interesting

    [QUOTE=Dr BEEP;544274]1 def fn b$(d)=val$ (("str ... :

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

    ... I can't wait for Dr.Beep any longer.

    It ... the AEDCB form used by DEF FN and the calculator; the 14 ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    ... on some changes made by Dr BEEP on WOS. Note: as described ... code sets up a dummy DEF FN of a$:

    [CODE ... 29 ) Closing parenthesis for the DEF FN[/CODE]
    Next we need ...
    Paddy Coleman Paddy Coleman March 2012 Sinclair Basic
  • Screens and BasicA question about the ZX screens. I am using software to convert my own art and drawings to the ZX Spectrum. I have some tools to change .jpg files in…

    ... quick BASIC technique mentioned by Dr.BEEP for restoring SCREEN$, modified ... br /> DEF FN l(v)=v-FN h(v)*256: DEF FN h(v ... REM Calculate the location of DEF FN a$(a$) & initialise ... 23563 = DEFADD = address of DEF FN parameters
    31 RESTORE 30 ...
    Battle Bunny Battle Bunny February 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^…

    ... in as well.

    DEF FN p(n,e)=ABS n ... )

    Any resemblance to Dr BEEP's expression is purely coincidental.
    Battle Bunny Battle Bunny April 2013 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
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.…
  • Happy Birthday Dr BEEP!!!:) Happy birthday dude! :)<br /> <br /> Finally someone older than me :)
  • Question for Dr BeepHiya<br /> <br /> Have been playing your tune "CPU Explosion" today and I cant get the damn thing out of my head. Am sure that will pass with time, b…
  • 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…
  • Happy Birthday Dr. Beep!The big 4 0. Have a good one!
  • Yikert tikert beep tikert beepFor years now (the last two builds) my desktop computer's innards go Yikert tikert beep tikert beep on random occasions, , at night when I'm wokring …
  • Happy Birthday Dr BeepHappy Birthday Dr Beep...<br /> <br /> ...41 or 29H or 101001b today.
  • Happy Birthday Dr. Beep !!Happy Birthday Dr. Beep !<br /> <br /> Have a good day, have a beer: [_]p<br /> <br /> ... and keep on beeping those tunes!
  • 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…

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
  • 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
  • dr beep issues 191
  • dr beep read joystick
  • def fn recursive bin
  • dr beep def fn

Copyright © 2024 World of Spectrum