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
<1234567…34>
  • PLOT and DRAW in machine codeHow do you go about it? If I posted a really simple BASIC instruction could someone do a machine code routine so I could learn from it? I wouldnt k…

    ... ][/SIZE]that book shows the FN usr to, thats nice !![/QUOTE]
    Gedlion Gedlion April 2012 Development
  • recovering the stack after an errorMy normal error handler starts with the stack as reset by LD SP,(ERR_SP) in $0053 ERROR_2, sets up some stuff and returns to BASIC via a "JP C,$1e73 …

    ... any quicker than the DEF FN method anyway (which was the ... gone back to using DEF FN (...)=USR ... to call the routine, looking ...
    Battle Bunny Battle Bunny October 2012 Development
  • im looking for a fill routine written in basici know this would be slow but i want to tinker with it to produce something else.

    Yeah, it is slow. The original book had a FN USR replacement for PLOT that sped it up quite appreciably. That said, I use SpecBAS these days so speed isn't an issue for anything really.
    Dunny Dunny July 2018 Development
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... , thus ensuring that the USR call returns the required decimal ... the end, so that "USR nnnnn" can be used in ... method to return from a USR call with a floating ... pointers to be returned from USR calls. Refer to the ... /> 9999 LET t1=FN t(): LET t2=FN t(): LET t0= ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • Randomize USR xxxxxA weird topic: When I was a kid I use to mess around with the RANDOMIZE USR xxxxx, sad I know!!! For instance RANDOMIZE USR 51234 would give me a loa…

    ... mess around with the RANDOMIZE USR xxxxx, sad I know!!!
    For instance RANDOMIZE USR 51234 would give me a ...
    Anonymous Anonymous June 2002 Sinclair Miscellaneous
  • 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…

    ... to start it by RANDOMIZE USR xxxxx. Which parameters should I ...
    MrShhh MrShhh March 2003 Sinclair Miscellaneous
  • POKE, PEEK and RANDOMIZE USRAnyone got a store of useful POKES, or RANDOMIZE USR statements with interesting effects? As a start, try anything from RANDOMIZE USR 1216 to RANDOM…

    ... of useful POKES, or RANDOMIZE USR statements with interesting effects?
    USR 1216 to RANDOMIZE USR 1327. This should ...
    The Mighty Dopethrone The Mighty Dopethrone October 2003 Sinclair Miscellaneous
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... AND INT FN V(FN V(FN V(FN V(FN V(FN V(FN V(x ... ),2)+INT FN V(FN V(FN V(FN V(FN V(FN V(FN V(y ... )+STR$ INT (FN V(FN V(FN V(FN V(FN V(FN V(b,128 ... )+STR$ INT FN V(FN V(…
    chev chev November 2004 Sinclair Basic
  • '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?

    Can anybody explain why some programs can't be just loaded after turning spectrum on but you must type 'usr 0' before loading them?
    PopoCop PopoCop November 2005 Sinclair Miscellaneous
  • 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…

    ... here people mentioning those RANDOMIZE USR lines which when entered, seem ... first ever found was RANDOMIZE USR 1280 which shows blue and ...
    alexsut alexsut April 2007 Sinclair Miscellaneous
  • 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…

    ... function defined such as DEF FN g(x, y, p, q ...
    carlinski carlinski December 2007 Development
  • BASIC Keyword ReferenceRealised that the Sinclair Basic section would be a better place for discussion of BASIC keywords, so for reference the old thread is in [thread=2005…

    ... K : T
    DEF FN : E : SYM + 1 READ ... RUN : K : R
    FN : E : SYM + 2 SAVE ...
    LEN : E : K USR : E : L
    LET ...
    icabod icabod March 2008 Sinclair Basic
  • BASin r14d - Final bugfix for the r14 seriesOk, there's not a great deal to "show" here, as most of the work has been going on "under the hood" so to speak. And there's been a [i]lot[/i] of wor…

    ... )
    Fixed - Some evaluations (like USR 7962, the "free RAM" routine ... - GO TO, GO SUB, DEF FN etc. (Ref)
    Fixed - You ... core, so a lot of USR xxxxx expressions no longer screw ...
    Dunny Dunny December 2008 Emulators
  • Usr 0 ?I'm not sure I've ever seen this explained before, but why do some programs (only demos, as far as I can see, so far) need USR 0 mode when run on a 1…

    ... />
    I know that USR 0 simply causes the CPU ... advantages for the program does USR 0 mode offer over ... program that might require a USR 0 style setup) could, ... place, and do whatever else USR 0 mode does, then ... on the user to type USR 0 before running the ...
    ewgf ewgf December 2008 Sinclair Miscellaneous
  • Help! USR 0 mode?Right, first of all, I know that this is in the wrong forum, and secondly it's maybe against the TOS anyway, as it's just asking people to read and p…

    ... />
    I've asked about USR 0 mode, and whilst I ...
    ewgf ewgf December 2008 Emulators
  • Randomize usrHi, I've often wondered why/how they came up with RANDOMIZE USR <memory address> to invoke machine code couldn't they have used a better keyword (e…

    ... came up with
    RANDOMIZE USR to invoke machine code

    I read somewhere that USR is the keyword that executes ...
    saiwong saiwong December 2009 Sinclair Basic
  • Usr 0I have noted there are some games / applications / demos which have to be loaded in USR 0 mode on a 128K Machine ("Randomize USR 0" in 128K BASIC the…

    ... have to be loaded in USR 0 mode on a 128K ... Machine ("Randomize USR 0" in 128K BASIC then ... is the case, and what USR 0 actually DOES?
    Swevicus Swevicus January 2010 Hardware
  • Resolving USR entry point into a data + m/code block?Well, I had another look at that Merlin listing and decided that blowing up the faint page made it possible to read everything (with a struggle). How…

    ... , it's apparent that the USR entry point is not 30000 ... do I work out the USR address to start the machine ...
    Battle Bunny Battle Bunny June 2010 Development
  • problem with DEFADD storageI have a function: DEF FN t(t$,m,t)=USR t which is called with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt) where, at the time: mcworkspac…

    ... a function: DEF FN t(t$,m,t)=USR t
    which ... , for an example: LET bc=FN t("t$()",mcworkspace,mcputt)
    USR routine is therefore not working ... function to be simply: DEF FN t(t$,m,t)=m ...
    Battle Bunny Battle Bunny July 2010 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
  • RAND USR that doesn't work in emulators and clonesEons ago, I "discovered" a strange RANDOMIZE USR. This is it: [b]RANDOMIZE USR 46578[/b] Using it on a genuine ZX Spectrum rubber key or Plus model,…

    ... I "discovered" a strange RANDOMIZE USR. This is it:
    ... [b]RANDOMIZE USR 46578[/b]

    USR in an emulator in ... happening here. The RAND USR proposed just begins executing ... parameter for the RAND USR, the pattern doesn't ...
    mcleod_ideafix mcleod_ideafix May 2011 Emulators
  • fn bug in basin?Hi. I was just trying to make myself some functions in basin and when i tryed them, the progam stopped on call. So i've tryed this simple thing: 10 …

    ... thing:

    10 def fn a(x)=x*10
    20 print fn a(10)

    and ...
    rikokun rikokun September 2011 Sinclair Basic
  • saving part of a BASIC programHere's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to …

    ... "):
    DEF FN b(h$)=16*FN n(h$(1))+FN n(h ... $(2)):
    DEF FN g ... /> 9991 LET prog=FN p(23635): LET vars=FN p(23627):
    FN g(l)+CHR$ FN h(l):
    ... RANDOMIZE ap: LET bc=l+USR (vars+29): STOP
    9996 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • FN nesting error?While playing with FN functions that call assembly, I've found something weird. Check out this code: [code]10 DEF FN f(a,b)=a+b 20 PRINT FN f(FN f(…

    ... !
    40 PRINT FN f(FN f(2,FN g(3,1)),4 ... !
    50 PRINT FN f(FN g(2,FN f(3,1)),4 ... !
    60 PRINT FN f(FN g(2,FN g(3,1)),4 ... !
    70 PRINT FN g(FN f(2,FN f(3,1)),4 ... !
    80 PRINT FN g(FN f(2,FN g(3,1)),4 ... !
    100 PRINT FN g(FN g(2,FN g(3,1)),4 ...
    mcleod_ideafix mcleod_ideafix October 2011 Sinclair Basic
  • Find-Fill-Copy functions for BASICThere's not much going on here, so here's three m/code routines to provide some data manipulation functions which are otherwise slow to do from BASIC…

    ... as 'b']
    . eg. FN f("z$()","b",find) -or ... with value 'b'
    . eg. FN f("z$()","wxyz",fill) -or ... 'b' (may overlap)
    . eg. FN c(22528,22529,127,CHR ... /> "PRINT USR r0,p1[,p2...,pn],r1" or "DEF FN f(p1 ... [,p2...,pn])=USR r1"
    with ...
    Battle Bunny Battle Bunny October 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 …

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

    ... be:
    * PRINT USR mc,s$;: but that needs ... /> * DEF FN m(s$)=USR mc: LET bc=FN m(s$): whereby ... /> * RANDOMIZE CODE "s"+USR mc: but that needs some ... syntactically incorrect "RANDOMIZE s$+USR mc"? I was wondering ... like "RANDOMIZE LEN s$+USR mc" might leave s ...
    Battle Bunny Battle Bunny April 2012 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