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.014s
<1…3456789…34>
  • Any ideas on speeding up this assembler segment?It copies a pixel column of a rectangle which may be anywhere in the display file to a pixel column in d$. The source column may start at any bit pos…

    ... position 1->8
    ld a,(hl) ; 7
    rotbit0: ... br /> ex de,hl ; 4
    or (hl) ; 7
    ld (hl),a ; 7 ... set selected bit in d$()
    ex de,hl ...
    Battle Bunny Battle Bunny September 2012 Development
  • BeepFX ProblemHi All, I'm currently trying to integrate the BeepFX engine in my 100% Assembler Game and it plays the sound fine, but then plays the sound again, a…

    ... /> add hl,bc
    ld a,(hl)
    inc hl
    ld h,(hl)
    ld l ... ,a
    push hl ...
    Shando Shando September 2012 Development
  • multi-scroll m/c subroutine for BASICArising from recent posts, here's a scrolling routine that will manage multiple left/right scrollings for any (sensible) line width or step; (ie. whe…

    Arising from recent posts, here's a scrolling routine that will manage multiple left/right scrollings for any (sensible) line width or step; (ie. where width is
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • High Score ASCII array reset ?Hey guys, Noob alert! I'm working on my first game and I'm having problems with the high score on the second time through the game loop. My high …

    ... /> Ld hl, score
    Ld b, 6

    Loop ld, (Hl),'o'
    Inc hl ...
    Atari_Jetman Atari_Jetman October 2012 Development
  • calculator and sinusok, look at the Sysel's routine: [PHP]3 5b00 *s 4 5b00 tabsin = #7000 03 mksin 19.11.1995 Busy soft …

    ...
    8 8004 210070 mksin ld hl,tabsin
    9 8007 7d ... br /> 10 8008 e5 push hl
    11 8009 cd282d call ... 801f e1 pop hl
    24 8020 77 ld (hl),a
    25 ...
    g0blinish g0blinish October 2012 Development
  • Graph Plothi! please, help with code: [PHP]For x=-100 To 100 For y=-100 To 100 If (x/2-25)*(x/2-25)+(y-50)*(y-50)<200 Or (x/2+25)*(x/2+25)+(y-50)*(y-50)<200 th…

    hi! please, help with code:
    [PHP]For x=-100 To 100
    For y=-100 To 100
    If (x/2-25)*(x/2-25)+(y-50)*(y-50)
    g0blinish g0blinish November 2012 Development
  • Optimisations in Exomizer Z80 decrunch codeThis is the 163 bytes old code (simple and optimized): [CODE] ld iy, exo_mapbasebits ld a, 128 ld b, 52 push de exo…

    ... ;bits[i]=b1
    push hl
    ld hl, 1
    defb 210 ... ;bits[i]=b1
    push hl
    ld hl, 1
    defb 210 ...
    antoniovillena antoniovillena November 2012 Development
  • Elliptical ChallengeSubsequent to the recent "Graph Plot" thread, I wrote this general purpose ellipse drawing routine which will plot (although it doesn't actually use …

    ... ;end_calc
    ld hl,(STKENDO)
    ld de,STKSTOR
    ld bc,20
    ld hl,STKSTOR
    ld de,(STKENDO)
    ld bc,20
    Battle Bunny Battle Bunny November 2012 Development
  • Omitting LETAn untested thought. Changing: [code]1B34 SUB $CE ; Reduce command code by $CE to ; give 00 to 31 for comman…

    ... ,TRYLET

    ...
    TRYLET LD HL,(CHADD) ; Step CHADD back to ... statment
    DEC HL
    LD (CHADD),HL
    LD A,'LET'-$CE ; Set ...
    Jonathan Harston Jonathan Harston November 2012 Sinclair Basic
  • Machine code RST10 problemHello! After 27 years of playing with Spectrums I'm starting to look into doing assembly language properly. All went swimmingly well until I wrote …

    ... ,hl ; remember HL as it points to the message
    ld hl ... ,msgctl ; point to message control codes
    .msgpcc ld a,(hl) ... print it
    inc hl ; point to next control character ... ex de,hl ; recall hl pointing to message
    .msgpch ld a,(hl) ; ...
    snigfarp snigfarp November 2012 Development
  • How do you restrict this routines actions?I'm trying to plagiarise a piece of code I came across in the 80's, but seem to be banging my head against a brick wall! The routine fades the scree…

    ...
    l_b798: ld hl, 22528+32
    l_b79b: ld a, (hl)
    ld b, a ... , b
    l_b7ca: ld (hl), a
    inc hl
    ld a, h
    ret

    fader: ld b, 16
    l_b7d5: push ...
    jr l_b798
    l_b7d8: ld bc, 511
    l_b7db: dec ...
    daveysludge daveysludge February 2013 Development
  • Printing textThis is probably quite a basic question, or there might be something obvious I'm missing. I'm looking for an economical way of printing formatted te…

    ...

    ld hl,text_to_print

    print_text
    ld a,(hl)
    or ...
    rst 16
    inc hl
    jr print_text

    Morkin Morkin April 2013 Development
  • "Chronos": how fast should it really be?I was reading [URL="http://timfollin.pwp.blueyonder.co.uk/Archive.htm"]Tim Follin's webpage[/URL] the other day and came across a curious remark abou…

    ... 58426: ld hl, 64484
    58429: ld de, 3
    58432: ld b, 128 ...

    58434: rld ;1
    58436: dec hl ... :
    [CODE]
    ld hl, 64484
    ld b, 128


    rld
    dec hl ; take care of misaligned buffer ...
    introspec introspec May 2013 Development
  • Chronos (BUGFIX)Please add the following "known errors" entry to [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0000951"]Chronos[/URL]: [QUOTE]Bugfix provid…

    ... cycle:
    [CODE]58426: ld hl, 64484 ; off-screen buffer
    rld
    dec hl
    nop ; unnecessary NOP< ... below:
    [CODE]58426: ld hl, 64484 ; off-screen buffer
    Einar Saukas Einar Saukas May 2013 Infoseek database
  • Works in Fuse & SpecEmu, not ZXSpinI decided that I wanted to change the scroll routine which I was using for compiling the Trailblazer maps, as I'd just copied it out of Andrew Hewson…

    ... /> call CHARSCROLL
    ld hl,23296
    ld de,16394 ;HL=(DF_CC) for line ...
    call PATTERN
    ld de,16426 ;HL=(DF_CC) for line 1 ...
    Battle Bunny Battle Bunny June 2013 Emulators
  • Some thoughs about fast scrolling on 128 modelPlease, consider this article as technically interesting concept not a proven algorithm. ONE The fastest scrollers use long sequence of PUSH inst…

    ...
    [CODE]
    ld hl, (register_x)
    push hl
    [/CODE]
    Stop ... it generates
    [CODE]
    ; ld hl, (register_x) - it is same pattern ... we skip loading
    push hl
    [/CODE]
    Do you ...
    catmeows catmeows June 2013 Development
  • Idk>le me browsing through some game's code >..... [code]61A8 F5 push af 61A9 3EFF ld a,FF 61AB D37F out (7F),a 61AD D33F ou…

    ... 22BE62 ld (62BE),hl
    620F 2100CD ld hl,CD00
    6212 22BC62 ld (62BC),hl ... call 62C3
    622B 73 ld (hl),e
    622C 23 inc ...
    623E 21E462 ld hl,62E4
    6241 011A00 ld bc,001A
    Hikaru Hikaru June 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…

    ... /> [code]
    ld l,155
    ld c,200
    ld a,c ...
    add a,l
    ld c,a
    ret
    [code]
    ld hl,0
    ld bc,0
    [/code ...
    Tobo Tobo June 2013 Sinclair Miscellaneous
  • Struggling with this routine... Any ideas?I'm trying to write a routine that plots 3 pixels to decrease the energy bar in the top right corner by 5 units, but it just wont have it! There mus…

    ... /> [CODE]org 30000
    ld b,5 ;decrease energy by ... push bc
    loop1 ld hl,51993 ;address energy level is ... stored
    dec (hl) ;decrease energy level(5 ... br /> ld (23695),a ;set colour
    ld a,(hl) ; ... load a with energy level
    ld b ...
    daveysludge daveysludge July 2013 Development
  • Rotronics Wafadrive v.1.80 ROM - Corrupt or purposely broken?I've been digging around the Wafadrive v1.80 ROM (from [URL="http://zxspectrum.it.omegahg.com/_RO.htm"]here[/URL]) and can't decide if the ROM is cor…

    ... ld hl, $009f
    ex (sp), hl
    push hl
    ld e, a
    ld ... d, $00
    ld hl ... hl, de
    ld e, (hl)
    inc hl
    ld h, (hl)
    ld ... ;
    l_0d63: ld hl, ($5ce3)
    jp (hl)
    ;
    jp jp July 2013 Hardware
  • Strider II (and others) + 3 disk versionsHello everyone, I've been working on converting some games to be able to load them from the +3 floppy. I started with single load games but now Im i…

    ... /> call paging

    ld hl, 0
    ld de, 0
    call ...

    read_fileLenght

    LD HL, 16 ; set position after first ... /> ld HL, 53248 ;block "B" dest addr
    ld (destadd+1), hl
    ld a ...
    BCH BCH July 2013 Games
  • 30-column 8x2 multicolor (even in 48K)I don't recall any 8x2 multicolor routine for 30 columns that would work on all Spectrum models (including the Spectrum 48K), so I decided to write i…

    ... LD HL,nn
    LD DE,nn
    LD BC,nn
    EXX
    LD HL ... PUSH HL ; columns 21 and 22
    LD HL,nn
    LD (nn),HL ; ... columns 29 and 30
    ADD HL,HL ...
    Einar Saukas Einar Saukas August 2013 Development
  • Movin And A Groovin Horizontal Flip improvementOn the left is the flip horizontal portion from Andy Pennell'S excellent Movin' & a Groovin' machine code screen routines from Your Spectrum #19 (Oct…

    ... />
    FLIPHO LD HL,#400F ;LHS FlipHorizontal LD HL,16384+15
    LD IX,#4010 ... /> flattr LD A,(HL)
    LD C,(IX+0)
    LD (HL),C
    LD (IX ...
    MatGubbins MatGubbins August 2013 Development
  • MGT MOUSE - exist really ?I read disassembly of +D rom/ram code and from address #2249 is routine for read MGT MOUSE ports. I can't find any info about "MGT MOUSE". Exist real…

    ... 2255 LD HL,#228B,SIGN_MOUSE
    2258 PUSH HL
    2259 LD HL,# ... 2275,MOVE_VERT
    225C PUSH HL< ...
    2275 MOVE_VERT LD HL,#3DF2 Y-coordinate of mouse ...
    velesoft velesoft August 2013 Hardware
  • Routine for Currah speechI'm currently writing a routine for the Currah that will provide speech during a game. A timer is set to initiate the speech every 50 cycles of the …

    ... />
    Start: ld hl, Dat1
    ld de, 65361
    ld b, 15 ;load ... with 4
    Loop: ld a, (hl)
    ld (de), a ;load allophone ... last byte in buffer
    ld (65364), hl ;update pointer
    ret ...
    daveysludge daveysludge August 2013 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…

    ... = LD A,
    06 = LD B,
    0E = LD C,
    16 = LD D ... = LD E,
    26 = LD H,
    2E = LD L,
    01 = LD BC ... ,
    11 = LD DE ... ,
    21 = LD HL,
    wibble wibble August 2013 Development
  • MC LPRINT 23681Having problems with this routine to print large on the screen using LPRINT, it works ok in BASIC, but cant seem to get it to loop for some reason in…

    ... call cols ;fill attributes
    ld hl,72 ;start of address to ... br /> loop ld (23681),hl ;poke address with hl
    push hl
    ... cols ld hl,22816 ;random colours
    ld b,159
    lp2 ld a ... inc a
    ld (hl),a
    inc hl
    djnz lp2
    daveysludge daveysludge September 2013 Development
  • JSW2 - Game Loader DifferencesThere are three official releases of JSW2. I'm not counting the 'JSW2-128' version here as far as I'm aware this was not in any way 'official' as it …

    There are three official releases of JSW2. I'm not counting the 'JSW2-128' version here as far as I'm aware this was not in any way 'official' as it incorporates a built in cheat mode. Feedback on this point is appreciated. To quote the readme:

    spider spider September 2013 Sinclair Miscellaneous
  • 128 BASIC-compatible way of loading BASIC as code?On a 48K Speccy (or from 48 BASIC or USR 0 mode on a 128K machine), one can do a silly trick like this: [code];; load a 4000 byte BASIC program ld i…

    ... byte BASIC program
    ld ix,23552 ; start address ... of system variables
    ld de,4000
    call ... line 100
    ld hl,100
    ld (23618),hl
    ld a,1 ; ... statement 1
    ld (23620), ...
    stephenw32768 stephenw32768 September 2013 Development
  • SCREEN$ bug fixI've been using the SCREEN$() function recently for reading data off the screen rather than taking up space with an array and I got fed up with the s…

    ... discard
    ld hl,(23606) ;HL=(CHARS)
    ld (23680),hl
    ld hl,(23675) ;HL=(UDG)
    dec h
    ld ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
<1…3456789…34>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    Your Spec-chum on 2:19PM
  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • 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

HitBox

Word Docs Hits
ld 6.3K 67.3K
hl 6.2K 48K
5678 32 35

Related Threads

  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code]<br /> <br /> dec bc<br /> ld a, b<br /> or c<br /> jp nz, loop<br /> <br /> can be replaced (bc starts &gt;255, sho…
  • 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
  • Correct flag response to BIT n,(HL) etc.When running the test program suggested by Arjun (thanks again), all intructions are passing the flag tests except the BIT n,(HL), BIT n,(IX+dis) and…
  • Contention: LDI vs LD (ss), rAccording c.s.s. FAQ:<br /> <br /> instruction LD (ss),r breakdowns as pc:4,[b]ss:3[/b]<br /> and LDI as pc:4,pc+1:4,hl:3,[b]de:3,de:1 x 2[/b]<br /> …
  • rotating HL left through CarryI've tried this several ways, and it works for a while, then a particular value has a bit set in an inconvenient place and it all goes to pot.<br /> …
  • Restore HL' to?It is probably a simple question, but it's been escaping me for quite some time now.<br /> <br /> Is there an 'universal' value you should restore HL…
  • Getting PC into HLHello, here's a conundrum for you...<br /> <br /> Is there a way to obtain the value of the PC register (say into HL) without using absolute addressi…
  • Z80: ABS(HL) functionI must be very tired but I cannot get my head around whether this function provides a correct implementation of a ABS function for a signed 16-bit va…
  • JP (HL) confusionokay.... JP nn will jump to memory address nn.<br /> JP (HL) ,I assumed would read the contents of memory address HL and jump to the location<br /> …

Related Searches

  • ld ix
  • ld bytes
  • ld hl de
  • return to basic hl
  • ld bc eostr string
  • ld am
  • ld a r
  • ld r a
  • call hl
  • ld a b xor c loop
  • ld a b or c loop
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • ld fe 00
  • slt format hl
  • ld bc hl
  • 33 ld hl xxxx
  • screen buffer pop bc ld sp hl
  • ld 23641 hl

Copyright © 2024 World of Spectrum