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

    ... NOT PI: LET t1=FN t(): RANDOMIZE USR m(2):
    ... LET t2=FN t(): PRINT ' ... t2-t1:
    DEF FN p(a)=VAL "PEEK a ... y))/2:
    DEF FN u()=VAL "65536*PEEK 23674 ... 50:
    DEF FN t()=FN m(FN u(),FN u())
    [/code ...
    Battle Bunny Battle Bunny March 2012 Development
  • +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, ... )
    22 PAUSE 0: RANDOMIZE USR 5808: GO TO 21
    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…

    Placing your USR call in a DEF FN and calling it with a ... /> [code]
    10 DEF FN a(s$)=USR 4e4
    20 LET ... s$="Hello World"
    30 RANDOMIZE FN ...
    BloodBaz BloodBaz April 2012 Sinclair Basic
  • 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)
    USR pg

    org ... /> ----- BASIC version
    DEF FN p(a)=PEEK a+256 ... ): 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
  • Need to scroll one column using m.c.I've used many of the available routines to scroll the entire screen in any direction, but I'm not being able to find one that would allow me to scro…

    ... ]
    DEF FN l(c,t,b,a,p)=USR address
    ...
    LET bc=FN l(column ... yes/no. So "LET bc=FN l(column,0,21,0 ... /> 1 DEF FN l(c,t,b,a,p)=USR 23296:
    DEF FN r(a,z ...
    Battle Bunny Battle Bunny May 2012 Development
  • OpenSE BASIC 3.1.1The eagle-eyed will have noticed that [url="http://www.worldofspectrum.org/infoseekid.cgi?id=0027510"]SE BASIC[/url] got an update last week. As a te…

    ... errors both in numeric FN's and string FN's :)

    FN handling, but because the USR function doesn't ... that your implementation of the USR function didn't return the ...
    mcleod_ideafix mcleod_ideafix May 2012 Sinclair Basic
  • OpenSE BASIC 3.1.1The eagle-eyed will have noticed that [url="http://www.worldofspectrum.org/infoseekid.cgi?id=0027510"]SE BASIC[/url] got an update last week. As a te…

    ... errors both in numeric FN's and string FN's :)[/quote]
    FN handling, but because the USR function doesn't ... that your implementation of the USR function didn't return the ...
    chev chev May 2012 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... reduced to simply: "IF i6+USR valkey THEN ... [OK]"

    [code]
    100 DEF FN i(x,y,l,t ... table..."
    ....
    GO SUB FN a(xcoord,ycoord,length,type ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... FUNCtion like DEF FN A(p1,p2,p3)=usr start
    and ... then the lines under the DEF FN ... the procedure like a RANDOMIZE FN A(1,2,3)
    Dr BEEP Dr BEEP May 2012 Sinclair Basic
  • Switching 48/128 modes within a BASIC programI'm not sure what use this would be; ie. being able to switch between 48k and 128k modes and back again from within a continuously running BASIC prog…

    ... /> [code]
    2 DEF FN m(v)=v-(-1+(256 ... IF m$="s" THEN RANDOMIZE USR 32834
    2013 IF m ... br /> 9000 PRINT "Report code ";FN m(PEEK 23681);" at line ... LET trap=32768: LET sp=FN p(23613):
    POKE sp ... 9121 LET sp=FN p(23613): POKE sp,FN g(ret): POKE ...
    Battle Bunny Battle Bunny July 2012 Sinclair Basic
  • DooM on Spectrum 128kHello my fellow WoS'ers My hope is that you can help me, recently I discovered a DooM clone -esque on the Humble spectrum, - here is a [URL="https:/…

    ... /> 2 DEF FN r()=USR VAL "46118": DEF FN b()=VAL " ... 7: RANDOMIZE USR 46162
    21 LET bc=FN r(): ... mb,16+7: RANDOMIZE USR 46180: STOP
    115 ... r,b$: POKE mb,FN b():
    POKE VAL ... 180":
    RANDOMIZE USR r: LET bc=FN r():
    RETURN ...
    Battle Bunny Battle Bunny August 2012 Games
  • A new ZX spectrum cloneOver the past 12 months i have been developing a new spectrum clone as a hobby project to waste my spare time on. It is still not fully complete yet …

    ... ... wait: how functions like USR with numeric argument, FN, VAL, string functions ...
    mcleod_ideafix mcleod_ideafix August 2012 Hardware
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... up things by using "PRINT USR a$,a[,b...,z];" method ... lose the flexibility of the FN method, which can be used ... 's wrong with LET dummy=USR etc...
    Jonathan Harston Jonathan Harston September 2012 Development
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... 's wrong with LET dummy=USR etc...[/QUOTE]

    It ... -delimited list of parameters are FN, PRINT, DATA and READ. I ... was to put the DEF FN at the top of the ...
    Battle Bunny Battle Bunny September 2012 Development
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    I use the PRINT USR [list of arguments] method ... hence the use of a FN - has to be at least ... is quicker, but adding the FN search overhead makes it slower ... I'd considered saving the FN address when the function is ... time the first one is "FN without DEF" which is ...
    Battle Bunny Battle Bunny September 2012 Development
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... [,d2...,dn])=STR$ USR md:
    LET a$=FN a$("ds",d1 ... a TO b)
    (virtual1): FN a$(a$,d1[,d2...,dn ... ]

    Note that "STR$ USR md" does not return "STR ... DATA element specified by the FN parameters. In the "virtual" ...
    Battle Bunny Battle Bunny October 2012 Development
  • CAT!RAM and PUTRAMLast year sometime I posted a couple of routines to: * catalogue the 128k RAMdisk in BASIC; * move RAMTOP and the stacks from BASIC. CAT!RAM and PUTR…

    ... file data
    2 DEF FN p(a)=PEEK a+256 ... )
    9900 LET a=FN p(23427): LET e=(60416 ... br /> 9905 LET r=FN p(23730): IF r> ... /> LET f(n,d)=FN p(b)+VAL p$(PEEK ... /> LET f(n,d)=FN p(b): LET d=d ... >49151 THEN RANDOMIZE r+USR m
    9951 RETURN ...
    Battle Bunny Battle Bunny December 2012 Sinclair Basic
  • BIN2BAS (load BASIC text into emulator) utilityI've nearly finished testing this. It allows a BASIC program to be loaded from a text file in any emulator which has a "load binary" option. I was wo…

    ... the 128k version the RANDOMIZE USR 16384 statement must be the ... want to use the DEF FN for the PEEKs, rather than ...
    Battle Bunny Battle Bunny April 2013 Sinclair Basic
  • BIN2BAS (load BASIC text into emulator) utilityI've nearly finished testing this. It allows a BASIC program to be loaded from a text file in any emulator which has a "load binary" option. I was wo…

    ... clear that now the RANDOMIZE USR 16384 statement must be the ... same line (like the DEF FN) then it won't work ...
    Battle Bunny Battle Bunny April 2013 Sinclair Basic
  • BIN2BAS (load BASIC text into emulator) utilityI've nearly finished testing this. It allows a BASIC program to be loaded from a text file in any emulator which has a "load binary" option. I was wo…

    ... DATA 1,2,3: DEF FN a(b,c)=b+c ... "a"+COS B+EXP c+FN a(b,c): LET b ... $=STR$ 12345: PRINT TAN a+USR b
    35 LET a ... =USR "a": LET b=VAL "b": ...
    Battle Bunny Battle Bunny April 2013 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…

    ... /> [b]LET a$="b$()"+STR$ USR address[/b]
    and use ... , or else use the DEF FN method. Alternatively, you could do ... a$=(b$(p1,p2)+STR$ USR address)(TO 0)[/b]
    USR code, but returns a null ...
    Battle Bunny Battle Bunny May 2013 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…

    ... DEF FN (in this case, DEF FN a(a,b,c)=USR 65170 ...
    Zup Zup June 2013 Sinclair Basic
  • Designing an icon-driven adventure: looking for adviceHi fellas, after the release of Funky Fungus, I am currently contemplating the possibility of designing an icon-driven adventure with location graph…

    ... - maybe passing using DEF FN with a USR call. There is sure ...
    dmsmith dmsmith July 2013 Development
  • 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…

    ... in the listing. The USR call returns a 32-digit ... answer and so "STR$ USR" must be used to call ...
    102 PRINT STR$ USR LMUL10: GO TO 100
    102 PRINT STR$ USR (LMUL10+3): GO TO 101 ... G)+FN b$(K)+FN b$(H)+FN b$(L)+
    ; FN b$(V)+FN ...
    Battle Bunny Battle Bunny July 2013 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)…

    ... put the DEF FN in 1001 and the FN call in line ... />
    [code]
    1001 DEF FN t$(n,t,d)=STR ... t>500)
    +VAL$ (("FN t$("
    +STR$ (n-INT ...
    Battle Bunny Battle Bunny August 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
fn 866 4.4K
usr 3.4K 6.2K

Related Threads

  • RANDOMIZE USR, PRINT USR etcHello just wondering why is it called RANDOMIZE UsR what does randomising have to do with it ? When calling machine code routine from adress x you ty…
  • Randomize USR xxxxxA weird topic:<br /> When I was a kid I use to mess around with the RANDOMIZE USR xxxxx, sad I know!!!<br /> For instance RANDOMIZE USR 51234 would g…
  • Run BASIC program by R. USR xxxxxGuys, please help. Suppose I have BASIC program in my Spectrum 48K starting with line 10. I'd like to start it by RANDOMIZE USR xxxxx. Which paramete…
  • POKE, PEEK and RANDOMIZE USRAnyone got a store of useful POKES, or RANDOMIZE USR statements with interesting effects?<br /> <br /> As a start, try anything from RANDOMIZE USR 12…
  • List of RANDOMIZE USR code effects?Hi chaps,<br /> Does anyone have one of these please?<br /> Thanks.
  • 'usr 0 mode'Can anybody explain why some programs can't be just loaded after turning spectrum on but you must type 'usr 0' before loading them?
  • What's the RAND USR code for the test screen?And what versions of hardware does it work on?<br /> <br /> Ta!
  • Those RANDOMIZE USR lines that look like tape loading...I often see on here people mentioning those RANDOMIZE USR lines which when entered, seem to simulate a tape loading, with the colours and lines in th…
  • Happy Birthday Randomize UsrDon't know who you are, but have a good one dude! Hope you have many more.<br /> <br /> :)
  • 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…

Related Searches

  • randomize usr
  • otla settings clear usr
  • otla clear usr
  • usr 15619
  • usr 0
  • usr 0 128
  • usr 328
  • scroll usr 328
  • scroll usr
  • rom scroll usr
  • strange loading randomize usr
  • modulo function def fn
  • rand usr
  • tr dos randomize usr
  • randomize usr pokes
  • randomize usr 3280
  • fuse def fn keyboard
  • usr
  • print usr
  • fn usr

Copyright © 2024 World of Spectrum