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.012s
<1…3456789…34>
  • Need help with keyboard scanning ?After getting frustrated with learning ASM for a while I'm back into it. The little listing below is using the ROM's PRINT AT routine to draw me a sp…

    ... .
    [code]
    LD HL, UDG
    LD (23675),HL
    LD A,2
    MAIN:
    CALL DRAW
    LD A,(INKEY)
    CP 13 ...
    ivanb303 ivanb303 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…

    ... think?
    [code]
    ld hl,22528
    ld a,10 ; This the ... row number
    ld bc,10; This is the ... bc
    ld bc,32
    LOOP:
    add hl,bc
    pop bc
    add hl,bc
    ld a,(hl) ; a now holds ...
    ivanb303 ivanb303 November 2017 Development
  • Detecting +3 / +2AWhat's a simple but reliable way to detect if code is running on a +2A/+3? My first though was to try switching to ROM2 and then checking for the …

    ... official paging port
    ld hl,$c100 ; address in upper page ... change to page 0
    ld (hl),c ; write test byte< ... upper 2 bits ignored)
    ld (hl),l ; write new byte< ... change to page 0
    ld a,(hl) ; read byte
    ...
    FishFinger FishFinger December 2017 Development
  • No-tearing (“vsync”) Full Screen FadeSeeing as most screen fades exhibit visible tearing, I wrote my own routine which does away with that problem. Simple, effective, short, and fully re…

    ... of seven colors
    fade0 ld hl,$5800 ;beginning of attr area ... beam

    fade1 ld a,(hl) ;read attr into A
    f1 ld a,(hl) ;reload A with attr
    ld (hl),a ;write attr
    inc ...
    Ast_A_Moore Ast_A_Moore December 2017 Development
  • Prportional Ascii text scrollerA couple of years ago I wrote a little scroller that nestles at the top of RAM (FFCA - 65482) and scrolls standard Ascii encoded text from anywhere y…

    ... ld hl,0fe92h ;character set-1
    ld c,(hl) ... ;counter into C
    push hl ;save HL
    print:
    ld ... />
    ld (hl),b ;reset counter< ...
    Arkannoyed Arkannoyed August 2018 Development
  • Printing text, part MMXIIXI'm pretty sure there's been a zillion threads about this already, and I don't think it's the first one by myself either, but here goes. Proportiona…

    ... /> add hl,de
    ld e,(hl)
    inc hl
    ld b,(hl)
    ld a ... /> ld h, #0x00
    add hl, hl
    add hl, hl
    add hl, hl
    ld e ... ,-4 (ix)
    ld d ...
    Sol_HSA Sol_HSA December 2018 Development
  • Printing text using direct screen addressingHaving some problems printing using the FASE engine which is currently defeating me. Hoping to have someone clear out the bit of fog currently dwell…

    Having some problems printing using the FASE engine which is currently defeating me. Hoping to have someone clear out the bit of fog currently dwelling in my brain for this function. I'm trying to get the text working properly in 128k mode which uses ...
    andydansby andydansby December 2018 Development
  • Help With infinite music on 128KHi :) I'm trying to play infinite simple music on 128K , but i don't know what is wrong with the loop I tried this routine but doesn't work I…

    ... /> ld hl,$FEFF
    ld (hl),lowRSI
    inc hl
    ld (hl), hiRSI
    ld a ... ,$FE
    ld ...
    inc hl
    inc hl
    ld (pos),hl
    ei
    maeloterkim maeloterkim July 2019 Development
  • Is it possible to run a single BASIC line via a ROM CALL of the Standard ZX 48k ROM?On: https://cygnus.speccy.cz/popis_trdos-assembler.php I found the following code: [code] CHADD equ 23645 ; Location of SOS variable CHADD ld…

    ... /> ld hl,(CHADD) ; Start to save true CHADD
    ld (TEMP),HL ; ... of true CHADD
    ld HL,SAVE ; Address of SAVE ... called
    ld HL,(CHADD)

    ld (TEMP),HL ; The routine ... /> call 15619
    BACK ld HL,(TEMP) ; Start to restore ...
    Luzie Luzie October 2019 Development
  • No AY sound from online emulatorsI've writing an app that makes sound using the AY. I have a simple update mechanism that works like this: 1. During a frame, I write values to a b…

    ... /> do_update_ay
    ld hl,ay_regs
    ld d,0
    ld c,LOW(AYCTRL ... /> out (c),d
    ld e,(hl)
    ld b,HIGH(AYDATA)
    out (c),e
    inc hl ...
    evilpaul evilpaul June 2020 Development
  • why am i getting b integer out of range in this code?ive tried running this in spin but thats what i get [code]main org 40000; ; We want a black screen. ld a,71 ; white ink (7) on black paper (0…

    ... /> ; Set up the graphics.
    ld hl,blocks ; address of user-defined ... /> ld hl,21+15*256 ; load hl pair with starting coords.
    ld (plx),hl ... location.
    inc hl ; Increment pointer.
    ld (seed),hl
    ret
    digital digital June 2020 Assembler
  • 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 …

    ... /> ; Set up the graphics.
    ld hl,blocks ; address of user-defined ... .
    ld hl,3861 ; load hl pair with starting coords.
    ld (plx),hl ; set ... location.
    inc hl ; Increment pointer.
    ld (seed),hl
    ret
    digital digital July 2020 Assembler
  • 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…

    ... /> ld ($fdfd), A
    ld HL, INT_ROUTINE ;;different
    ld ($fdfe), HL
    ld HL, FIFTIES
    ld (HL ... /> ld H, 0
    add HL, HL
    add HL, HL
    add HL, HL
    ld A ...
    andydansby andydansby July 2020 Development
  • Textured Scanline Flood Fill for ZX Spectrum 48KPity that it's quite hard to contribute code to WoS in a straightforward manner. Recently, I have created a textured/hatched fill M/C routine for the…

    Pity that it's quite hard to contribute code to WoS in a straightforward manner. Recently, I have created a textured/hatched fill M/C routine for the ZX Spectrum 48K. It was for a text/graphic adventure I'm working on. The algorithm is based on [url="http ...
    Volker Volker February 2021 Software
  • 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 l, a
    add hl, hl
    add hl, hl
    add hl, hl ; HL = char ... /> .ok
    ld (scr_out_row), hl
    ld de, cursor_row
    ld hl, scr_out_row
    ldi ...
    Paradigm Shifter Paradigm Shifter August 2022 Development
  • Calling all coding munkeez...Having spent the last 8 years as a Windows application developer I thought I'd try my hand at a bit of Z80 speccy coding - something I missed out on …

    ... /> Like

    LD HL,16384
    LD A,(HL)

    must work ... like this:

    LD HL,16384
    LD ... A,(HL+higherload)
    Dr BEEP Dr BEEP February 2002 Sinclair Miscellaneous
  • ZX48k terminal...Hello everybody, I thought someone might help me. I connect my good old ZX48k to my PC via serial (IF1) link, and I was trying to write a little term…

    ... :

    ld hl,MyReader
    ld (HD_11),hl
    rst 08
    MyReader:
    ld hl,SER_FL
    ld a,(hl)
    and a< ... amp;0B98
    inc hl
    ld a,(hl)
    scf
    ...
    john john December 2001 Sinclair Miscellaneous
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... ;restaurar
    ld bc,(tempbc)
    ld hl,(temphl)
    LD A,C ;
    or_pixel: ex de,hl
    or (hl)
    ld (hl),a

    rtunes rtunes October 2001 Sinclair Miscellaneous
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... /> ld hl,0
    ld (counter),a
    ld a,&xx
    ld i ... program--

    ld hl,(counter)
    ld bc,hl
    ret


    ld hl,(counter)
    inc hl
    ld (counter),hl

    ei ...
    cyborg cyborg October 2001 Sinclair Miscellaneous
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... restaurar
    ld bc,(tempbc)
    ld hl,(temphl)
    LD A,C < ... ld h,(hl)
    ld l,a
    ld a,(de)
    or (hl)
    ld (hl ...
    rtunes rtunes October 2001 Sinclair Miscellaneous
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... /> 7 ld h,(hl)
    4 ld l,a
    7 ld a,(de ... )
    7 or (hl)
    7 ld (hl),a
    10 pop ... /> 7 ld h,(hl)
    4 ld l,a
    7 ld a,(bc ... )
    7 or (hl)
    7 ld (hl),a
    20 ld ...
    Dr BEEP Dr BEEP October 2001 Sinclair Miscellaneous
<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
23641 33 47
hl 6.2K 48K

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
  • ld hl 5678
  • 33 ld hl xxxx
  • screen buffer pop bc ld sp hl

Copyright © 2024 World of Spectrum