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.015s
<1…10111213141516…34>
  • Increasing the number of UDGs...Hi Folks, I know by default the Spectrum can have 21 UDGs (48K) and 19 (128K) and that the address of the bit patterns is pointed to by the UDG syst…

    ... />
    [code]
    2 DEF FN p(a)=PEEK a+256 ... ):
    DEF FN g(v)=v-FN h(v)*256: DEF FN h(v ... /> POKE 23675,FN g(UDG): POKE 23676,FN h(UDG):
    LET CHANS=FN p(23631): REM Start ... =UDG-100: POKE Sout,FN g(UDG256): POKE Sout+ ...
    Battle Bunny Battle Bunny March 2012 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…

    ... blank.
    [code]
    100 DEF FN b$(n,b$)
    =("0 ... LEN b$)
    +VAL$ (("FN b$("+STR$ INT (n/2 ... as just 1E+9 but FN b$(999999999,"") prints the ... I need is a recursive DEF FN visualisation utility, which can take ... to fix a broken DEF FN.
    Battle Bunny Battle Bunny March 2012 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…

    ... I need is a recursive DEF FN visualisation utility, which can take ... would be evaluated by the FN call as in the second ... easier to fix a broken DEF FN.[/QUOTE]
    Wouldn't it ... and generate an eye-bleeding DEF FN from it.
    JamesW JamesW March 2012 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…

    ... , then stick the DEF FN in the middle, replace the "DEF FN...=" with PRINT ... be handy for debugging recursive DEF FNs.
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • LZ77 en/decodingI've written an LZ77 en/decoding routine as I couldn't find one around for the Spectrum. Initially I'm just doing it in BASIC to get the logic right.…

    ... ?

    [code]
    1 DEF FN m(n,m)=n-INT ... +1)
    60 LET k=FN m(k+s,mod)
    Battle Bunny Battle Bunny March 2012 Development
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    If:
    DEF FN n()=PEEK 23621+256*PEEK ... as simply:
    GO TO FN n()
    so it'll ... !

    And if:
    DEF FN n(k$)=PEEK 23621+256 ... as simply:
    GO TO FN n(keychar)
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... =Battle Bunny;618825]If:
    DEF FN n()=PEEK 23621+256*PEEK ... as simply:
    GO TO FN n()
    so it'll ... !

    And if:
    DEF FN n(k$)=PEEK 23621+256 ... as simply:
    GO TO FN n(keychar)[/QUOTE]

    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... ve just tried this little DEF FN test in BASin and it ... works:
    [code]
    30 DEF FN p(a)=PEEK a+256 ... "a"):
    [code]
    10 DEF FN p(a)=PEEK a+256 ... (a+1)
    12 DEF FN n()=FN p(23621)+(INKEY$="a")
    Is it just complex DEF FNs which don't work?
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... long since I used a FN in BASin that even I ... fails:

    [CODE]100 DEF FN a(x,y,p$)=CODE ... TO y)
    110 PRINT FN a(3,4,"Paddy")
    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... try:
    [code]
    100 DEF FN a(x,p$)=CODE p ... $(x)
    110 PRINT FN a(3,"Paddy")
    [/code ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... try:
    [code]
    100 DEF FN a(x,p$)=CODE p ... $(x)
    110 PRINT FN a(3,"Paddy")
    [/code ...
    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... as GO TO, GO SUB, DEF FN (I think that's all ... beforehand then a self-contained FN would work, but it would ... of LETs prior to every FN call isn't very pretty ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    Probably something simple causing the issue I suspect - often these things are. I will just have to live without DEF FN. :-(

    Paddy
    Paddy Coleman Paddy Coleman April 2012 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 ...
    Dunny Dunny April 2012 Emulators
  • 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 …

    I thought you were working on basin, dunny :)

    by the way, what's wrong with def fn in basin, can you give me an example code which doesn't work, so I can see what's wrong with it.
    Arda Arda April 2012 Emulators
  • 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 …

    Any DEF FN which has parameters works in ... in v.15; eg:
    DEF FN p(a)=PEEK a+256 ... after passing syntax, so every DEF FN gets treated as having no ...
    Battle Bunny Battle Bunny April 2012 Emulators
  • 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 …

    [QUOTE=Battle Bunny;619146]Any DEF FN which has parameters works in ... after passing syntax, so every DEF FN gets treated as having no ... .

    By the way, DEF FN bug was caused by the ... cannot find $CE (which is DEF FN) in the string sometimes). Now ...
    Arda Arda April 2012 Emulators
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... just have to live without DEF FN. :-(

    Paddy[/QUOTE]
    def fn too)
    Arda Arda April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... the way, this hopefully fixes def fn too)[/QUOTE]

    Sorry ... /> Well done, thank you. Getting DEF FN and the font size fix ...
    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • Starting to panic - where is my new version of BASin?Hi Folks, Feeling very happy so far today - I have a new version of ZXDS to play with plus I have taken advantage of Jonathan's very generous offer …

    ... earlier thread, which fixes the DEF FN bug plus adds a bunch ...
    Battle Bunny Battle Bunny April 2012 Emulators
  • Starting to panic - where is my new version of BASin?Hi Folks, Feeling very happy so far today - I have a new version of ZXDS to play with plus I have taken advantage of Jonathan's very generous offer …

    ... earlier thread, which fixes the DEF FN bug plus adds a bunch ...
    Paddy Coleman Paddy Coleman April 2012 Emulators
  • +3 DOS questionHey all, Is it possible to catalogue a +3 disk to a variable somehow from BASIC? I'm looking at extending my Snapshot to Microdrive utility, so it s…

    ... s$().
    [code]
    2 DEF FN p(a)=PEEK a+256 ... 23740,15:
    LET k1=FN p(23643): CAT : LET k2 ... =FN p(23643):
    POKE 23739, ... flexibly addressed as "FN p(23631)+5" & "FN p(23631)+6 ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • +3 DOS questionHey all, Is it possible to catalogue a +3 disk to a variable somehow from BASIC? I'm looking at extending my Snapshot to Microdrive utility, so it s…

    ... :

    [code]
    2 DEF FN p(a)=PEEK a+256 ... 23740,15:
    LET k1=FN p(23643): CAT : LET k2 ... =FN p(23643):
    POKE 23739, ...
    Battle Bunny Battle Bunny April 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…

    ... your USR call in a DEF FN and calling it with a ... documented.
    [code]
    10 DEF FN a(s$)=USR 4e4
    30 RANDOMIZE FN a(s$)
    [/code]
    BloodBaz BloodBaz April 2012 Sinclair Basic
  • Turn UDG to Attrribute blocksI'm trying to enlarge my UDG's to 8 x 8 character blocks per pixel, but struggling, is there any subroutine/program for enlarging UDG's x 8?

    ... /> 2 LET udg=FN p(23675):
    DEF FN p(a)=PEEK a ... +256*PEEK (a+1): DEF FN a(a)=a-INT (a ... pat=PEEK 23693: LET pin=FN a(pat):
    LET pap ... =FN a(INT (pat/8)): LET ...
    Battle Bunny Battle Bunny May 2012 Development
  • Store and restore attribute valuesI am needing ideas on how to write a machine code routine that will store/restore (more important to restore) attribute values to the 22528 area. I …

    ... /> POKE 23660,FN g(dd): POKE 23661,FN h(dd)
    ----- BASIC version
    DEF FN p(a)=PEEK a+256 ... br /> DEF FN g(v)=v-FN h(v)*256: DEF FN h(v ... POKE 23563,FN g(dd): POKE 23564,FN h(dd):
    FN g(attadd),FN h(attadd),0,2 ...
    Battle Bunny Battle Bunny May 2012 Development
  • BREAK from GOSUBHere's another one. Just in case you wanted to break out of multiple GOSUB levels with a single command, here's a routine to do it, tested on all mod…

    ... /> [code]
    ...0 DEF FN c()=FN p(23621): DEF FN p(a)=PEEK a ... +1):
    DEF FN g(v)=v-FN h(v)*256: DEF FN h(v ... line & statement in a DEF FN; eg. if the redirection subroutine ... & statement numbers in the DEF FN space from where the subroutine ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • How much space does a number take?Hi Folks, Could someone please remind me how much memory a number takes up in a BASIC listing. For example, if you had: [CODE]100 LET a=3000[/CODE…

    Here's a little program to list the length (excluding the 4-byte header and the trailing ENTER) of each BASIC line in the selected range.
    [code]
    9990 DEF FN p(a)=256*PEEK ABS a+256*PEEK (ABS a+1)-255*PEEK (ABS a+(a
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • How much space does a number take?Hi Folks, Could someone please remind me how much memory a number takes up in a BASIC listing. For example, if you had: [CODE]100 LET a=3000[/CODE…

    [QUOTE=Battle Bunny;626817][code]9990 DEF FN p(a)=256*PEEK ABS a+256*PEEK (ABS a+1)-255*PEEK (ABS a+(a
    Einar Saukas Einar Saukas May 2012 Sinclair Basic
  • How much space does a number take?Hi Folks, Could someone please remind me how much memory a number takes up in a BASIC listing. For example, if you had: [CODE]100 LET a=3000[/CODE…

    Yes, I wasn't happy with all those ABS either, but I forgot to go back and reconsider the DEF FN once I'd finished the print loop.
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
<1…10111213141516…34>

Latest Posts

  • I am currently watching.....
    mel the bell on 5:54PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Luny on 5:14PM
  • Your Favorite Magazine Cover Tapes.
    dm_boozefreek on 4:45PM
  • "Late Entries"
    harriusherbartio on 4:00PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11

HitBox

Word Docs Hits
fuse 6.8K 11.8K
def 11.7K 12.9K
fn 866 4.4K
keyboard 14.1K 21.6K

Related Threads

  • ANNOUNCE: Fuse 0.6.1, libspectrum 0.2.0, fuse-utils 0.6.1I'm pleased to announce the release of the Free Unix Spectrum Emulator (Fuse) 0.6.1, which is now available from its [url="http://www.srcf.ucam.org/~…
  • Keyboard stickers for a DK'Tronics keyboardSee topic.<br /> I know sintech used to sell them, but I can't find them in their shop anymore.<br /> Anyone know another place where to get these pu…
  • 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…
  • Keyboard issue on Fuse for LinuxHi,<br /> <br /> My laptop has only one 'enter' key, though it seems it acts<br /> like it was the numeric pad enter key. So I can do nothing<br /> u…
  • 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 …
  • SAGA 1 Emporer keyboard ->swap-> dk' Tronics keyboardHi,<br /> <br /> Anyone here that would like to swap a SAGA 1 Emporer keyboard for a dk Tronics keyboard?<br /> Without the insides, just the keyboar…
  • 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 /> …

Related Searches

  • fuse onscreen keyboard
  • modulo function def fn
  • fuse 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

Copyright © 2024 World of Spectrum