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.008s
<1234567…34>
  • Problem with rotating procedureHi folks! I wrote a proc in z80 asm, based on: x' = x * cos (z) - y * sin (z) y' = x * sin (z) + y * cos (z) I used a precalculated table of sin a…

    ... /> add hl,bc
    ld e,(hl)
    inc hl
    ld d,(hl)
    ld hl,(x ... /> add hl,bc
    ld e,(hl)
    inc hl
    ld d,(hl)
    ld hl,(y ... /> add hl,bc
    ld e,(hl)
    inc hl
    ld d,…
    xor xor July 2006 Development
  • In Machine Code, what is the quickest way to sort bytes?I am playing around with some ordering of sprites, where I want to order them by vertical position. I used some Rodnay Zaks code to order some bytes…

    ... /> ld hl,numbers
    ld bc,7

    bubble ld (temp),hl ; temp = (hl)
    again ld ix,(temp) ; ix ...
    robpearmain robpearmain August 2006 Development
  • Pimp my code...Erm, this is just the result of a mental exercise - I wanted to repeatedly display a UDG but decided against using a ROM routine and UDGs! Any sugges…

    ... org #8000
    ;
    ld hl,#4000
    ld b,#08
    ;
    even ld a,#2a
    jr cpy ...
    odd ld a,#54
    jr cpy ... inc de
    ld bc,#0100
    ld (hl),a
    ldir< ...
    jp jp August 2006 Development
  • 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
  • SjASMPlus cross compiler of Z80 assembly languageHi! I want to present you cross-compiler of Z80 assembly language: [B]SjASMPlus[/B]. [SIZE="4"]Features:[/SIZE] [LIST] [*]Z80/R800 documented and un…

    ...
    [*]Code inlining through colon (LD A,C:INC A:PUSH ... AF:IFDEF FX:LD A,D:ENDIF…)
    [*]Structures ... /> [*]Fake instructions as LD HL,DE (LD H,D:LD L,E)
    [*]Source ...
    aprisobal aprisobal September 2006 Development
  • License plateWhat's wrong with the car with this dutch license plate 89-46-ZX It is an OPEL COMMODORE! Anyone found other Spectrum / Z80 based plates? We had a…

    ... combinations like these
    LD-HL-23
    LD-45-SP
    ZX ...
    Dr BEEP Dr BEEP September 2006 Chit chat
  • 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 hl,LABEL2
    ld (l891e+1),sp
    ld sp,hl
    pop hl
    ld ... /> l8ac5: ld hl,l8d6b
    ld a,(hl)
    inc hl
    ld (l8ac5+1),hl
    pop hl
    ld hl,#0000
    l8b95: ld a,(hl)
    or a ...
    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
  • Currah MicroSource emulationIt appears to be impossible to emualte the MicroSource in software on the ZX Spectrum SE as hardware polling is required. The following patch is not …

    ... /> ld (hl),$07 ; to emulate polling
    inc hl ;
    ld (hl),$19 ;

    ld hl ...
    ld (hl),0 ;
    inc hl ;
    ld (hl),0 ;
    inc hl ;
    ld (hl),0 ...
    chev chev March 2007 Emulators
  • 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
  • How do I clear only a specific area of a screen (quickly) in machine code ?I'm looking for a machine code routine which will clear the first 20 rows of the Spectrum's display (or any number of rows or columns) . I have found…

    ... is as follows :

    LD HL,4000H 33 0 64
    LD (HL),L 75
    LD D H 44
    LD E,1 30 1 ...
    bobbyjaykid bobbyjaykid July 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 ... RET Z
    LD HL,(SOUNDPOS)
    LD A,(HL)
    OR A
    dmsmith dmsmith July 2007 Development
  • 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…

    ... br /> 11DC RAM-FILL LD (HL),+02 Enter the value ... Use current HL as top.
    DEC (HL) +01 ... 11EF RAM-DONE DEC HL HL points to the last ...
    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 ... 1366
    ld a,255
    ld ix,24576
    ld de,22564 ... ]di
    ld de,23296
    ld hl,24785
    ld bc,40832
    ldir[/CODE]

    I know that 'hl ...
    zxbruno zxbruno August 2007 Sinclair Miscellaneous
  • 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
  • New assember ideaAs i work with Eclipse IDE in my job i become more and more lazy. This leads me to idea that it is time to left Notepad+Tasm combo behind and move on…

    ... myStruct

    ...

    ld hl, (racer1.velocity)
    [/code]
    myfunc { ld b, 1
    loop ld (hl), a
    inc hl
    djnz ...
    Fikee Fikee 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
  • The direct bus or indirect one... that is the questionThe Ethernet project continues...and I'm in a quandry. So I've managed to implement enough socket library for the W5100 that socket, bind, listen, a…

    ... , and simply use something like LD (HL), A to set a register ...
    Winston Winston November 2007 Hardware
  • 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
  • Bizarre stuff in Interface 1's shadow ROMAccording to the Complete Shadow ROM disassembly, the function that exits back to the BASIC interpreter after interpreting IF1 commands is this: [co…

    ...
    [code]
    05C1 END1 LD SP,(ERR-SP) Clear machine ... error code.
    05C9 LD HL,+1BF4 Return address to main ... RUN-SYN
    05CF LD A,+7F Give, an error ... ,RETAD-RUN
    05D6 LD A,+FE
    05D8 ... hard I look to that LD instruction. It just wastes ...
    Winston Winston March 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
  • Need Help with codeHi there, let me preface this by saying I'm NOT an old school computer guy though I do remember using the internet before the WWW and my first comput…

    ... /> JR Z, ($+2) (e)
    LD C,H
    JR C ... ,A
    INC (HL)
    INC BC
    LD HL,nn

    Red_Fox Red_Fox May 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 ... enable
    LD HL,49152
    LD DE,0
    LD BC,16384
    LD A,0
    OUT (227 ...
    velesoft velesoft June 2008 Hardware
<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
hl 6.2K 48K
5678 32 35

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

Copyright © 2024 World of Spectrum