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>
  • 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 DOS_EST_1346 ... /> openfile

    LD HL, filename ; file name
    LD DE, 2 ; E=2 ... /> destadd LD HL, 0 ;dest addr
    blocklg ld de, 0 ;lenght
    ld BC ...
    BCH BCH July 2013 Games
  • Full 16*16-digit BASIC multiplicationI liked Andre Adrian's 32-bit long multiplication routine so much that I decided to a decimal version. After all, 2^63 is only 9223372036854775808, a…

    ... REM EXX
    1060 : REM LD A,B ; MPR IS B ... 1070 LET A=17 : REM LD B,33 ; INITIALIZE LOOP ... LET I=0 : REM ADD HL,DE ; RESULT += MPD
    ... I=0 : REM ADC HL,DE
    1141 LET L= ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • 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,nn ...
    LD DE,nn ...
    LD BC,nn
    LD IX,nn
    LD ... and 28
    LD HL,nn
    LD DE,nn
    LD BC,nn
    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…

    ... LD (HL),A ; poke flipped byte
    ADD HL,DE ADD HL,DE
    ADD IX,DE ... LD (HL),C
    LD (IX+0),A
    ADD HL,DE
    ADD IX,DE ...
    MatGubbins MatGubbins August 2013 Development
  • 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 …

    ... ld (tim),a ;reset timer
    ; ? ? ? ? ? ? ? ?

    Start: ld hl, Dat1
    ld de ... , 65361
    ld b, 15 ;load ... 4
    Loop: ld a, (hl)
    ld (de), a ;load allophone in ...
    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…

    ... BC
    13 = INC DE
    23 = INC HL
    [/code]
    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 ... 5633 ;open channel
    ld de,dat
    ld bc,16
    call ... /> 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…

    ... address of system variables
    ld de,4000
    call my_loader
    ld hl,100
    ld (23618),hl
    ld a,1 ; statement ... 1
    ld (23620),1 ...
    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…

    ... /> ld hl,(23680)
    ld (23606),hl
    jr z,ScrDone
    ld a,(de)
    hl ;HL=$106E
    push hl
    push de
    push bc
    ld de,(23653) ;DE ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • LZ4 decoderI encountered the [URL="http://code.google.com/p/lz4/"]LZ4 compressor[/URL] a few weeks ago. Reading the [URL="http://fastcompression.blogspot.co.uk…

    ... BC, DE or HL.


    unlz4:
    ld b,0 ...
    push de ; save destination pointer
    ld e,(hl) ; read the ... 32767?)
    sbc hl,de ; subtract offset from HL (carry is clear)< ...
    stephenw32768 stephenw32768 October 2013 Development
  • Assembly - Loops bigger than 255Hi, It looks like it's a bit difficult to make loops with more than 255 cycles on Z80 machine code, since the 16-bit decrements (DEC) do not alter a…

    ...
    LD HL,16384 ; Beginning of the graphic memory
    LD DE,1024 ; ... Loop length
    LD B,E ; ... ,loop_high
    loop:
    LD (HL),62 ; Fill the video memory ... with this number
    INC HL
    DJNZ loop
    ...
    Zerg Zerg October 2013 Development
  • Copy 4Kb in Assembly?Here's an interesting problem: what's the best way to copy a block of 4Kb in assembly? The most obvious solution is to use [B]LDIR[/B]: [CODE] l…

    ... br /> [CODE]
    ld hl,SOURCE
    ld de,TARGET
    ld bc,4096
    push de
    push hl
    ld (dest+1),sp
    ld hl,SOURCE-TARGET ... ]:
    [CODE]
    ld hl,SOURCE
    ld de,TARGET
    ld bc,4096+128 ...
    Einar Saukas Einar Saukas October 2013 Development
  • Nasty 'Gotcha' for multicolour timingI thought I would be better developing my multicolour routine on the 48K first, being the slowest, so it would then be sure to work on the 128K varia…

    ... +2A. I've used LD (nn),HL , then I've used ... prefix byte longer than using HL. There's even a ... duplicate of the command using HL, again with the prefix ... can do LD (nn),IX followed by LD (nn),HL since the ... data) before the next LD(nn),DE or whatever, to get ...
    joefish joefish October 2013 Development
  • z88dk and im2I set up a minimal IM2 mode so I can draw sprites for a laff [code] #include <string.h> #include <stdio.h> #include <im2.h> #include <stdlib.h> #in…

    ... />

    LD BC,255
    LD DE,04000h
    LD HL,37000

    hl
    push de
    push ix
    rst 56

    LD ... BC,255
    LD DE,04000h
    LD HL,37000

    slenkar slenkar October 2013 Development
  • Troublesome routine, help needed!Having problems with this routine, it basically fires a rocket up the screen, but refuses to detect collisions. I'm using attribute blocks for detect…

    ... /> ADD HL, HL
    ADD HL, HL
    ADD HL, HL
    LD DE, 22528
    ADD HL, DE
    LD DE ... , (bv1)
    ADD HL, DE ...
    daveysludge daveysludge November 2013 Development
  • Simple memory transfer routineI'm looking for a simple memory transfer routine that shifts 32 bytes of data from the address HL is set to 55143, I have tried using LDIR, but cant …

    ... data from the address HL is set to 55143, ... level number
    ld b,a
    ld hl,udg-32 ;start ... /> ld b,32 ;8 x 4
    loopa inc hl ; ... ld b,32 ;hl should now point to level x 32
    ld de ... ,55143 ;de ...
    daveysludge daveysludge November 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... #2 (screen)
    ld de,NBITS
    BucConv call ... ShiftBlock
    dec de
    ld a,d
    ... proc
    ld hl,BCD
    BucAdd ld a,(hl)
    cp ...
    mcleod_ideafix mcleod_ideafix November 2013 Development
  • A "generic" loader for +3(e)I've made this loader for 128k games in +3DOS. [CODE]dos_open equ 262 dos_close equ 265 dos_abandon equ 268 dos_read equ 274 dos_write equ 277 dos_s…

    ... br /> ; disable cache
    ld de,0
    ld hl,128
    call dos_set1346 ... file
    ld bc,$0501
    ld de,$0002
    ld hl,fichero
    cerrar:
    ld b,5
    call dos_close ... br /> ; return to BASIC
    ld iy,23610 ; restoring iy so ...
    Zup Zup December 2013 Development
  • Math Quiz - MultiplicationThe topic is fast multiplication routines, from 8x8 to 32x32 and all points in between. These functions sit underneath floating point libraries, gen…

    ...
    add hl,de

    loop_17:

    add hl,hl
    ret ...

    ld a,e
    ex de,hl

    ; de = 16-bit ... -bit multiplicand DE
    ; hl = 16-bit multiplicand HL

    ld b,d ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • Ghosts n' Goblins loaderI'm trying to put Ghosts n' Goblins onto a +3 disk but struggling to understand the mc loader. Basic loader [code] ink 7 : clear 25000 : load "" cod…

    ... HL, DE
    65252: LD SP, HL
    65253: POP HL
    65254: LD SP, HL
    LD (HL), A
    65507: LD (HL), A
    65508: LD A, B
    65509: LD (DE ... : LD (HL), A
    65523: LD (HL), A
    65524: LD A, B
    65525: LD (DE
    Speccy_James Speccy_James February 2014 Development
  • Venturespeak Helplooking at the code from ZX Computing, October, November & December 1986. How do I make the code do more then 3 letters say 5. and could it be made …

    ... /> 60108 219EEB LD HL,START
    60111 1600 LD D,000
    HL,DE
    60118 77 LD (HL),A
    60119 13 INC DE< ... /> 60297 119EEB LD DE,START
    60300 3A9CEB LD A,(CT2)
    ardentcrest ardentcrest February 2014 Development
  • Scrolling Bi-Colour Engine for 4-Player GamesJust putting this code up for people to have a look at. Far from finished. Should simply compile and run a bit of a demo. Only good for 128K and +…

    ... = 49087
    ld hl,48640
    ld de,48641
    ld (hl),191
    ld bc,256 ... hl,bc ;hl = row in table
    ld e,(hl)
    inc hl
    ld d,(hl) ;de ... /> ld c,a
    ex de,hl
    add hl,bc
    ex de,hl ;<…
    joefish joefish March 2014 Development
  • JP (HL) confusionokay.... JP nn will jump to memory address nn. JP (HL) ,I assumed would read the contents of memory address HL and jump to the location and be a gre…

    ... other words
    [code]
    LD A,bytetocheck ; Has to be ... 2
    LD L,A
    LD HL,jumptable
    JP (HL) ; read/peek ... the contents of HL and ... jumps to the memory location HL


    Looking ...
    MatGubbins MatGubbins March 2014 Development
  • EXX ProblemsWondering if any other coders have had problems using the EXX instruction in FUSE... I am calling the BEEP routine from within my own code and prese…

    ... ]
    EXX
    ld hl,497 ;pitch
    ld de,10 ;duration
    call ... crashes. I commented out the ld, hl ld,de and call, so that the ...
    LuMan LuMan April 2014 Development
  • SBC IX,DE/BCAlways wondered why there wasn't a SBC IX, DE/BC command.... so have to use PUSH HL ; save original HL PUSH IX ; IX on stack POP HL ; IX …

    ... wasn't a SBC IX, DE/BC command....


    PUSH HL ; save original HL
    PUSH IX ; ... into HL
    SBC HL,DE ; do calc
    PUSH HL ; ... IX
    POP HL ; get original HL back again
    ... at the same time, DE is the value to ...
    MatGubbins MatGubbins April 2014 Development
  • DJNZ displacementHi I had a question about DJNZ operation. Just running through this code in MMCOYZXS by Toni Baker page's 87-88 [QUOTE]21A440 LD HL,40A4 11083F …

    ... /> [QUOTE]21A440 LD HL,40A4
    11083F LD DE,3F08
    0608 LD B,08 ...
    1A LOOP LD A,(DE)
    77 LD (HL),A

    ld hl, $40a4
    fa03: 11 08 3f ld de, $3f08
    fa08: 1a ld a, (de)
    fa09: 77 ld (hl), a
    fa0a ...
    username username April 2014 Sinclair Miscellaneous
  • byte to screen eventI have another question regarding assembly routine in MMCOYZXS by Toni Baker page's 87-88 [QUOTE]21A440 LD HL,40A4 11083F LD DE,3F08 0608 LD B,08…

    ... /> [QUOTE]21A440 LD HL,40A4
    11083F LD DE,3F08
    0608 LD B,08 ...
    1A LOOP LD A,(DE)
    77 LD (HL),A

    ld hl, $40a4
    fa03: 11 08 3f ld de, $3f08
    fa08: 1a ld a, (de)
    fa09: 77 ld (hl), a
    fa0a ...
    username username April 2014 Sinclair Miscellaneous
  • Double-Buffer ScreenFor my Alien Breed Speccy re-write I decided to use a Double Buffer (DB) or 'Back Screen' to draw all the game action onto, before shuffling the whol…

    ...

    ld hl, 25000 ;Start of DB Screen
    ld de, 16384 ;Start ... be Field 3
    ld de,18432 ;Load de with start of field ...

    field3:
    ld de,20480 ;Load de with start of field ...
    LuMan LuMan April 2014 Development
  • Unusual custom turbo loaders - with sourcesI have always been fascinated by turbo loaders; my games all feature a TZX version with one of such schemes implemented, and I have been experimentin…

    ... /> LD HL,01045
    DJNZ 65380
    DEC HL
    LD A ... RRA
    LD C,A
    INC DE
    JR ... DEC DE
    EX AF,AF'
    LD B,210
    LD ... RRA
    LD C, A
    INC DE
    JR 65453 ... DEC DE
    EX AF, AF'
    LD B, 210
    LD ...
    Alessandro Grussu Alessandro Grussu May 2014 Development
<1…3456789…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