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
<1234567…34>
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... :
    ld de,SCREEN+1
    ld hl,SCREEN
    ld (hl),0
    ld bc,6143 ... /> pop bc

    ld de,ATTRIBUTES
    ld hl,image+6144+2
    HexDump HexDump April 2007 Development
  • Comments for small "sprite" routine wantedI have just written my first machine code program and I am quite happy (and proud) to get it working! :smile: As a child I never learned anything e…

    ... B]
    ld hl,16384 ;screen address
    ld de,35000 ;address ... ld a,(de) ;get byte from graphic store in memory
    ld (hl ... ;rotates second byte
    ld (hl),a ;write earlier rotated byte ... in saved "carry"
    ld (hl),a ;write to screen memory ...
    Rickard Rickard May 2007 Development
  • Help hacking Split PersonalitiesI`ve been hacking away at Split Personalities for the purpose of putting new screens and graphics (items). The current screen is at 41187 and is 160…

    ... ; 54564 32 33
    ld (8737), hl ; 54566 34 33 34
    inc bc ; 54591 3
    ld hl, 33 ; 54592 33 33 0 ... 24 ; 54608 22 24
    ld a, (de) ; 54610 26
    ccf ... bc ; 54626 3
    ld (33314), hl ; 54627 34 34 130< ...
    FrankT FrankT July 2007 Games
  • Question on Z80 R/W cycles.Snipped from the complete spectrum ROM disassembly: [CODE] Now the memory is checked. 11DA RAM-CHECK LD H,D Transfer the value…

    ... RAMTOP).
    11DC RAM-FILL LD (HL),+02 Enter the value of ... /> SBC HL,DE The carry flag will become
    ADD HL,DE reset when ...
    wilsonsamm wilsonsamm August 2007 Sinclair Miscellaneous
  • A few questions about machine codeOh no... another noob. I'm giving my first steps in assembler (finally, after 20 years stuck in BASIC). I read a SU article explaining that if I wan…

    ... ]scf
    ld a,255
    ld ix,16384
    ld de,6912
    call 1366
    ld a ... ,255
    ld ix,24576
    ld de,22564
    [CODE]di
    ld de,23296
    ld hl,24785
    ld bc,40832
    zxbruno zxbruno August 2007 Sinclair Miscellaneous
  • If you've got a real working MF128,IF1, and MDR combo can I ask a favour?So, if you do have a real Multiface 128, Interface 1, Microdrive and, oh yeah, a Spectrum (48k or 128k) that are all working, can I ask a favour...? …

    ... address
    push hl
    exx
    ;
    ld hl,(err_sp) ; fetch current ... ,0 ; clear bc
    ld de,gethook ; use de to trap for those ... pesky disciples/+d's
    ld (hd_11),de ;
    rst $08 ; page ...
    jp jp February 2008 Hardware
  • help sought with first foray into machine code - pixel scrolldownI have started to code my first machine code program, a simple roadrace game. I've based it around the pixel scrolldown routine in 40 Best Machine Co…

    ... /> main
    ld hl,$410a ;road left side,line2
    ld de,$4115 ;road ... roadside
    ld (hl),a ;print road left side
    ld (de),a ;print ...
    copybyte
    ld a,(de) ;copy byte. . .
    ld (hl),a ;. . .to next ...
    bigjon bigjon February 2008 Development
  • Probing the variables in 128K modeHello again! Briefly, I'm writing an m/c routine to read some BASIC variables. So, before I start, I try to get an idea for the structure of how var…

    ... /> RES 0,(IY+2)
    LD HL,(23627) ; VARS
    NEXTVAR
    LD DE,19
    PRINT
    RST $10
    ADD HL,DE
    INC HL
    LD E,(HL)
    INC HL
    LD D,(HL)
    INC HL
    Digital Prawn Digital Prawn March 2008 Development
  • Speccy sound on tv show - againRemember the spectrum loading noise in two CSI shows? Well, fuzzix on c.s.s. has found what seems to be another clip of Speccy goodness: [url]http:/…

    ... LD HL,#53F
    40 PUSH HL
    50 LD DE,#4000
    60 LBYTE LD ... /> 100 NBYTE LD L,1
    110 LD BC,#B201
    140 LD A,#CB
    150 ... 160 RL L
    170 LD B,#B0
    180 JR ...
    zxbruno zxbruno March 2008 Sinclair Miscellaneous
  • Alternative ROM on original DivIDEOriginal DivIDE interface contain too allram mode (16kB paging). [url]http://raww.org/index.php?name=News&file=article&sid=2471[/url] Switch to ALLR…

    ... ROM instalation:
    DI
    LD A,66
    OUT (227 ... ),A ;enable allram mode
    LD A,64
    OUT (227 ... + write enable
    LD HL,49152
    LD DE,0
    LD BC,16384
    LD A,0
    OUT (227 ...
    velesoft velesoft June 2008 Hardware
  • 128 ROM paging alternativeWould this work (with the appropriate code in each ROM)? [code] ; 128 rom paging routine ; use rst 28h with call address stored after restart ;;rom…

    ... hl, sp ;

    ld e, (hl) ; (sp) to de
    inc hl ;
    ld d, (hl ... ) ;

    ex de, hl ... ; skip two bytes
    inc hl ...
    chev chev August 2008 Development
  • Bresenham's line algorithmHelp - I really am struggling to get my head around this algorithm. I don't know why, I coped with Cordic (SIN/COS) and integer divide routines (/10 …

    ... part...

    LD HL,(real328+$02) ;HL has relative Y value ... />
    PUSH HL ;preserve HL
    SBC HL,BC ;if Y> ... HL (Y) and BC (X)

    gfxdraw2:
    PUSH DE ;keep DE ...

    ;deal with SGN X
    LD A ...
    Jimmy Jimmy August 2008 Development
  • Bresenhams circle algorithmI post here my final circle code to replace, if you want, the one in the ROM. It only uses integer math and runs very fast and is very compact. It is…

    ... />
    EXX

    LD HL,$2758 ;HL' must contain $2758 on return ... />
    plotpixel

    push de

    call $22e5

    pop de

    ret

    rtunes rtunes September 2008 Development
  • CHANS system variableI modified my original code to incorporate Woody's changes and avoid using the stack: [code] org 60000 save_registers: push hl push de push bc …

    ... /> make_space:
    ld hl, 30720 ; first address after attributes
    ld de, (0x5c4f) ; current ... start of channel data (chans)
    sbc hl, de ; calculate ...
    chev chev September 2008 Development
  • So... you want to format your 3.5" as 720K eh?Well, i've been trying to get hold of an application to make proper use of my 3.5" +3 floppy disks but i haven't been able to find any. I stumbled up…

    ... updated
    LD HL,HEAD0 ; Load HL with the ... HL with the last address used
    LD L,E
    INC DE ... ; The DE register will hold HL+1
    LD (HL),$E5 ...
    NaMcO NaMcO December 2008 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... /> [CODE]
    rnd ld hl,0xA280
    ld de,0xC0DE
    ld a,h ; t ... /> xor e
    ld e,a
    ld a,d ; w = w ...
    Patrik Rak Patrik Rak December 2008 Development
  • New for 2009 - mc onelinersI found the limit of one line and one screen's worth of program really useful in (re-)learning BASIC, so I've decided to carry the format over into m…

    ... /> ld (hl),a
    inc hl
    ld (hl),a
    ld de,9
    add hl,de
    ld (hl ... ),a
    inc hl
    ld (hl ... /> ld (hl),a
    inc hl
    ld (hl),a
    ld de,9
    add hl,
    bigjon bigjon December 2008 Development
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ... from stack
    EX DE,HL
    LD A,(HL) ; fetch value of card ...
    Dr BEEP Dr BEEP December 2008 Development
  • Understanding the StackSorry folks. I guess I'm going to be a pain for a little while. Hope it's ok with everyone. I'm currently studying the stack and wrote the little pr…

    ... ]ld de, 0101h
    push de
    ld (spp), sp
    ld hl, spp
    inc (hl ... )
    inc (hl)
    ld ... account for this when using LD SP instructions. The removal of ...
    rahtgaz rahtgaz January 2009 Development
  • IN 255 behaviour not emulated in Spectaculator and ZXSpinI'm not speaking about "normal" IN 255 behaviour. All of you know what I'm taking about: IN 255 can be used to "read" screen data as it's retrieved f…

    ... with PASMO):
    [code] ;Rutina de test del puerto 255. (C ...
    halt
    ld c,255
    ld hl,0
    SigueTest in ...
    mcleod_ideafix mcleod_ideafix January 2009 Hardware
  • Fastest way to clear a screen.We haven't had an optimizing fun for some time, so let's have some: What's the fastest way to clear a screen (i.e., filling the 6912 bytes at 16384 w…

    ... :
    [CODE]
    LD HL,16384 ; 3B 10T
    LD DE,16385 ; 3B 10T ...
    LD BC,6911 ; 3B 10T
    LD (HL),L ...
    Patrik Rak Patrik Rak February 2009 Development
  • Rainbow Generator for 48K Spectrum using PUSHThis is what I came up with from [B]gasman[/B]'s suggestions. It's stable in ZXSpin and ZX32 simulating a 48K Speccy. Anyone like to try it on the …

    ... '
    ld hl,65024 ;254*256=65024
    ld de,65025
    ld (hl),253 ;Write ... once
    ld bc, 256 ... routine:
    ld hl,sample_jump ;Sample instruction (see below)
    ld de,65021 ;Where ...
    joefish joefish May 2009 Development
  • Tips on optimizing some newbie assembly routinesI'm starting to learn some assembly language. The best way to learn is to actually code something you are going to use, so I'm creating a very simple…

    ... hl, hl ; * 8
    ld de, _MB23_tileset
    add hl, de
    pop de
    push de
    ld ...
    na_th_an na_th_an June 2009 Development
  • FLASH EPROM programming on ZXExist any other software for rewriting FLASH EPROM or EEPROM chips on real ZX ? I know only: EEPROM flasher for original DivIDE [url]http://85.132.…

    ...
    org $5cd0
    ld hl, $4000 ;
    di ... targer adress HL
    ld a, $60 ; DE = source ... br /> ld a, (de) ; read source byte
    ld (hl), a ; ...
    velesoft velesoft July 2009 Hardware
  • Machine Code Microdrive File LoaderI've been experimenting with transferring games to run from microdrive. Typically I like to see a loading screen while things are happening, and I li…

    ...
    pop hl
    add hl,de
    ld de,hd_00
    ld bc,$0009
    ldir
    ;
    ld l ...
    ld d,(ix+$54)
    inc de
    add hl,de
    ;
    jp jp August 2009 Development
  • Tinkering with Quique Llar?a's Midi2Ay tool...Im tinkering with Quique Llar?a's Midi2Ay tool, found at: [url]ftp://ftp.worldofspectrum.org/pub/sinclair/tools/pc/midi2ay-0.1.zip[/url] Im not a v…

    ... /> ld hl,(G_AF)
    push hl
    pop af

    ld hl,(G_HL)
    ld de ... ,(G_DE)
    ld bc,(G_BC)
    ld hl,(R_AF)
    push hl
    pop af

    ld hl,(R_HL)
    ld de ...
    kgmcneil kgmcneil October 2009 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... /> ld (hl),a
    inc hl
    ld (hl),a
    ld de,9
    add hl,de
    ld (hl ... ),a
    inc hl
    ld (hl ... /> ld (hl),a
    inc hl
    ld (hl),a
    ld de,9
    add hl,
    bigjon bigjon November 2009 Development
  • Need help with interrupts againI'm fighting to understand how interrupts code handling works I'm trying to set my simple own interrupt routine, as I don't want to be dependent on …

    ... /> LD HL,23296 ;fill 256 bytes with value 255
    LD DE,23297
    LD ... BC,255
    LD (HL),C
    LDIR ... /> LD HL,77*256+237


    LD (65525),HL

    LD A ...
    Ralf Ralf November 2009 Development
<1234567…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