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>
  • 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
  • Help needed with simple MCode routineI'm trying to code a routine to clear the screen and I can't figure out why it's not working: ld hl,16384 ld bc, 6144 loop:ld (hl),0 inc hl dec bc l…

    ... /> ld hl,16384
    ld bc, 6144
    loop:ld (hl),0
    inc hl
    dec bc
    ld a,b ...
    Rebelstar without a cause Rebelstar without a cause November 2010 Development
  • Why doesn't my loop work?Can anyone help me understand why my loop doesn't work? Is it to do with how DEC HL affects the flags? [code] ; Read 32k bytes from port 191 as fa…

    ... to do with how DEC HL affects the flags?
    ... ; Port to IN from
    LD HL,32767 ; Number of bytes to ... read
    LD DE,32768 ; Destination start ... loop: IN A,(C)
    LD (DE),A
    INC DE ...
    DEC HL
    JR NZ,loop
    trellis trellis December 2010 Development
  • A fast DRAW routineI was investigating how to speed up the line drawing for the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=20225"]BASIC compiler[/URL]…

    ... dx in c

    ld hl, __INCX ; xi = 1
    ... = X1 - X2
    ld c, a
    ld hl, __DECX ; xi = -1< ... dy in b

    ld hl, __INCY ; y1 = 1
    ... a ; dy = Y2 - Y1
    ld hl, __DECY ; y1 = -1

    boriel boriel December 2010 Development
  • Help?Hi All, I wonder if anyone has a few minutes to look at this bit of code I'm working on. I'm trying to move to sprites and want to do it with a scr…

    ... +0) ;low byte
    ld (hl),a ;a, the screen address ... ;repeat 8 times
    ld hl,bits ;reset bits (lines of ... next from top
    ld (point),hl
    ld hl,seed ;screen address table ... /> halt
    ret
    sprite ld hl,(point) ;address of current line ...
    R-Tape R-Tape January 2011 Development
  • Small Machine Code Routines Which Maybe UsefulAs part of creating Flynn's Adventure in Bombland I created a lot of little routines to do all sorts of things. A lot of these I created based on inp…

    ... with previous plot byte
    ld (hl),a ; 7t - plot line one ... h ; 4t - down one
    ld (hl),a ; 7t - plot line two ... with previous plot byte
    ld (hl),a ; 7t - plot line one ... h ; 4t - down one
    ld (hl),a ; 7t - plot line two ...
    TomD TomD April 2011 Development
  • quick - Zx80 ASM questionWhile I am ploughing through lots of ASM listings, one of my earlier adaptation attempts surprised me [B][asm code][/B] [code] org 32768 start: ld…

    ... />
    [B]ld hl,text1 ; set HL with text1 data
    call printtext ; call printline routine
    ld hl ... ,text2 ; set HL with text2 data
    ld a,(hl) ; get character to ...
    Zetr0 Zetr0 May 2011 Development
  • Frank N SteinThis is an improved bugfix for [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0001849"]Frank N Stein[/URL] as discussed recently in [URL="htt…

    ... : equ $5C3D ; 23613
    PATCH2: LD HL, (ERR_SP) ; 42 61 92
    DEC HL ; 43
    DEC HL ; 43
    LD SP, HL ; 249
    Einar Saukas Einar Saukas May 2011 Infoseek database
  • Back to BASIC[U][B]Archaeology guide to programs compiled used MCODERII.d[/B][/U] After various people have been talking about "Frank'n'stein" I decided to finis…

    ...
    +1 LD HL,0
    +4 LD (59346),HL
    +7 LD HL,LINES
    +10 LD A,NVARS
    +12 LD ...
    Jimmy Jimmy May 2011 Development
  • Pixel Color IncorrectHello i am new to the ZX Spectrum and z80 assembly language. I am coding my first game and am having a small problem. I am trying to make the botom r…

    ... /> di ; disable interrupts

    ld hl, 22544 ; set ball's initial ...

    ld (hl), a ; position the ball

    ld hl, 23295 ; set ...

    DrawOoze

    ld (hl), a ; draw it

    ooze48k ooze48k June 2011 Development
  • Last Sunset for LatticaHere's a [b]rough first draft[/b] of the [url=http://www.users.globalnet.co.uk/~jg27paw4/pourri/lattica.gif]Lattica map[/url], just to demonstrate th…

    ... ; turn off flashing edges
    LD HL, $0032 ; A214 21 32 00 ...
    org $A8F3
    LD HL, $0032 ; A8F3 21 32 00 ...
    org $AF36
    LD HL, $0032 ; AF36 21 32 00 ...
    Battle Bunny Battle Bunny June 2011 Support files
  • CrusoePlease add the following "known errors" description for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0002872"]Crusoe[/URL]: [QUOTE]Bu…

    ... A84D ; message address correction
    LD A, $5D ; A84D 3E 5D ... POP BC ; B8F6 C1
    LD HL, $2D2B ; B8F7 21 2B 2D ... ; B8FA A7
    SBC HL, BC ; B8FB ED 42
    Einar Saukas Einar Saukas June 2011 Infoseek database
  • Shadow ROM partial decoding not implemented in emulatorsOr at least, not implemented in Spectaculator, and it seems that not in Fuse too. [URL="http://www.speccy.org/foro/viewtopic.php?f=8&t=408&start=53"…

    ... di
    ld hl,StartCopy
    ld (5cedh),hl
    rst ... StartCopy ld hl,0
    ld de,32768
    ld bc,16384 ...
    mcleod_ideafix mcleod_ideafix June 2011 Emulators
  • Bride of Frankenstein TAP has been hackedThe Bride of Frankenstein TAP on WoS doesn't have any spooks in it, so you're just wandering around an empty maze. This is because there's a RET at $…

    ... it is?
    [code]
    LD HL, $96D1 ; 8A9B 21 D1 96 ... 8A JP $8ABA
    --------
    LD HL, $B267 ; 92DF 21 67 B2 ... br /> --------
    DEC (HL) ; 9E1C 35 change: OR (HL)
    --------
    B5A8 ...
    Battle Bunny Battle Bunny June 2011 Infoseek database
  • (part of) screen to UDGHere is a routine to copy a Y,X-position on screen to a UDG. 0<=y<=23 0<=x<=31 144<=udg<=165 (UDG "A" to UDG "U") [code] ; start code with ; PRINT …

    Here is a routine to copy a Y,X-position on screen to a UDG.
    0
    Dr BEEP Dr BEEP June 2011 Development
  • Nemesis the Warlock (BUGFIX)This is a bugfix for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0003387"]Nemesis the Warlock[/URL], please add the following "known …

    ... :
    [CODE]
    77ff: ld a,($caf3) ; exit: 0=horizontal ... jp z,$7825
    7806: ld hl,($ca56) ; oops! may reach " ... when moving up
    7809: ld ($caf4),hl
    780c: jp $7825 ... 194
    7806: ld hl,($ca56)
    7809: ld ($caf4),hl
    780c: jp ...
    Einar Saukas Einar Saukas June 2011 Infoseek database
  • Thanos (improved BUGFIX)This is an improved BUGFIX for game [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0005221"]Thanos[/URL], please replace the "known errors" d…

    ... :
    658c 216b65 ld hl,$656b
    658f 7e ld a,(hl)
    6590 ...
    65a3 218400 ld hl,$0084
    65a6 226e65 ld ($656e),hl
    65a9 ...
    65f7 211800 ld hl,$0018
    65fa 226e65 ld ($656e),hl
    65fd ...
    Einar Saukas Einar Saukas June 2011 Infoseek database
  • Saving and Loading from tape in MC?I'm actually having problems with saving and loading from the ROM routines for the interpreter... I'm currently using the following codes for saving…

    ... /> [CODE]save:
    ld ix, _tape_header
    ld hl, _save_state
    call 0x0970 ...

    load:
    scf
    ld ... a, 0
    ld ix, _tape_header
    ld de, 17 ...
    Timmy Timmy July 2011 Development
  • automatic relocating of non-relocatable codeI was pondering upon the problem of changing absolute addresses used by CALL, JP, etc. when code is moved, without reassembling at the new location; …

    ... pointer
    ld hl,CHANGE
    add hl,bc
    ld sp,hl ;point SP ...
    ld (hl),e ;DE=new value
    inc hl
    ld (hl),d
    Battle Bunny Battle Bunny August 2011 Development
  • Kiwi OS for z80 computerHi everyone, Nearly made my z80 computer with 2K ROM 32K RAM. It has an OS im still writing called Kiwi (apple, blackberry, you get the idea ;D) he…

    ... LD HL, 32800 ;LOAD HL WITH STACK POINT LOCATION
    LD SP, HL ... br />
    LD HL, 33000 ;LOAD HL WITH STARTING ADDRESS
    HL ;REMEMBER HL
    LD HL, 1527 ;LOAD HL WITH ...
    Robin Robin August 2011 Announcements
  • machine code loadercan someone have a look at this loader and break down what its actually doing and also how i can stop it from executing the 2 loads of headerless blo…

    ... 07
    5B08 LD (5C48),A
    5B0B LD HL,5800
    5B0E ... LD BC,02FF
    5B11 ... A
    5B12 LD (HL),A
    5B13 INC HL
    5B14 DEC ... BC
    5B15 LD A,B ...
    djgarf djgarf August 2011 Sinclair Miscellaneous
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... print_message
    ld hl,key_left_port
    call get_defined_key

    ld hl,msg_right
    ld hl,key_right_port
    call get_defined_key

    ld hl,msg_fire
    polomint polomint September 2011 Development
  • Tile based graphics and scrolling thingy...Here's my best attempt so far at a tile based rendering and scrolling routine. It draws in 22 8*8 graphics tiles along the top of the screen (junk i…

    ... />
    ld hl,tile_base ; tile_base

    ld (next_tile_line),hl

    start ld b ... here

    ld hl,16385
    ld (position_var),hl ; Reset print position
    Zoltar Zoltar September 2011 Development
  • MCODE problem...Hi Folks, Trying to write a simple machine code program to hatch the screen. So far I have the following but even this is not working - it does not…

    ... ]21 40 00 LD HL,4000h
    06 AA LD B,AA
    11 01 00 LD DE,100h
    70 LD (HL),B
    23 ... INC HL
    1B DEC ...
    Paddy Coleman Paddy Coleman October 2011 Development
  • Getting the contents of tablesHi All, I'm risking a potentially daft question here as it seems pretty fundamental but here goes: What's the best way of pointing register pairs a…

    ... to call a routine with hl pointing at a screen address ... /> [CODE] ld ix,blocktab
    ld d,(ix+1)
    ld e,(ix ... +0)
    ld h,(ix+3 ... )
    ld l,(ix+2 ... 'm basically longing for a ld hl,(ix) command!), I'm ...
    R-Tape R-Tape October 2011 Development
  • Lord Of The Rings; Files skipped ?Hi folks, Does anyone know what blocks 8~13 are for in the Lord of The Rings: [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0006601[/url] I…

    ... /> 61440 LD HL,61440
    61443 LD DE,23296
    61446 LD BC,00144 ... RET
    61660 LD HL,00000
    61663 LD DE,00012
    ... DE
    61673 LD BC,00012
    61676 LD (HL),000
    ... C
    61690 LD (39542),A
    61693 LD HL,(57149)
    [/ ...
    Andrew Barker Andrew Barker October 2011 MIA/STP/SDP
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... /> LOGIC: ld hl,12
    add hl,sp
    ld sp,hl ;undo USR ... ld hl,OPCODES
    add hl,bc
    add hl,bc
    ld ... bc
    ld hl,OPERATE+1
    ld a,(hl)
    jr ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • probably a stupid question about RST16I'm using the 'hello world' code borrowed from [url=http://equant-retrochallenge.blogspot.com/2008/07/zx-spectrum-assembly-programming-under.html]her…

    ... />
    [code]
    ld hl,line ; Print line
    call ... out a line
    ld a,(hl) ; Get character to ... in 'A'
    inc hl ; Move onto the next ...
    you can load HL and call it again immediately ...
    sack sack October 2011 Development
  • Is it possible to access the +3 disk drive via m/c in USR0 mode?Is it possible to access the disk drive of the +3 via m/c +3DOS calls when running in USR0 mode? I ask because I'm having an awful lot of trouble ge…

    ...
    ld ($9000),sp ; 36864
    ld bc,$7ffd
    ld a,($5b5c ... /> ld b,3
    ld c,5
    ld d,0
    ld e ... ,1
    ld hl,filename ...
    call 262

    ld bc ...
    cmonkey cmonkey October 2011 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
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