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…28293031323334>
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    ...
    push bc ; Store BC registers
    ... ,ATTR_ROW_CHAR
    pop bc ; Restore BC registers
    pop ... /> 170 LET A=USR 63000
    180 ...
    Paddy Coleman Paddy Coleman September 2017 Development
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    ... /> PAINT_ROW push hl
    push bc

    ; Loop ... reached

    pop bc
    pop hl
    add ...
    260 LET Z=USR 63005
    270 RETURN < ...
    Paddy Coleman Paddy Coleman September 2017 Development
  • Is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of fileHi, is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of file. E.g.: I have a Tape-Code-File Start f…

    ... Two other ideas:

    * USR 2221 ($08AD LD_PROG_1) POPs length ... from BASIC?

    * USR 1788 ($06FC SA_CODE_4 + 3) will ... for numbers: eg. LET bc=start=length+USR ... will stack start then ... : LET a$=(strexp+STR$ USR ...)(TO 0): puts a ...
    Battle Bunny Battle Bunny September 2017 Sinclair Basic
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    ... ,16
    130 LET A=USR 63002
    140 STOP
    ld bc,8 ; Number of bytes to ... ; INC DE/HL and DEC BC x 8
    ldi
    Paddy Coleman Paddy Coleman September 2017 Development
  • Is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of fileHi, is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of file. E.g.: I have a Tape-Code-File Start f…

    ... /> [code]LET bc=lp=(ll=CODE ("1000bytes"+STR$ USR 1540))[/code]
    USR 1540 just does a RET ...
    Battle Bunny Battle Bunny September 2017 Sinclair Basic
  • 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 …

    ... />
    has corrupted your BC and DE register pairs so the location ...
    jp jp October 2017 Development
  • A Neat Redefine Keys RoutinePreviously, I’ve only shared this routine with a couple of people via PM, but I’ve now decided to make it public. I optimized it for size, so it uses…

    ...

    2$ push bc ;remember counter
    ld a ... ; otherwise, use a 16-bit register
    ;pair, such as ... ;table row

    pop bc ;restore counter
    djnz 2 ... up (HL will be incremented BC times)
    cpir ;while ...
    Ast_A_Moore Ast_A_Moore October 2017 Development
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    ... might execute too quickly, and register the key that you keep ... you run it with RANDOMIZE USR XXXXX, then when you press ...
    Ast_A_Moore Ast_A_Moore October 2017 Development
  • Is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of fileHi, is there a way to suppress error R Tape Loading Error in Basic when trying to load only part of file. E.g.: I have a Tape-Code-File Start f…

    ... ,PEEK 23671
    22 LET bc=USR 3197
    30 RANDOMIZE er ...
    Battle Bunny Battle Bunny October 2017 Sinclair Basic
  • 1k Chess (was the 924 bytes thing!)Hi, I've decided to do a major rewrite of large parts of the code for the isometric Chess thing that I've been messing with. It got to the point, …

    ... counter to 00
    push bc ;

    ... br /> pop bc
    get_len:
    push bc ;save height ... ;test the data register lo-byte to determine ...
    Arkannoyed Arkannoyed October 2017 Development
  • 1k Chess (was the 924 bytes thing!)Hi, I've decided to do a major rewrite of large parts of the code for the isometric Chess thing that I've been messing with. It got to the point, …

    ... height

    push bc ;

    calc_square_addr:< ... current line
    push bc ;save height + current ... /> Set the Board: RANDOMIZE USR 64518
    Display it: ...
    Arkannoyed Arkannoyed November 2017 Development
  • Other than using attributes what other ways to detect collisions, when using char based movement?So I'm slowly working out the bits and pieces to write a game completely in assembly. I've been using attributes when writing in BASIC to detect whet…

    ...
    ld c,0 ;BC now holds Y-position * 256 ... b
    rr c ;BC now divided by 4

    add hl,bc ;Add to attribute address
    BC

    add hl,bc ;Add to ... the stack into a register you're not using ...
    joefish joefish November 2017 Development
  • Other than using attributes what other ways to detect collisions, when using char based movement?So I'm slowly working out the bits and pieces to write a game completely in assembly. I've been using attributes when writing in BASIC to detect whet…

    ... same time with an LD BC,(nnnn) instruction. Just remember the ... then Y, when you LD BC,(nnnn) then X ends up ... in A. I could PUSH BC at the start and POP ... BC at the end so that ... or RL'ed into another register.
    joefish joefish November 2017 Development
  • Cubic RevealI just though I'd develop this a little further. Written a while ago on a whim! [img]https://dl.dropbox.com/s/p44y5dda49ucmop/square_reveal_1_1.gi…

    ... /> ret ;retrieve the result (BC) from BASIC (PRINT USR 40001)
    [/code ... 40000,a
    20 PRINT USR 40001: GO TO 10
    Ast_A_Moore Ast_A_Moore December 2017 Development
  • Cubic RevealI just though I'd develop this a little further. Written a while ago on a whim! [img]https://dl.dropbox.com/s/p44y5dda49ucmop/square_reveal_1_1.gi…

    ... entry point
    ;0beeah - RAND USR 48874
    ;
    ;JES Unknown ... = stored ATTRs address
    push bc
    call copy
    pop ... ;

    copy:
    ld bc,0ffffh ;ATTRs mask
    copy2 ...
    Arkannoyed Arkannoyed December 2017 Development
  • How can I make a UDG rotate?I designed a set of UDG's that can be used for making shapes or letters. Trouble is that my circle - for example - consists of 4 pieces and it would…

    ... somewhere and doing a RAND USR to it from BASIC would ... the result of LET x=USR "A" into bytes 04 and ... the rotated UDG
    ld bc,0808h ;counters
    lp0:
    USR"A" etc
    lp1:
    Arkannoyed Arkannoyed December 2017 Sinclair Basic
  • Why no PLOT, etc. on bottom two lines?I was pondering if there was any way to get PLOT, etc. to address the full screen from BASIC without having to write a few lines of assembler to bypa…

    ... .):
    LET a=x=y+USR Plot191 ... or ... Draw191
    23 FLASH x=y+USR p191: REM = PLOT191 (x ... (z-x)=(191-2*Y)+USR d191: REM = DRAW191 ( ... /> pop de
    ld bc,(23653) ;BC=(STKEND)
    ret
    ...
    Battle Bunny Battle Bunny January 2018 Sinclair Basic
  • The I register pointing to $40–$7f causes ULA snow and a crash. Or does it?I have heard it from numerous sources, including a few members of this forum, that 128K/+2 machines crash if the I register points to a range of $40–…

    ... /> sw or 7
    ld bc,$7ffd
    ld ($5b5c),a ... /> ld de,$f801
    ld bc,256
    ld (hl),$fe ... snippet that changes the I register within my ISR (with the ...
    Ast_A_Moore Ast_A_Moore February 2018 Development
  • Loading Images/Screens mid-gameHi all, Looking to get back into a bit of coding and I couldn't figure out a way to do the following: I have an image/SCREEN that I'd like to b…

    ... /> LD DE,DESTINATION
    LD BC,LENGTH
    LDIR
    RET ... going to
    [b]LD BC , 6912[/b] ; how many bytes ... forget!) then do a RANDOMIZE USR 29000 to 'display' the screen ...
    spider spider April 2018 Sinclair Basic
  • Making sound using the BEEPER in AssemblyI had a look at the the documentation but it doesn't make sense to me. To make music just the beeper all I have to do is send ones and zeros to one o…

    ... /> ld a,$17
    ld bc,$fffe

    loop xor ... the value of the B register, and measured the frequency of ...
    Ast_A_Moore Ast_A_Moore July 2018 Assembler
  • Passing parameter from BASIC to assembler routineWas there a "clean" way of passing parameter(s) from a BASIC program to an assembler routine? Something like parameterising RANDOMIZE USR call? I fac…

    ... Z80 routine like this: PRINT USR address,param1,param2 ... etc. This ... parameters one by one in BC.

    [code]
    ;returns ... the next parameter in BC
    ;at exit, NZ is ... #2DA2 ;calc stack top -> BC
    xor a ;set Z ...
    Hikaru Hikaru November 2018 Development
  • Passing parameter from BASIC to assembler routineWas there a "clean" way of passing parameter(s) from a BASIC program to an assembler routine? Something like parameterising RANDOMIZE USR call? I fac…

    ... Z80 routine like this: PRINT USR address,param1,param2 ... etc. This ... parameters one by one in BC.

    [code]
    ;returns ... the next parameter in BC
    ;at exit, NZ is ... #2DA2 ;calc stack top -> BC
    xor a ;set Z ...
    mr.spiv mr.spiv November 2018 Development
  • Passing parameter from BASIC to assembler routineWas there a "clean" way of passing parameter(s) from a BASIC program to an assembler routine? Something like parameterising RANDOMIZE USR call? I fac…

    ... LET a=10
    PRINT USR 32768,a

    USR address,param1,param2 ... etc ... parameters one by one in BC.

    [code]
    BC
    ;at exit, NZ ... ;calc stack top -> BC
    xor a ;set ...
    mr.spiv mr.spiv November 2018 Development
<1…28293031323334>

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