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

    ... why is it called RANDOMIZE UsR what does randomising have to ... RANDOMIZE USR x. Why not RUN USR x ? I just tried PRINT USR 65368 ... it resets the machine! Why doesn't it print ...
    ivanb303 ivanb303 October 2016 Sinclair Basic
  • Smooth Color Masked Sprites using fast page flip on 48kHere is a quick demo of using char based sprites using the Page flip method: a) Background is copied to buffer b) Sprites drawn on buffer c) Buffer …

    ... at 32768 and then type PRINT USR 32768 to run.
    lp1:
    PUSH BC
    PUSH DE
    ... CALL WRITECHAR
    POP BC
    LD A,(YPOS)< ... /> PUSH AF
    PUSH BC
    PUSH HL
    ...
    robpearmain robpearmain September 2004 Development
  • 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...? …

    ... BASIC invoke with:
    ;
    ; PRINT USR 32768
    ;
    ; a result ... (err_sp),sp
    ld bc,0 ; clear bc
    ld de,gethook ... /> ret
    ;
    gethook ld bc,($00ec) ; return the address of ... HOOK-CODE in bc register
    ret
    ...
    jp jp February 2008 Hardware
  • 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 ... ), the same as PRINT USR 0, LET a=USR 0, etc, of ... 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 ...
    ewgf ewgf December 2008 Sinclair Miscellaneous
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ... QH": PRINT USR adres;A$
    PRINT AT 10,10;USR start;" ...
    LD BC,(23688)
    SBC HL,BC
    LD ...
    Dr BEEP Dr BEEP December 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…

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

    spp ... with a PRINT USR expression. But the contents of the BC register aren ... underscore) in place where the BC contents should be seen. What ...
    rahtgaz rahtgaz January 2009 Development
  • Whi different result with Spectrum +3 ?The followed code 10 FOR n=23296 TO 23299 20 READ a: POKE n,a 30 NEXT n 40 DATA 1,127,106,201 50 PRINT USR 23296 causes that the spectrum 48k show…

    ... ,127,106,201
    50 PRINT USR 23296

    causes that ... the follow.

    LD BC,27263
    RET

    arfgh arfgh May 2010 Sinclair Basic
  • C/M Why different result with Spectrum +3 ?The followed code 10 FOR n=23296 TO 23299 20 READ a: POKE n,a 30 NEXT n 40 DATA 1,127,106,201 50 PRINT USR 23296 causes that the spectrum 48k show…

    ... ,127,106,201
    50 PRINT USR 23296

    causes that ... the follow.

    LD BC,27263
    RET

    arfgh arfgh May 2010 Sinclair Basic
  • (part of) screen to UDGHere is a routine to copy a Y,X-position on screen to a UDG. 0<=y<=23 0<=x<=31 144<=udg<=165 (UDG "A" to UDG "U") [code] ; start code with ; PRINT …

    Here is a routine to copy a Y,X-position on screen to a UDG.
    0
    Dr BEEP Dr BEEP June 2011 Development
  • Is it possible to access the +3 disk drive via m/c in USR0 mode?Is it possible to access the disk drive of the +3 via m/c +3DOS calls when running in USR0 mode? I ask because I'm having an awful lot of trouble ge…

    ... sp ; 36864
    ld bc,$7ffd
    ld a,($5b5c ... doing a CLEAR 49050 before PRINT USR 48796)
    ei ; ... here
    ld bc,1
    here push bc

    out (c),a
    pop bc
    ei

    ...
    di
    ld bc,$7ffd
    ld a,($5b5c ...
    cmonkey cmonkey October 2011 Development
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... equ $2da2 ;from calculator stack: BC
    FPTOA: equ $2dd5 ; ... ,GETARG
    call FPTOBC ;BC=addr
    ld h,b ... (hl) ;JP address

    ;PRINT USR stack,string_expression,max_length,substr;
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Indirect Variable AssignmentHere's another wacky routine. This allows assignment of values to variables where the source & destination variables can themselves be defined in var…

    ... READ v$,v
    10 PRINT USR id,"val"+CHR$ (a+64 ... ),"=",v;
    11 PRINT USR id,v$,"=",v+VAL ("val ... />
    The syntax is:
    ;PRINT USR indirect,arg1,op,arg2;

    ;Indirect Variable Assignment
    ;PRINT USR indirect,arg1,op,arg2;
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • Undefine functionHere's a routine to selectively remove variables from the VARS area and reclaim the space. This can be done partially from BASIC already by assigning…

    ... passed from BASIC by:
    ;PRINT USR undefine,"arg1"[,"arg2"...,"argn"];
    push ix
    pop bc
    ld b,c ;B ... ;variable name address
    push bc ;variable name length
    call ...
    Battle Bunny Battle Bunny January 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…

    ... would 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
  • PRINT a numerical value i.e. the scoreHow do you fo about printing a numerical value using the print routine in the ROM? For instance I have a value 0-255 and want to PRINT the result at…

    ... a numerical value using the print routine in the ROM?
    PRINT the result at say 0 ... , (address of text to print)
    ld bc, (length of text to ... print)
    call 8252

    daveysludge daveysludge August 2012 Development
  • Problem with Page 7I've been experimenting with running code in page 7 (+3) from BASIC and I seemed to have got it sorted out but then it all went wrong. Firstly, I tr…

    ... ]
    So I had "LD BC,$ffff : RET" in page 7 ... +7: OUT 32765,16+7: PRINT USR 65368:
    POKE 23388,16 ...
    Battle Bunny Battle Bunny January 2013 Development
  • Machine code assistance please #1Dear all, Learning the ropes here, so please excuse these odd questions which may seem simplistic to you learned lot. This routine is placed at 33…

    ... was expecting the command [b]PRINT USR 33000[/B] to return 99 ... /> ld hl,0
    ld bc,0
    [/code]
    ...it ...
    Tobo Tobo June 2013 Sinclair Miscellaneous
  • 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…

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

    ... />
    explains that only BC is remembered on return..
    257....
    meaning that BC = 0101
    hmmm

    wibble wibble August 2013 Development
  • Ghosts n' Goblins loaderI'm trying to put Ghosts n' Goblins onto a +3 disk but struggling to understand the mc loader. Basic loader [code] ink 7 : clear 25000 : load "" cod…

    ... : load "" code : ink usr 65477 : print usr 65040[/code]

    ... ,65240
    65227: LD BC,236

    ... /> 65243: PUSH BC
    65244: PUSH BC
    65245: ... SP
    65250: POP BC
    65251: ADD HL ... , 23610
    65441: POP BC
    65442: RET
    Speccy_James Speccy_James February 2014 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…

    ... can be code used via PRINT USR xxxx

    [ ... br /> Routine return register BC=0-7 for ZX rom ... different....

    ; LD BC,#1FFD ;this small part of ... ),A

    LD BC,0

    LD A ...
    velesoft velesoft January 2015 Sinclair Miscellaneous
  • Strange keyboard port reads on 48+Hi all, I don't know whether it was already discussed (I also searched forum, but there are too much of results searching "48k keyboard" so I didn't…

    ...
    40 POKE 23692,255: PRINT USR 32768;" ";: GO TO 40
    rept 3270
    ld bc,+
    ld a,239
    ub880d ub880d January 2015 Hardware
  • 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…

    ... it like this:
    [code]PRINT USR 60000[/code]
    If the ... leaves an integer in the BC register, then that integer will ... can also do
    [code]USR 60000[/code]
    if you ... sometimes see
    [code]RANDOMISE USR 60000[/code]
    Can someone ...
    wilsonsamm wilsonsamm February 2016 Sinclair Miscellaneous
  • More basic assembly stuff!I've been figuring out some more stuff using CALL and DEFB but this has me a bit stumped. [code] ORG 33000 LD BC, 16384 PUSH BC CALL GO RET …

    ... 33000
    LD BC, 16384
    PUSH BC
    CALL GO
    BC
    RET
    [/code]

    When I do PRINT USR 33000 ...
    ivanb303 ivanb303 March 2017 Assembler
  • Can't Get My Simple Code To RunHello again, I'm trying to run the following simple code: [code] org 32768 main ld b, 21 ; x coordinate is …

    ... string ; string to print
    ld bc, eostring-string ; length ... coordinate.
    rst 16 ; print it.
    ret
    ... tried
    [quote]Randomize USR 32768[/quote]
    but ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • type in to learn about IM2I'm trying to mess around with learning about IM2 and I found a nice little article in Sinclair User September 1988, issue 78, Page 70-71 [url="https…

    ... /> ;;issue 78
    ;;print usr 65285

    ;;ff05 ... push AF
    push BC
    push DE
    pop BC
    pop AF
    ld BC, 7
    ld (HL), ... A, $3a;; = :
    ; call PRINT
    ; ld A, (MINUTES)
    andydansby andydansby July 2020 Development
  • Last Problem in Chapter 3 of Toni Baker's Mastering Machine Code on your ZX Spectrum.Chapter 3 of this great book is all about how to use the registers and covers the operations LD, ADD, ADC, SUB, SBC, INC, DEC, SCF and CCF. The la…

    ... to produce a 1 if BC is greater than DE, but ... , and I invoke it by PRINT USR 61440. However, I can only ... Notes
    LD BC, 0 01A000 Init BC to 10
    LD ... CARRY
    SBC HL, BC ED42 IF BC is greater than HL ...
    Scottie_uk Scottie_uk February 2021 Assembler
  • i want to start writing my own gamesi want to start writing my own games but have no idea how. is there any downloadable dummys guides or some software that teaches u how. the only expe…

    ... of mathmatical things and PRINT USR xxxxx to get BC back as a ...
    cyborg cyborg January 2004 Development
  • i want to start writing my own gamesi want to start writing my own games but have no idea how. is there any downloadable dummys guides or some software that teaches u how. the only expe…

    ... of mathmatical things and PRINT USR xxxxx to get BC back as a ...
    GOC GOC January 2004 Development
  • i want to start writing my own gamesi want to start writing my own games but have no idea how. is there any downloadable dummys guides or some software that teaches u how. the only expe…

    ... a PRINT USR statement that's actually useful you have to load BC ... leave BC with 65535.

    If you asked me what PRINT USR ...
    cyborg cyborg February 2004 Development
  • 42 column text, Sinclair Print Utilities, etcI'm currently developing the next of the ZXIF text adventures - "43 Minutes" and, as a side issue, I'm really interested in 42 column text for this g…

    ... text to MC.

    PRINT USR START,A$

    Where ...
    INC DE
    DEC BC
    LD A,B
    Dr BEEP Dr BEEP March 2004 Development
<1234567…34>

Latest Posts

  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21

HitBox

Word Docs Hits
print 8.5K 20.4K
usr 3.4K 6.2K
bc 3.6K 14K

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…
  • Print usr 1300??????
  • 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…
  • How to print with colour using DiscipleHi!<br /> <br /> I was wondering if there is any way of printing in colour using the Disciple. I am using an Epson Stylus 600 Printer with one of my …
  • 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…
  • Sinclair User: Blue Print Double DragonI'm not sure what issue the Blue Print of Double Dragon appeared, I think it was issue 78 (September 88)<br /> <br /> Even a scan would do. Cheers
  • 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…
  • 42 column text, Sinclair Print Utilities, etcI'm currently developing the next of the ZXIF text adventures - "43 Minutes" and, as a side issue, I'm really interested in 42 column text for this g…

Related Searches

  • print a char in asm
  • randomize usr
  • otla settings clear usr
  • otla clear usr
  • print variables
  • usr 15619
  • usr 0
  • usr 0 128
  • usr 328
  • scroll usr 328
  • scroll usr
  • rom scroll usr
  • ld bc eostr string
  • strange loading randomize usr
  • print on border
  • print leading zeroes
  • print usr
  • usr bc register
  • usr bc register address
  • print bc assembler

Copyright © 2024 World of Spectrum