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>
  • Screen LoaderCouple days ago i find very interesting loader routine in ex Yugoslavia magazine "Svet Kompjutera" from january 1987. Authors of article, calls this …

    ... /> LD HL,49152
    LD (HIL),HL
    LD DE,16384
    LD (DIL),DE
    LD ... /> LD (FL1),A
    LD HL,(HIL)
    INC HL
    LD (HIL),HL
    LD DE ... /> KRA LD HL,RP
    LD (RRR+1),HL
    LD DE,23295
    LD H…
    Pegaz Pegaz August 2006 Games
  • Pixel Explosion CodeJust a little snippet to cause explosive effects. It uses table lookups for the screen address, and can handle up to 32 pixel particles. A particle…

    ... not moved
    ld hl,madp_dec
    ld (madp_poke+1),hl

    ... new position)
    ld hl,madp_move
    ld (madp_poke+1),hl

    xor (hl) ; xor with screen
    ld (hl),a ; screen ...
    robpearmain robpearmain September 2006 Development
  • tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…

    ... /> ld a, (hl) ; bring a byte
    dec hl ; move back
    ld (hl), a ... ; store byte
    inc hl
    inc hl ; next one!
    ld ... /> ld (hl), a ; store byte
    inc hl
    inc hl ; next bye.
    ld ...
    na_th_an na_th_an November 2006 Development
  • Urgent Help needed to fix this: calling all machine code gurusI am currently trying to write tutorials on the amazing Orfeus music composer by Proxima which allows you to do multi channel music through the beepe…

    ... /> ld sp,hl
    pop hl
    ld (l8c0c+1),hl
    pop hl
    ld (l8c23 ... /> l8ac5: ld hl,l8d6b
    ld a,(hl)
    inc hl
    ld (l8ac5+1),hl
    robpearmain robpearmain November 2006 Development
  • Mode 2 Tile Editor SourceA Timex Mode 2 Tile Editor incorporating a byte mirror table. The compiled version is available in the CSSCGC 2008 collection from the WoS archive. …

    ... /> ld (hl),b ;
    inc h ;
    ld (hl),b ;
    inc l ;
    ld (hl ... ),c ;
    dec h ;
    ld (hl ... ),c ;
    dec h ;
    ld (hl ...
    chev chev January 2007 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ...
    inc hl ; move HL up one address

    ld (hl),'P' ; channel ... />
    ld hl,col ; increment
    inc (hl) ; the column
    ld a,(hl) ;
    add hl,hl ; multiply
    add hl,hl ; by
    add hl,hl ; eight
    ld de ...
    chev chev January 2007 Development
  • 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…

    ... call ClearScr
    ld hl,image+2
    call ... /> ld hl,SCREEN
    ld (hl),0
    ld bc ... ld hl,ATTRIBUTES

    NextAttr:
    ld a,(hl)< ...
    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 ... store in memory
    ld (hl),a ;put graphic into screen ... ] ;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 ... bc ; 54626 3
    ld (33314), hl ; 54627 34 34 130
    ld h, c ; 54630 97[/ ...
    FrankT FrankT July 2007 Games
  • sound effect code causing crash[FONT=Courier New]I have just written this piece of code to produce a lazer sound effect but for some reason it is causing a crash and I can't figure…

    ... LD HL,SOUNDDATA
    LD (SOUNDPOS),HL
    LD A,1
    LD (LAZERFLAG),A
    LD ...
    dmsmith dmsmith July 2007 Development
  • Use of INPUT in MCI want to use the INPUT-command in MC and made the following code. [code] org 40000 dump 40000 ld hl,(#5c5d) push hl …

    ... />
    ld hl,(#5c5d)
    push hl
    ld hl,input
    ld (#5c5d),hl
    call ... #2089
    pop hl
    ld (#5c5d),hl ...
    Dr BEEP Dr BEEP November 2007 Development
  • AY-player from Rastan SagaHello. For what ports #3F, #5F in the given fragment of a code are used? They give What effect in sounding? ================================= F4C1 21…

    ... =================================
    F4C1 21BAF7 [B]ld hl,F7BA[/B]
    F4C4 160C ... F4CD 013FFF [B][COLOR="Red"]ld bc,FF3F[/COLOR][/B] ... /> F4D8 7E [B]ld a,(hl)[/B]
    F4D9 2B ... [B] dec hl[/B]
    F4DA D35F ...
    BeeEye BeeEye November 2007 Games
  • 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 ... error return
    push hl ; and preserve ... error return
    ld (err_sp),hl ; and update
    ld a,$ff ; force ...
    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…

    ... /> org 32000
    main
    ld hl,$410a ;road left side,line2 ... ,$ff ;graphic for roadside
    ld (hl),a ;print road left side ... side posn
    scrldn
    ld hl,22527 ;point to bottom right ... to be copied to
    ld hl,$7e0 ;2016 added . . .
    ...
    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 A,41
    POINTERS
    INC HL
    LD E,(HL)
    INC HL ...
    LD D,(HL)
    INC HL
    NEXTCHAR
    INC HL
    LD A,(HL)
    BIT 7,A ...
    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:/…

    ... br /> 30 LD HL,#53F
    40 PUSH HL
    50 LD DE,#4000 ...
    60 LBYTE LD A ... /> 100 NBYTE LD L,1
    110 LD BC,#B201
    170 LD B,#B0
    180 JR ...
    zxbruno zxbruno March 2008 Sinclair Miscellaneous
  • 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…

    ... /> ld hl, 0x0000 ; sp to hl
    add hl, sp ;

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

    back_to_r0
    ld hl, bankm ; hl holds address of system variable ...
    chev chev August 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…

    ... /> add hl,de
    ld (hl),a
    inc hl
    ld (hl),a
    ld de ... ,21
    add hl ... /> ld hl,23278 ;initialise car
    ld a,8
    ld (hl),a
    ld (32900),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…

    ... LD HL,14
    ADD HL,SP
    LD SP,HL ; undo USR command
    LD HL ...
    Dr BEEP Dr BEEP December 2008 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…

    ... /> add hl, hl ; * 2
    add hl, hl ; * 4
    add hl, hl ; * 8
    ld de ...
    na_th_an na_th_an June 2009 Development
  • 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…

    ... /> ;
    main1 ld (err_sp),sp
    ld hl,main2
    ld (hd_11),hl ; execute main2 ... /> ;
    ld hl,filenam
    ld (t_str1),hl ; address of filename
    ;
    ; ld hl,1 ... us
    ;
    ld hl,1
    ld (n_str1),hl ; length of filename
    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…

    ... /> push AF
    pop hl
    ld (R_AF),hl
    ld hl,(R_HL)

    push AF
    pop hl
    ld (G_AF),hl
    ld hl,(G_HL)

    ld hl,(G_AF)
    push hl
    pop af

    ld hl,(G_HL)
    ld ...
    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…

    ... /> fillscreen
    ld (hl),a
    inc hl
    ld (hl),a
    ld de,9 ... /> add hl,de
    ld (hl),a
    inc hl
    ld (hl),a
    ld de ... /> ld hl,23278 ;initialise car
    ld a,8
    ld (hl),a
    ld (32900),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 …

    ...
    DI

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


    LD (65525),HL

    LD A ... ,91
    LD I,A ...
    Ralf Ralf November 2009 Development
  • Wrong-endian data table?I'm drawing up the memory map for something I'm writing. I'll be using machine code on a byte array of 256 elements, each element consisting of 64 by…

    ... selected with a single [b]LD L, A[/b] instruction, without ... can be read using [b]LD A, (HL)[/b] while simply looping ...
    ajmoss ajmoss December 2009 Development
  • tricks to simplify codingWhen i started with programming in assembler i had very simple approach to do things. Just shifting bytes around, doing simple tests and so... Later …

    ...
    [CODE]
    call_from_table
    ;HL = table
    ;A = ITEM
    ld a, (hl)
    inc hl
    ld h, (hl)
    ld (call_from_table2 + 1), hl
    [CODE]
    ld a, (ix + FRAC_PEN)
    ld hl, p2_fracpentab
    call ...
    Fikee Fikee March 2010 Development
  • A tidy loader for minigamesThe minigame competition doesn't permit the use of separate loaders like [code]10 LOAD "": RAND USR 32768[/code] The loader must be included in the b…

    The minigame competition doesn't permit the use of separate loaders like
    [code]10 LOAD "": RAND USR 32768[/code]
    The loader must be included in the byte count.

    In an attempt to save as many bytes as possible, people have written ...
    ajmoss ajmoss June 2010 Development
  • Using the stack to copy memory blocksA [b]PUSH[/b] and a [b]POP[/b] instruction together take less time than two [b]LDI[/b], so long [b]POP/PUSH[/b] sequences are sometimes used to copy …

    ... /> ld ix, source
    ld hl, dest
    ld de, 8 ; stepsize
    ld a ... = 54

    ld sp, hl ; 6
    push hl ; 11
    push ...
    ajmoss ajmoss August 2010 Development
  • Optimization for this codeHello, I have done and submitted a small program for the CSS Crap Game Compo which involves a machine code routine. The z80 with BASIC and MC is av…

    ... />
    ld a, (hl)
    inc a
    ld (hl),a
    ... />
    ld a, (hl)
    inc a
    ld (hl),a
    ... />
    ld a, (hl)
    inc a
    ld (hl),a
    jr ... br />
    ld hl,text
    loop ld a,(hl)
    cp 255 ...
    Rickard Rickard October 2010 Development
<1234567…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