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.013s
<1…45678910…34>
  • Problem with DivIDEHi There is a problem on ZX-Spectrum +2 (Grey Model) + DivIDE 2k14 here is video with problem [URL="http://www.youtube.com/watch?v=nIQboFo7Epc"]h…

    ... ]

    [CODE] ld de,#3808
    i_04
    ld hl,#5818
    i_02 ...
    ld bc,#001f
    i_03
    ld (hl),d
    add a,a< ...
    ld (hl),e
    inc hl
    djnz i_03
    ld bc,#0018 ...
    Jerri Jerri May 2014 Hardware
  • Currah ?Speech channelIt seems to me that it would be nice to be able to send words to the ?Speech with PRINT #5;"Speak English to me, Jimmy" or some such. There really i…

    ... /> ld d, 0
    ld e, a
    add hl, de ; allophone
    ld a, (hl ... ) ; get allophone
    ld hl, (65362) ; address buffer
    ld (hl ...
    chev chev June 2014 Development
  • Hooky - hook ZX ROM and rewire RST and NMI to RAM - rantThis is a rather long rant. Not for short tempered. :) The objective is to hook into RST "vectors" and NMI on a Spectrum without affecting the normal…

    ...
    0x11DA LD H,D ; HL = DE (0xffff)
    0x11DB LD L,E

    downloop:
    0x11DC LD (HL ... LD DE,3EAF
    0x1206 LD BC,00A8
    0x1209 EX DE,HL ; HL=3EAF, DE=FFFF ...
    tstih tstih July 2014 Development
  • Problem Reading the KeyboardHi Folks, I'm working my way through Toni Baker's rather good book and thought I'd write some code to scan the keyboard and store the results so tha…

    ... to copy
    LD DE,_oldKeyStates ;Destination
    LD HL,_currentKeyStates ;Source
    LD HL,_currentKeyStates ;Where to store ... keyboard segment number
    LD HL,_keyboardSegments ;Calculate the keyboard ...
    KrazyKattapilla KrazyKattapilla July 2014 Development
  • Simple text scrolling routine...I'm having trouble writing a very simple text scroller, the idea is to use the ROM printer routine to print 32 characters each time the routine is ca…

    ... routine is called, updating the de string start address by 1 ... new number
    ld (point+2),a ;load de with new start ... /> call 5633
    point ld de,dat
    ld bc,32
    call ...

    attr
    ld hl,23264
    ld b,64
    loop ...
    daveysludge daveysludge September 2014 Development
  • Help needed with a bit of code...My minds gone blank again I'm afraid, I'm having trouble with this routine that loads variables into memory then calls the corresponding routine. Th…

    ... ]ld b,3
    ld hl, cor
    ld de,adds
    loop
    ld a,(de ... )
    ld (caller ... be called in de
    inc de

    ;ld a,(hl) ;hl stores variables ...
    daveysludge daveysludge October 2014 Development
  • Pixel level collision detection[SIZE=3][FONT=Calibri]I need to do some pixel level collision detection. Assuming I have a byte of my ?player? sprite in DE and a byte of screen to t…

    ... in DE and a byte of screen to test in HL I ... /> [CODE]
    ld a, (de)
    ld b, a
    xor (hl)
    and ...
    Mr Millside Mr Millside November 2014 Development
  • Return to basic from sna created by Z80 compilerHow can I go back to basic when running sna created using Z80 Assembler ([url] http://www.worldofspectrum.org/utilities.html#crossass [/url])? For e…

    ... /> ld hl,16384
    ld de,16385
    ld bc,6143
    ld a,255
    ld (hl ... ),a
    ldir
    skok: ld a ...
    princm princm January 2015 Development
  • Double height text...<p>Is here any good routines for printing a font double height?</p><p>I've concocted this ridiculous routine but I'm sure it can be done much better.…

    ... />  ld de,dat1
    loop2
     ld a,(de)
     ld (char),a
     push hl ... de
     pop hl
     inc de ld hl,x1+1
     inc (hl)
     
     ld hl ... ,x2+1
     inc (hl ...
    daveysludge daveysludge June 2015 Development
  • Drawing some spritesI figured I want to draw some sprites. My target was to do a 16x16 masked sprite. There's no clearing here, just drawing the sprites. My first ite…

    ... hl
    or (hl)
    ld (de),a
    inc hl
    inc de

    ld ...
    Sol_HSA Sol_HSA November 2015 Development
  • WANTED Machinecode Routine for Paging in Betadisk TR-DOS v5 ROMI try to build a small MCode-program which writes the TR-DOS-ROM v4 / v5 to RAM adress 40000 an up. It´s working on TR-DOS v4 / Betadisk 48k: C…

    ... an additional PUSH HL for RET
    PUSH HL ;Put the ... 40000:
    LD HL, 0
    LD DE, 40000
    LD BC, 16384

    LD C,0 ;Set DOS Routine ... 40000:
    LD HL, 0
    LD DE, 40000
    LD BC, 16384
    Luzie Luzie December 2015 Hardware
  • Mr. Jido makes some noiseA little something to analyse and discuss for you. [code] ORG 60000 ; RND Generator: RND LD HL,EARTH LD A,(WIND) ADD A,L LD …

    ... /> LD HL,WIND
    INC (HL)
    LD E,(HL)
    LD HL,EARTH
    ADD HL,DE
    LD ... A,(HL)
    LD (RANDOM ...
    Andy Schraepel Andy Schraepel December 2015 Development
  • Problem with BC corrupting after DJNZJust for fun, I'm messing around trying to get the level maps from Lemmings to display on the screen with machine code. It's been ages since I did an…

    ... ]
    MAIN LD HL,50213 ; MAP START ADD
    LD DE,16384 ; SCREEN ... START ADD

    LOOP1 LD BC,8 ... THE LINE COUNTER

    LD BC,32 ; SET THE COUNTER ... THE MAP ADDRESS
    ADD HL,BC ; ADD 32 TO THE ...
    mulder mulder January 2016 Development
  • Text scroller and custom fontYesterday I was testing this text scroll routine taken from Jonathan Cauldwell's Intro Maker (labels have been inserted to allow partial code relocab…

    ...

    LD HL, FONT
    LD (23606),HL
    LD DE,L_35413
    LD BC,00001 ... : LD A,(DE)
    AND C
    JR Z,L_35464
    INC (HL ... H
    INC DE
    DJNZ L_35459
    LD HL,PUNTO_A
    RRC ...
    Alessandro Grussu Alessandro Grussu January 2016 Development
  • Add with Carry ExampleHi, I have been really struggling to understand this simple example from Mastering Machine Code and I wonder if anyone can help? I have include…

    ... :

    [code]LD DE,3385
    LD HL,7BC7
    LD A,L ;A ... ;A = 7B + 33 = AE
    LD L,A ;L = AE
    LD H,A ;H = 4C
    HL etc, then the H is ...
    jonesypeter jonesypeter June 2016 Development
  • Z88DK NOOB cplot INK colorHi I am a complete NOOB with Z88DK, I am trying to draw colored circles. How does ink, paper and border work with Z88DK. I started trying to wo…

    ... />
    POP HL ; HL = return address
    POP DE ; E = y, ... CALLEE functions)
    PUSH HL ; push return address back ... /> djnz PLOTBIT
    or (hl)
    ld (hl),a

    RET ...
    andydansby andydansby June 2016 Development
  • Basic Screen Shadow QuestionHello, I've been porting a game to the Spectrum from another platform. So far so good and I have per pixel screen scrolling working really nicely …

    ... /> ld hl, attrib_data
    ld b, %01111000
    ld de, 768
    _loop:
    ld (hl), b ...
    inc hl
    dec de
    ld ...
    pointblnk pointblnk August 2016 Development
  • Flicker-free animationTrying to create flicker-free screen update, but... Where I'm wrong? [url="https://dl.dropboxusercontent.com/s/pfywhfejfmwt2zq/test_128.sna"]Snaps…

    ... /> draw_keep:
    ld hl, SCREEN
    ld de, SCREEN+1
    ld bc, CYCLES-1 ... /> rrc a
    ld (keeper), a

    ld (hl), a
    ldir ...

    ret

    swap_video:
    ld ...
    Bedazzle Bedazzle October 2016 Development
  • Code optimisation! 16bit number to 5 digit stringJust for interest this one, any thoughts on how to make this as fast as possible? Little optimisations to this routine or a complete reimagining? …

    ... />
    [code]number2string: ;arrive DE number, HL at end of string,assume ... br /> jp c,cont
    ld (hl),'0' ;yep,reset and do ... ,c ;HL back to start of string
    dec de ;decrease ... number counter
    ld a,d
    R-Tape R-Tape December 2016 Development
  • How would you do a negative image ?So I want to invert a Speccy bitmap. What would be the fastest and easiest way to this ? I've been using this a lot but I can't see how I could achi…

    ... addresses HL to DE.
    ie
    LD HL, 16384
    LD DE, 51444
    LD BC ...
    ivanb303 ivanb303 December 2016 Assembler
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... bits, simply add the instruction LD DE,(SEED+2) just
    ... ,$38 ;restack,end_calc
    LD A,(HL) ;Fetch the exponent of ... . divide 'last value'
    LD (HL),A ;by 65536 to give ... last value'.
    RANDOM0:POP HL ;discard $2d2b ;STACK_BC return ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • Scrolling loader counter in 85 T-States?Would it be possible to write a scrolling loader counter in 85 T-States? I have a custom screen load routine that loads attribute first, then the …

    ... /> ld hl,22528 ; attributes
    ld de,49152 ; destination
    loop2: ld (saveaa+1),hl ; ... save attribute address
    ld a,(hl) ; get attribute
    ld (de ... address in hl
    loop1: ld a,(hl) ; get pixel
    ld (de),a ; ...
    FrankT FrankT February 2017 Assembler
  • A sped up pixel-shift routine for 1-byte–wide spritesHere’s an optimized (for speed) real-time sprite shifting routine for sprites that are one byte wide. It uses no memory variables for storage of inte…

    ... /> ex de,hl ;save screen address in DE

    ld hl,(sprite_8x8) ;point HL to ... sprite data
    ld b ... /> ex de,hl ;screen address -> HL, spite data -> DE

    ld a,(hl ...
    Ast_A_Moore Ast_A_Moore February 2017 Development
  • Copying a single character from one place to another?[code] ORG 33000 LD A,8 LD HL,16384 LD BC,256 LD DE, 18432 LOOP: PUSH AF LD A,(HL) LD (DE),A ADD HL, BC POP AF DEC A JR NZ,LOOP REST […

    ...
    LD A,8
    LD HL,16384
    LD BC,256
    LD DE, 18432 ...
    LOOP:
    PUSH AF
    LD A,(HL)
    LD (DE),A ...
    ADD HL, BC
    POP ...
    ivanb303 ivanb303 March 2017 Assembler
  • ZXSCLZF - Yet another Screen CompressorQuick disclaimer before I continue, this compressor does not shrink screens as small as some of the others posted here, in particular the very good z…

    ... /> ld d,(hl) ; 7t - start screen pos into de
    inc hl ; 6t
    ld ... /> ld a,(hl) ; 7t - get literal
    inc hl ; 6t - next mem
    ld (de ...
    _ulzfa040:
    ld a,(hl) ; 7t
    ld (de),a ; 7t
    call ...
    TomD TomD April 2017 Development
  • Mojon Twins MK2 and lighting effectsDoes anyone have any experience in getting the overlay.h working in the MK2 engine. There were several games written in the churro that used the ove…

    ...
    add hl, de ; hl = ovl_y * 36 + ovl_x
    ld de, _ovl_buff
    add hl, de ; hl = _ovl_buff ...
    add hl, de ; hl = ovl_y * 36 + ovl_x
    ld de, _ovl_buff
    add hl, de ; hl = _ovl_buff ...
    andydansby andydansby June 2017 Development
  • how does this multiplication routine work?taken from chuntey wordpress: imul ld e,d ; HL = H * D ld a,h ; make accumulator first multiplier. ld …

    ... /> ld hl,0 ; zeroise total.
    ld d,h ; zeroise high byte so de ... =multiplier.
    ld b,8 ; repeat 8 ... wasn't set.
    add hl,de ; bit was set, so add ...
    slenkar slenkar July 2017 Assembler
  • what is wrong with this loop?here is the loop: ld b,12 ld a,31 ld de,right_screen_array right_screen_array_label call charaddress ex de,hl ;de now contains screen address…

    ... /> ex de,hl ;de now contains screen address hl contains array location
    ld (hl),e ...
    inc hl
    ld (hl),d
    inc hl
    ex de,hl
    slenkar slenkar July 2017 Assembler
  • High score table routineI wrote this general purpose high score table routine. It stores 5 scores and displays them alongside the player names, which are 8 characters long. …

    ... /> LD HL,THIRD
    LD DE,FOURTH
    LD BC,2
    LDIR
    LD HL, POS_3 ... /> LD HL,SECOND
    LD DE,THIRD
    LD BC,2
    LDIR
    LD HL, POS_2 ...
    Alessandro Grussu Alessandro Grussu July 2017 Assembler
  • Flood Fill IssueHi Folks, Came across the following Flood Fill routine by John Metcalf: [code]; scanline fill by John Metcalf ; call with d=x-coord, e=y-coo…

    ... rightedge 60039 28 0D
    ld (hl),a 60041 77
    ... rightedge:
    pop de 60054 D1
    ld a,e 60055 7B ... br /> or (hl) 60083 B6
    cp (hl) 60084 BE
    push de 60101 D5
    jp (hl) 60102 E9[/code ...
    Paddy Coleman Paddy Coleman August 2017 Development
<1…45678910…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
hl 6.2K 48K
de 9.7K 27.3K

Related Threads

  • Sort 2 byte words (x, y) on ypos, also question about swap (DE), (HL)Well that was a lot of debugging ;)<br /> <br /> But if you want a routine which takes an array of 16 byte words x, y and then sort them on y (igno…
  • Music on Tour de Force (Gremlin)Has this game really a music somewhere ?<br /> Perhaps the 48K bzz-bzz at the beginning of any level and/or for game over is considered "music" ?<br …
  • Scrabble De-luxe dsk image and SpinAnyone else tries loading the disc file of Scrabble De-Luxe into Spin?<br /> All I get is the loading screen keep appearing and disappearing - as if …
  • Viaje al Centro de la Tierra - questionsI would like to know the following informations about this game:<br /> <br /> 1) What does the title mean in English? I guess that the game is based …
  • 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…
  • How many T-states takes PUSH DE ?Hi.<br /> <br /> Just a quick one.<br /> According to z80.info docs, a PUSH DE should take 11 T-States to be executed.<br /> <br /> But WHAT if SP is…
  • Spectrum and other vintage 8bitters on Ebay.deI'm going to give away several historic machines (Sinclair, Commodore, Robotron, Amstrad). I'm starting tonight with a spectrum with extra Joystick i…
  • Tour de FranceThe opening ceremony for the Tour takes place in Trafalgar Square at 6 p.m. this evening and Sir Clive should have a pigeon's eye view from his penth…
  • My rubber 'stick needs to be de-squeaked ... but how?I've got a still-functional Logitech Wingman Extreme (Digital) and love it ... but the rubber casing between the 'stick and the base is a bit squeaky…

Related Searches

  • ld ix
  • ld bytes
  • return to basic hl
  • ld bc eostr string
  • ld am
  • ld a r
  • ld r a
  • de spectrum
  • la diosa de cozumel
  • los amores de brunilda
  • call hl
  • ld bc hl
  • sub hl de
  • sjasmplus sub hl de
  • ld hl 5678
  • 33 ld hl xxxx
  • screen buffer pop bc ld sp hl
  • ld de 11
  • ld 23641 hl
  • ex hl de

Copyright © 2024 World of Spectrum