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.008s
<1…17181920212223…34>
  • Setting the border/paper/ink colours problem[deleted]

    ... run the them: PRINT USR 23760 or RANDOMIZE USR 23760?[/QUOTE]

    PRINT USR will print the value of BC to screen on ...
    rich_chandler rich_chandler August 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... dec hl
    ld bc, 5 ; allocate 5 ... area
    push bc
    call 0x1655 ... %010RR000rrr00000
    add hl, bc ; now HL = %010RR000rrrCCCCC
    USR 64872[/CODE]
    Einar Saukas Einar Saukas August 2011 Development
  • automatic relocating of non-relocatable codeI was pondering upon the problem of changing absolute addresses used by CALL, JP, etc. when code is moved, without reassembling at the new location; …

    I've just noticed that BC holds the USR address, so all that ... :
    [code]
    ADJUST: push bc
    pop hl ;HL=actual ...
    Battle Bunny Battle Bunny August 2011 Development
  • Best way to read a key row?Hi All, I must confess that reading the keyboard is the bit I understand least about when coding, I've found some things that work for what I want t…

    ... keypress, you mustn't use BC pair register, you could use IN ... , z80 cpu will put A register to higher byte of address ...
    ub880d ub880d August 2011 Development
  • automatic relocating of non-relocatable codeI was pondering upon the problem of changing absolute addresses used by CALL, JP, etc. when code is moved, without reassembling at the new location; …

    ... " method for passing USR arguments which, once I ... $2dA2 ;from calculator stack: BC

    STACK: ... /> ld sp,hl ;undo USR
    GETARG: rst $ ... /> call FPTOBC ;BC=addr
    push bc
    pop ...
    Battle Bunny Battle Bunny August 2011 Development
  • Casstte 50 compilation emulator game questionHi - Hope this is the right place to put this question? Wasn't sure? But I have just downloaded the 'Cassette 50' compilation from wos but can't w…

    ... a direct command PRINT USR 65369 and from ... of workspace
    POP BC ;BC= length of header
    ... DE
    SBC HL,BC
    LDIR ;copy header ... /> LD SP,HL ;undo USR
    EX DE, HL ...
    Battle Bunny Battle Bunny August 2011 Games
  • machine code loadercan someone have a look at this loader and break down what its actually doing and also how i can stop it from executing the 2 loads of headerless blo…

    ... DE,$5CB6 ;(CHANS)
    LD BC,5
    LDIR
    LD ... can be run with RANDOMIZE USR 53743.

    The SCREEN ...
    Battle Bunny Battle Bunny August 2011 Sinclair Miscellaneous
  • Kobrahsoft DB1 - doesn't work?Hi, I've tried loading [URL="http://www.worldofspectrum.org/infoseek.cgi?regexp=^DB1$&pub=^Kobrahsoft$&loadpics=3"]DB1 by Kobrahsoft[/URL] into two …

    ... some unconventional IX/IY index register commands and is doing stuff ... calls BC_SPACES with zero in BC, attempting to make "no ... 11 00 10
    LD BC, $0020 ; 8021 01 20 00 ... 11 00 C0
    LD BC, $1E3C ; 802B 01 3C 1E ...
    Battle Bunny Battle Bunny August 2011 Sinclair Miscellaneous
  • Kobrahsoft DB1 - doesn't work?Hi, I've tried loading [URL="http://www.worldofspectrum.org/infoseek.cgi?regexp=^DB1$&pub=^Kobrahsoft$&loadpics=3"]DB1 by Kobrahsoft[/URL] into two …

    ... calls BC_SPACES with zero in BC, attempting to make "no room ... " error, but because the IY register has a vastly wrong value ...
    Philip Kendall Philip Kendall August 2011 Sinclair Miscellaneous
  • Kobrahsoft DB1 - doesn't work?Hi, I've tried loading [URL="http://www.worldofspectrum.org/infoseek.cgi?regexp=^DB1$&pub=^Kobrahsoft$&loadpics=3"]DB1 by Kobrahsoft[/URL] into two …

    ... machine code and a PRINT USR 0 followed by what may ... the use of the R-register which I didn't know ... .

    Will the I-register always be set to $3F ... that's what the R-register is getting set to at ...
    Battle Bunny Battle Bunny August 2011 Sinclair Miscellaneous
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... :
    [code]
    10 LET bc=USR main: LET b$="00000000"
    20 LET wn=INT (bc/2): LET b$(8-b ... )=STR$ (bc-wn*2): LET bc=wn
    30 ... /> 10 LET b$=FN b(USR main)
    [/code]

    BC) in string B$. The FOR ...
    Battle Bunny Battle Bunny September 2011 Development
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... 'a' register anyway in order to check if your bc loop has ... a into a differnet register whilst doing the bc zero test.
    BloodBaz BloodBaz September 2011 Development
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... 'a' register anyway in order to check if your bc loop has ... a into a differnet register whilst doing the bc zero test.
    polomint polomint September 2011 Development
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... DEFADD
    010400 LD BC,0004
    09 ADD HL ... ,BC
    5e LD E ... HL)
    011f00 LD BC,0024
    09 ADD ... new offset in the LD BC,0024

    2023 PRINT "usr",usr
    2025 INPUT j ...
    mattsteel mattsteel September 2011 Sinclair Basic
  • Opcode QuestionsHi all, I am an experienced LabVIEW progammer and also have fond memories of the spectrum. Thus I started to think about writing my own emulator an…

    Other than the BC / A confusion (which you've ... have details like the flags register to worry about.
    gasman gasman September 2011 Emulators
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... by: LET a$="123" AND USR address
    ; or: LET ... a$= STR$ var AND USR address
    ;test:
    ... /> ;IF (STR$ var AND USR address)(8 TO 10)="101 ... 7833
    PUSH BC
    LD BC,16 ;new len
    USR, I saw no reason ...
    roko roko September 2011 Sinclair Basic
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    ... FN i(n,t$,s$)=USR 23296
    [/CODE]
    < ... DE
    5b5d c1 POP BC
    5b5e 20de JR ... H
    5b73 03 INC BC
    5b74 c9 RET
    mattsteel mattsteel 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 …

    ... "A")
    9990 CLS: RANDOMIZE USR VAL "FN p(23637)+96 ... :0":
    PAUSE k0: RANDOMIZE USR VAL "m+88": STOP
    USR VAL "m+20":
    RETURN ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Fastest way to mirror a byte?I.E. turning 01100000 into 00000110, in assembly. I'm trying but I suck at stuff with rotation and the carry bit. Any pointers?

    ... a CPI and repeat until BC=0.
    CPL ... /> LD A,(BC) Load accumulator with location (BC).
    LD ... LD r,r' Load register r with register r'.
    LD SP ... (HL), decrement DE,HL,BC.
    LDDR Perform an ...
    Ralf Ralf October 2011 Development
  • Getting the contents of tablesHi All, I'm risking a potentially daft question here as it seems pretty fundamental but here goes: What's the best way of pointing register pairs a…

    ... ]still[/b] faster than IX register use:

    [code]
    LD SP,HL
    POP BC
    POP DE
    POP ... /> LD SP,HL
    POP BC
    POP DE
    POP ...
    csmith csmith October 2011 Development
  • IN or INKEY ?just curious which is better to use.. I have a menu done.. and use 6/7 to go up down it + space to cycle thru the options (using inkey).. obv. if I w…

    ... of:
    LET result=USR address+a+b
    ... with:
    LET result=USR address+VAL "a,b,#"
    ld sp,hl ;undo USR
    rst $20 ;step ... A =1st variable
    pop bc ;B =2nd variable
    ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • Fastest way to mirror a byte?I.E. turning 01100000 into 00000110, in assembly. I'm trying but I suck at stuff with rotation and the carry bit. Any pointers?

    ... (HL) input requirement, and extra register use.

    Though amusingly ... c, a
    ld a, (bc)
    rrd
    ld c ... , a
    ld a, (bc)
    add a, (hl)
    antoniovillena antoniovillena October 2011 Development
  • IN or INKEY ?just curious which is better to use.. I have a menu done.. and use 6/7 to go up down it + space to cycle thru the options (using inkey).. obv. if I w…

    ... : REM =XOR
    ;LET n = USR 60002: DATA a,5 : REM ... br /> defb 1 ;fake LD BC,44998
    add a,175 ...
    ld hl,12 ;drop USR
    add hl,sp
    BC
    ex af,af' ; ...
    roko roko October 2011 Sinclair Basic
  • Auto generated spritesLooking around for some graphics I came across [url]http://blog.disktree.net/?p=19[/url] , one of several such pages. Need the odd 8x8 UDG or two (…

    ... br /> ;;
    ;; Type RANDOMIZE USR 30000 before RUN...
    ;;

    Create_UDG:
    PUSH BC ; Temp Storage

    ... CALL Two_RASTERS

    POP BC
    DJNZ Create_UDG
    RET ...
    kgmcneil kgmcneil October 2011 Development
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... USR address is in BC at the start of any USR ... addresses relative to the USR base address. To illustrate ... LOCATE
    ADJUST: push bc
    pop hl ;HL= ... push hl
    pop bc ;BC=runtime displacement from LOCATE
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... , using FN so that the USR function can pick up parameters ... simplifies the syntax, as the "USR address" part is only specified ... is the register holding the offset +/-). To avoid having the USR address ... use DEF FN a(a$)=USR address+VAL a$ where a ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • Requesting a little help to identify the purpose of this 'add-on' to my Issue 2Hi everyone First of all it's my first post here so please go easy on me! I'm grateful to be accepted into your fine little club :smile: I probabl…

    ... reach address 65535
    ld bc,0 ;0 means everythink OK ... offeding address into BC
    pop bc ;to be our USR return value ... following results from a PRINT USR 30000

    32768
    cmonkey cmonkey October 2011 Hardware
  • Pixel engines for explosions...Hi... Iv a strange request... I was toying around with an old YS program, which can be found here: [url]http://www.users.globalnet.co.uk/~jg27paw4/ty…

    ... br /> ; 1 PAUSE 0: RANDOMIZE USR ORG+344
    ;
    ... RET
    L61559: PUSH BC
    PUSH DE
    ... POP DE
    POP BC
    RET
    L61709 ... br /> LD (BC),A
    LD BC,15360
    ...
    kgmcneil kgmcneil October 2011 Development
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... equ $2da2 ;from calculator stack: BC
    FPTOA: equ $2dd5 ; ...
    ld sp,hl ;undo USR

    rst $20 ; ... A =1st parameter
    pop bc ;C =2nd parameter (if assigned ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • which zx-spectrum games uses 1bit sound samples?hi! I'm looking for zx-spectrum games using 1bit sound samples. Compairing with msx, which has far less games available than zx-spectrum, there are f…

    ... value specified in the B register when the routine is called ... kHz.

    The HL register specifies the start address of ... run, so just do PRINT USR 65250 to have it play ...
    PrinceGaz PrinceGaz October 2011 Games
<1…17181920212223…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott 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
  • European Software Titles with an English version
    harriusherbartio 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
  • Celebrity deaths...
    mel the bell on April 20

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