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.045s
<1234567…34>
  • If you've got a real working MF128,IF1, and MDR combo can I ask a favour?So, if you do have a real Multiface 128, Interface 1, Microdrive and, oh yeah, a Spectrum (48k or 128k) that are all working, can I ask a favour...? …

    ... invoke with:
    ;
    ; PRINT USR 32768
    ;
    ; a result ... (err_sp),sp
    ld bc,0 ; clear bc
    ld de,gethook ... address of HOOK-CODE in bc register
    ret
    ;[/CODE]
    jp jp February 2008 Hardware
  • [BASin] Bug report and question[B]1. Bug report:[/B] BASIC Editor behavior I'm using a variable to store the contents of the BC register. But the BASIC editor works strangely. I t…

    ... store the contents of the BC register. But the BASIC editor works ... />
    [code]10 LET a=USR 32000
    20 PRINT a ... />
    [code]10 LET a=USR 32000
    2020 PRINT a ... :[/B] Other than typing "randomize usr 0" on the editor is ...
    rahtgaz rahtgaz January 2009 Emulators
  • Understanding the StackSorry folks. I guess I'm going to be a pain for a little while. Hope it's ok with everyone. I'm currently studying the stack and wrote the little pr…

    ... /> ld sp, (spp)
    pop bc
    ret

    spp ... a PRINT USR expression. But the contents of the BC register aren't ... underscore) in place where the BC contents should be seen. What ...
    rahtgaz rahtgaz January 2009 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... 0 to 65355 in the BC register.
    We will ... the value 0 into the BC register, ready to increase it ... a value into a register or register pair.
    The ... is different for each register or register pair that is ... 0; "Your score was "; USR 33000
    Now RUN the ...
    bigjon bigjon November 2009 Development
  • Can a guy that traveled on the short bus learn machine code...Hmmm So after some soul searching I figured it was time to finaly nail spectrum machine code. Its so frustrating to sit infront of a basic listing w…

    ... returned, you type in PRINT USR 61440 (or whereever you decided ... with a value
    Increment register BC
    Return

    ... a
    [code]
    PRINT USR 61440
    [/code]
    ... to copy the manipulated register to the BC register pair so it can ...
    wibble wibble August 2013 Development
  • ZX rom type detectionHere is routine for fast detection of zx rom / computer model. [URL="http://velesoft.speccy.cz/other/ZXROMDETECT.zip"]http://velesoft.speccy.cz/othe…

    ... zx48 rom and return in BC register value 0-7 signed zx ... be code used via PRINT USR xxxx

    [B] ... address (#09AC).
    Routine return register BC=0-7 for ZX rom ... (C),A

    LD BC,0

    LD A ...
    velesoft velesoft January 2015 Sinclair Miscellaneous
  • Calling machine codeOccasionally I see on ZX computers (mostly the spectrum, but I think also the '80 and '81), how someone made their machine code and wrote the bytes i…

    ... like this:
    [code]PRINT USR 60000[/code]
    If the ... leaves an integer in the BC register, then that integer will get ... can also do
    [code]USR 60000[/code]
    if you ... sometimes see
    [code]RANDOMISE USR 60000[/code]
    Can someone ...
    wilsonsamm wilsonsamm February 2016 Sinclair Miscellaneous
  • How do i learn to programAll the years i had a computer the only one i could program was the Texas Instruments Ti99/4a and when using extended basic with its so simple sprite…

    ... ,201)
    Then type USR 32767 [ENTER] and you ... machine code to load register A with 100. Pretty ... br /> Poke that in then USR 32767 again.
    This time ... the contents of the BC register pair when it returns ... LD (BC),A) and increases PC. In BASIC USR xxxxx will ...
    cyborg cyborg January 2002 Games
  • Why Hex in place of Denary?Ok - most MC books / tutorials advocate the use of hex instead of denary. But the Speccy doesn't actually have a Hex converter so you need to write …

    ... USR xx function always returns the contents of the BC register ... to BASIC. So PRINT USR 30000 has two effects ... />
    PRINT USR 30004 will jump into the ... /> So if the A register still contains 6 from before ...

    PRINT USR 30000 (run the routine at ...
    monty.mole monty.mole March 2004 Development
  • Emuzwin / Spin AssemblerHello lads. Wondering if anyone can help. I've decided to look into playing about with some code using the Emuzwin or Spin built-in assembler. Are th…

    ... machine code", RANDOMIZE USR "Address..." or LET L=USR "address...". There are ... BASIC operates the USR function returns whatever the BC register is holding. So ... entering PRINT USR 60000 would ...
    dmsmith dmsmith October 2005 Development
  • Pocket Clive - 2 QuestionsHello, I've just started using Pocket Clive on my iPaq pocket PC, excellent emulator BTW. 1. I have just wrote a small BASIC program to randomly pi…

    ... FRAMES byte, and the r register. The resultant 16 bit value ... SUB 210
    30 RANDOMIZE USR 65268
    40 LET s ... /> ld a,r ; the refresh register is used for the low ... ; return the result in the bc register pair

    That seems ...
    Digital Prawn Digital Prawn December 2005 Emulators
  • Noob to Z80 needing +3 helpI'm quite new to z80 programming, but i'm attempting to write some kind of windowing system that will run alongside BASIC on my +3 with Kempston mous…

    ... gets whatever was in the BC register pair. To communicate parameters ... the end of the USR call and read them ...
    [code]
    let r = USR 32768: REM move 3,100 ... ,20
    let r = USR 32768, "move 3,100,20 ... "
    let r = USR 32768, "move", a, 100, ...
    Alcoholics Anonymous Alcoholics Anonymous January 2007 Development
  • question about RST 10hhow do you set the position of the text when using 'RST 10h' to print to screen?

    ... />
    Same as PRINT : RANDOMIZE USR START

    [/quote]
    BC-register)
    zx128k zx128k May 2007 Development
  • New utility - Arcade Game DesignerNo income tax, no VAT, no money back, no guarantee... In advance of SEUD's release I thought I'd release AGD to get people in the mood for game maki…

    ... back to AGD with Rand Usr 24000[/QUOTE]

    That ... 't restart with the rand usr.[/QUOTE]

    Thanks, I ... in the BC register pair. In other words, LET S=USR 34100 would ...
    jonathan jonathan April 2008 Development
  • New utility - Arcade Game DesignerNo income tax, no VAT, no money back, no guarantee... In advance of SEUD's release I thought I'd release AGD to get people in the mood for game maki…

    ... in the BC register pair. In other words, LET S=USR 34100 would ...
    mulder mulder April 2008 Development
  • Understanding the StackSorry folks. I guess I'm going to be a pain for a little while. Hope it's ok with everyone. I'm currently studying the stack and wrote the little pr…

    ... a PRINT USR expression. But the contents of the BC register aren' ... underscore) in place where the BC contents should be seen. ... LD SP, the POP BC is going to cause problems ... that's going to BC is from 2 addresses ... ahead. Maybe a simple, LD BC, (SP) will do the ...
    Arjun Arjun January 2009 Development
  • Understanding the StackSorry folks. I guess I'm going to be a pain for a little while. Hope it's ok with everyone. I'm currently studying the stack and wrote the little pr…

    ... the call from BASIC the BC register holds the value of the ... print from the USR command

    PRINT USR start
    [code ...
    Dr BEEP Dr BEEP January 2009 Development
  • 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…

    As Arjun says, [b]USR x[/b] is a [b] ... useful (the contents of the BC register pair forms the integer return ... would all be using [b]USR x[/b] on its own ...
    BloodBaz BloodBaz December 2009 Sinclair Basic
  • Howto paint a squared zone of the screen ?You know what guys ? i begin to love this languaje. Cant understand why not put more effort on the 80's to learn it :( because it is really speedy. …

    ... need to place it into BC register. So, you need to do ... row number as result of USR function.
    Shiru Shiru June 2010 Sinclair Basic
  • Another machine code problem, sorry[CODE] OPCODE HEX ADD LD A,00 3E00 F000 PUSH AF F5 F002 LD B,05 0605 F003 LD C,06 0E06 LOOP F005 POP AF F1 ADD A,C 80 DEC B 05 …

    The way USR works is it's ... .
    When you do "USR address" it executes the machine ... number that was in the BC register pair. So you can do ... :

    LET X = USR 61440

    Then your ... address you called in the register BC. This isn't hugely ...
    joefish joefish September 2010 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... screen. Each "call" uses RANDOMIZE USR... - could this be affecting ... ?[/QUOTE]

    The USR function invokes an assembly routine ... the BC register pair). In your program, replace [B]RANDOMIZE USR x[/ ... you are using [B]RANDOMIZE USR x[/B], every time ...
    Einar Saukas Einar Saukas May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    [QUOTE=Einar Saukas;532515]The USR function invokes an assembly routine ... the BC register pair). In your program, replace [B]RANDOMIZE USR x[/B ... ] with [B]PRINT USR x[/B] to see this ... you are using [B]RANDOMIZE USR x[/B], every time you ...
    Paddy Coleman Paddy Coleman May 2011 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,…

    ... complete, I type the RAND USR command and it works.
    register keeps the value I manually ... the value of BC' at startup is now in BC register.

    register with $FFFF at reset, the RAND USR works. Strage ...
    mcleod_ideafix mcleod_ideafix May 2011 Emulators
  • Where to start?..Hello, First off, sorry if this is in the wrong and sorry if the questions I'm about to ask have been asked and answered numerous time! Little back…

    ... br />
    The BASIC function "USR 32768" or whatever will try ... processor's 'BC' register pair ('BC' is a 16-bit register that's really ... the 'result' of the USR function. Usually you just want ... for example:
    LET X = USR 32768

    Whatever you ...
    joefish joefish September 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... .
    Then use LET A = USR 60000 or wherever it's ... /> What happens when you do USR 60000 in BASIC is the ... the number 60000 into the BC register and calls the routine. When ... BC register at the time is returned as the result of the 'USR ...
    joefish joefish December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... .
    Then use LET A = USR 60000 or wherever it's ... /> What happens when you do USR 60000 in BASIC is the ... the number 60000 into the BC register and calls the routine. When ... BC register at the time is returned as the result of the 'USR ...
    Paddy Coleman Paddy Coleman December 2011 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…

    ... FN handling, but because the USR function doesn't return the ... implementation of the USR function didn't return the BC register value. That ...
    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…

    ... FN handling, but because the USR function doesn't return the ... implementation of the USR function didn't return the BC register value. That ...
    chev chev May 2012 Sinclair Basic
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... 0 to 65355 in the BC register.
    We will ... the value 0 into the BC register, ready to increase it ... a value into a register or register pair.
    The ... is different for each register or register pair that is ... 0; "Your score was "; USR 33000
    Now RUN the ...
    buzzy buzzy 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…

    ... $(a$,d1[,d2...,dn])=STR$ USR md:
    LET a$=FN ... that "STR$ USR md" does not return "STR$ 'BC register'"; it returns the ...
    Battle Bunny Battle Bunny October 2012 Development
<1234567…34>

Latest Posts

  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • European Software Titles with an English version
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
usr 3.4K 6.2K
bc 3.6K 14K
register 4.2K 6.1K

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…
  • BC 's Quest For Tireswhen playing this game you can only use keyboard right?.WRONG.if you press the letter "p" while the game has started(paused and waiting for input)a c…
  • BC Bill does this game work with a emulator?Can anyone get this game running with a emulator. I get as far as the main screen but can't start the game
  • 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…
  • BC BillThis is embarrassing but here goes...<br /> <br /> I'm playing BC Bill using ZX32. On the control menu I press 2 to select 'Kempston'. What do I need…
  • Index register questionDoes anyone know whether the DD / FD prefix works on the ex de,hl instruction, ie. modifying it to ex de,ix or ex de,iy.<br /> <br /> Derek
  • Index register subtractionHi,<br /> <br /> Just wondering if there a way to perform SBC HL,BC on the IX or IY registers. I can't find an op code for it, and my assembler doesn…
  • Is the IY register used by the spectrum rom?Hi<br /> <br /> I've been writing a sprite routine and have noticed that the sprite data gets corrupted at some points. I have no idea why and can on…

Related Searches

  • randomize usr
  • otla settings clear usr
  • otla clear usr
  • usr 15619
  • ftp register
  • register error
  • forum register error
  • usr 0
  • usr 0 128
  • usr 328
  • scroll usr 328
  • scroll usr
  • rom scroll usr
  • fuse register i
  • ld bc eostr string
  • strange loading randomize usr
  • rand usr
  • tr dos randomize usr
  • print usr bc
  • usr bc register address

Copyright © 2024 World of Spectrum