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.211s
<1…567891011…34>
  • [Asm] Is this nested loop faster than LDIR or a bunch of unrolled LDI's?Hi all. I'm learning Z80 asm on Speccy 48K, and to start with I decided to write my own "CLS" routine (without relying on ROM calls or LDIR) as a lea…

    ... %00000000 ; Usage example: ld a,FLASH_OFF | BRIGHT_ON | PAPER_BLACK ... /> ld a,BORDER_BLACK ; Select a color.
    ld (SYSVAR_BORDCR),a ; Save ... ld a,FLASH_OFF | BRIGHT_ON | PAPER_BLACK | INK_WHITE ; Select attributes.
    ld (SYSVAR_ATTR_P),a ...
    ST1 ST1 November 2018 Development
  • this code wont give me a random starfieldim using a peice of code that ive copied from a book, ignore most of it as it is redundant. for some reason i get a strange random starfield instead …

    ... vertical position of player.
    ld a,(ply) ; player's horizontal position ... our temporary screen colours.
    ld a,32 ; SPACE character.
    rst ... 8k of ROM.
    ld h,a
    ld a,(hl) ; Get "random" number ...
    digital digital July 2020 Assembler
  • Tricks to make mirror image of a graphic?I've been working on a sprite routine for lots of sprites and animations. I'm only storing right facing graphics, and converting them to left facing.…

    ... />
    ld a, c
    add a, %10000000
    ld c, a
    b1: ld a, (de ... />
    ld a, c
    add a, %01000000
    ld c, a
    b2: ld a, (de ...
    ld a, c
    add a, %00100000
    ld c, a
    b3: ld FrankT FrankT December 2020 Assembler
  • Sort 2 byte words (x, y) on ypos, also question about swap (DE), (HL)Well that was a lot of debugging ;) But if you want a routine which takes an array of 16 byte words x, y and then sort them on y (ignoring x), I'm…

    ... , af' ; remember right in A'
    ld a, (hl) ; A = data[right].y
    int r = 2 * i + 2;
    < ...
    // so far
    if (r < n && arr ... [r] > arr[largest])
    largest = r;

    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... /> ld a, (bc)
    ld e, a
    inc c
    ld a, (bc)
    ld d, a ...
    inc c
    ld a, (bc)
    ld l, a ...
    inc c
    ld a, (bc)
    ld h, a ...
    Paradigm Shifter Paradigm Shifter August 2022 Development
  • 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…

    ... .

    If u r using an assembler, the assembler ... /> LD HL, 32000 ;memory location for storing the number
    LD A, ... 2
    LD BC, 2 ; we are ... anything.
    LD (HL), A ; stores the contents of A in the ...
    Arjun Arjun January 2002 Games
  • 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…

    ... .

    If u r using an assembler, the assembler ... /> LD HL, 32000 ;memory location for storing the number
    LD A, ... 2
    LD BC, 2 ; we are ... anything.
    LD (HL), A ; stores the contents of A in the ...
    Arjun Arjun January 2002 Games
  • 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…

    ... to Happen?!?"
    50 Let R = Rnd*16384
    60 Pause 100 ... 50
    90 Randomize usr r

    Enjoy!
    If ... then I'll send you a tap file. But dont all ...
    Anonymous Anonymous June 2002 Sinclair Miscellaneous
  • Machine CodeOk i had a spectrum when i was younger and only used it for playin games and typing simple BASIC programs - i mean really simple! Things like 10 Pri…

    ... are done with labels.
    A small example is this

    LD HL,message
    LOOP LD A,(HL)
    OR A
    RET ... LOOP
    message DEFB "P","R","I","N","T",0
    A)

    If no errors ...
    Dr BEEP Dr BEEP July 2002 Sinclair Miscellaneous
  • Horizontal scrollDoes anyone know how to do a 2 or 4 pixel left or right horizontal scroll of the spectrum screen. I can make a 1 one pixel scroll with: ... rl (hl…

    ...
    You'd probably get a speed gain here by loading ... into a register first.

    ld a,(hl)
    rla
    rla
    ld (hl),a
    dec ... RLA is quicker than RL A (4 compared to 8 ... cycles), or RL r in general. Not much ...
    cyborg cyborg March 2003 Sinclair Miscellaneous
  • Anyone for a hacking challenge ?I have to get the DSK version of Tomahawk to work. It uses the well-known Digital Integration "SECURITY CODE" lock just like in Bobsled, ATF, etc. Th…

    ... the Multiface and then press 'r' to return. Where Genie says ... follows:-

    LD A, (40000)
    DEC A ' option appears again leaving ... 3E 03 LD A,03

    Now press A to (A)lter the ... menu to select a choice!)
    Now press R to (R)eturn to ...
    BadBeard BadBeard August 2003 Sinclair Miscellaneous
  • +D/Disciple games archive?Hi all, Having finally got my disciple to work, I'm starting to have a look at hacking multiload games. Is there any archive on the web with games t…

    ... I'll step you through R-type, since this is ... hl
    ld a,h
    cp 060h
    ld a,(0719ch)
    ... data block named "r-typeA.dat". The "r-type" part of ... modified game snapshot in "r-type.z80" and the ... with 'SAVE "R-TYPE" LINE 1' -- a listing of this ...
    Alcoholics Anonymous Alcoholics Anonymous May 2004 Sinclair Miscellaneous
  • Interrupts details questionSuppose I am writing a game and I want to use interrupts to measure time, draw the screen without flicker, maybe to poll keyboard etc. What kinds of …

    ... this program
    .byte 0 ;R
    .word 0 ;AF
    a
    srl a
    srl a
    ld b, a
    ld a, h
    sla a ...
    sla a ...
    Erlstoned Erlstoned August 2004 Development
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23. Any ideas on how to code …

    ... pointer
    ld d,a ; save range
    ld a,(hl) ; fetch rnd
    inc ... />
    So
    LD A,6
    CALL RND

    will produce ...
    Dr BEEP Dr BEEP September 2004 Development
  • Cobra - scrollingHi everyone, I have been studying some of the code in Ocean' Cobra game using a debugger, in the hope of improving my own scrolling routines. In cas…

    Well it seems Woody is hottest. The ISR loads R with FFh.

    [code]

    ei
    push af
    ld a,ffh
    ld r,a
    pop af
    reti

    [/code]

    Derek
    dmsmith dmsmith October 2004 Development
  • Reading the keyboardDoes anyone have a code sample to read the keyboard in machine code ?

    ...

    .nosym
    ld a,(hl) ; a = ascii code
    scf ; indicate ... 'q','w','e','r','t' ; Q, W, E, R, T
    defb ... ,132,133,'' ; Q, W, E, R, T
    defb '!','@','#','$','%' ; 1, 2 ...
    Alcoholics Anonymous Alcoholics Anonymous November 2004 Development
  • Games that cannot be completed due to bugs - the definitive listIt would be nice if the community of WoS compiled a list of all the games that are known to be impossible to complete due to bugs. Perhaps one day, a…

    ... ,right,up or down (L,R,U,D).

    ... br />
    [code]
    38196 Ld a,(33824) ;Current Room
    38199 ... 38230
    38212 ld a,1 ;
    38214 ld(34252),a ; We are at ... br /> 38217 ret
    38218 ld a,(34270) ;Number items collected PLUS ...
    Mr. Anonymous Mr. Anonymous March 2005 Games
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ...

    .nosym
    ld a,(hl) ; a = ascii code
    scf ; indicate ... 'q','w','e','r','t' ; Q, W, E, R, T
    defb ... ,132,133,'' ; Q, W, E, R, T
    defb '!','@','#','$','%' ; 1, 2 ...
    Alcoholics Anonymous Alcoholics Anonymous July 2005 Development
  • Machine Code: quicksort optimisationI came across this z80 quicksort implementation when going through the wikipedia article on the same. It's 44 bytes long. I was wondering if any of …

    ... /> ld a,(bc)
    ex af,af
    ld a,(hl)
    ld (bc),a
    ex af,af
    ld (hl),a
    ld a,(bc)
    ex af,af
    ld a,(hl)
    ld (bc),a
    Alcoholics Anonymous Alcoholics Anonymous January 2006 Development
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ... hl,de

    ld a,$fe ; check on CAPS key ... br />
    NoSym: ld a,(hl) ; a = key code from translation ... ,84 ; q w e r t
    defb 17 ... 52 ; Q W E R T
    defb 17 ...
    Mr Millside Mr Millside May 2006 Development
  • Xenon TriOxide (Xeo3)I just wanted you all to know that a new cross platform game has started development (well the +4 version has been around a while, but my colleague f…

    ... : inc hl ; 64022
    ld a, (hl) ; 64023
    ... br />
    R-type has more advanced ... inc h ; 35184
    ld l, c ; 35185
    R-type works but ...
    Fikee Fikee November 2006 Development
  • 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…

    ... :

    [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, 20
    ld a,10
    ld (flag),a
    ld hl,text
    loop:
    ld a,(hl ...
    Alcoholics Anonymous Alcoholics Anonymous January 2007 Development
  • Multiface ResidentI'm thinking about adapting some existing code to be Multiface "resident"... but being perfectly honest I'm not quite sure where to start. Any top t…

    ... enable the Multiface then press 'R'eturn. Now Randomize usr 4e4 ...

    ld hl,8195
    ld (hl),82; 'R'
    inc hl ...
    ld (hl),85 ... ),62
    inc hl ; ld a,6
    ld (hl),6

    Mr. Anonymous Mr. Anonymous March 2007 Development
  • The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …

    ... in C.S.S[/url] a year or two ago. One ... [code]
    1 DEF FN r(c,d,p)=c+(p ... PLOT FN r(RND*255,255,PEEK 23672),FN r(RND*175,175, ... /> [/code]

    Which is a much better pseudo-random generator ... (in that it generates a display of points that [i ...
    Dunny Dunny June 2007 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... $: LET C=32: LET A$="": FOR A=0 TO 2: P
    )+(P>20)): NEXT A: LET P=P*(P0)*(P1 ... G: LET S=S+10*(A>4)*(S16: LET S ...
    Dr BEEP Dr BEEP June 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    I presented before a couple one-liners implementing Soko- ... /> READ c:
    POKE USR "a"+f,c:
    NEXT f ... =1 TO 1e9:
    LET r=RND:
    LET i=(INKEY$="7 ... ,RND*29+1; INK 3-2*(r>.1);CHR$ (46+98*(r ... >.1));AT 21,29*r ...
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... Saukas;210649]I presented before a couple one-liners implementing Soko ... /> READ c:
    POKE USR "a"+f,c:
    NEXT f ... =1 TO 1e9:
    LET r=RND:
    LET i=(INKEY$="7 ... ,RND*29+1; INK 3-2*(r>.1);CHR$ (46+98*(r ... >.1));AT 21,29*r ...
    Digital Prawn Digital Prawn August 2007 Development
<1…567891011…34>

Latest Posts

  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    harriusherbartio on 11:40AM
  • 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
ld 6.3K 67.3K
a 589.5K 1.7M
r 19.9K 26.7K
rnd 2.9K 4.1K

Related Threads

  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • T H E . S H A W . B R O T H E R S . . . did you play on these games? . . . . *website online now*There's a Spectrum section on our site at [url="http://www.sickhappyidle.com"]http://www.sickhappyidle.com[/url] (click on the spectrum or go through…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • When would you use LD A,R ?Can anyone tell me a practical use of LD A,R and LD R,A I am confused when you would need to use it?<br /> <br /> Cheers
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • A.T.R.A.M. (AKA)[URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0000319&amp;loadpics=3"]A.T.R.A.M.[/URL]<br /> <br /> Could get the AKA "A.T.R.A.M. Commander …
  • A.T.R.A.M. version 2?[url="http://www.worldofspectrum.org/infoseekid.cgi?id=0000319"]A.T.R.A.M.[/url] users were offered an updated version "From January 1985" with impro…
  • R.I.P. Mr. R.A. Montgomery[url]http://www.cyoa.com/pages/r-a-montgomery-1936-2014[/url]<br /> <br /> [quote]Raymond Almiran Montgomery, original publisher and author of the in…

Related Searches

  • r forum loading error 0 1
  • r tape loading error 0 1
  • f i r e
  • f i r e 2a
  • ld a r
  • ld r a
  • ld a b xor c loop
  • ld a b or c loop
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • ld a 5b5c
  • h a r d
  • ld a r counter
  • ld a r bug
  • ld a ix
  • ld bc 65533 a 254 out c
  • cpi ld a b or c
  • ld ixl a
  • ld a 1 call 1601

Copyright © 2024 World of Spectrum