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.011s
<1234567…34>
  • 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 de ... USR 40021+VAL "{,a"
    33 PRINT "RR ";a,"= ";USR 40021 ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • tiny routine to shift RAMTOP & stackCompressing some data areas above RAMTOP and wanting to make the released space available for BASIC arrays, I needed to move RAMTOP without using CLE…

    ... /> LD HL, 18 ; 33 18 0
    ADD HL, SP ; 57
    LD SP, HL ; 249 ...
    Battle Bunny Battle Bunny November 2011 Sinclair Basic
  • BREAK from GOSUBHere's another one. Just in case you wanted to break out of multiple GOSUB levels with a single command, here's a routine to do it, tested on all mod…

    ... [code]
    RETSUB: LD HL, 20 ; 33 20 0 ;Discard all but ... & (ERR_SP)
    LD SP, HL ; 249 ;from m/c ... )
    EX DE, HL ; 235
    LD (23613), SP ; 237 ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Help pleeease "Proving Emulator OpCode flags are correct"So I had a cunning plan... I wanted to write a test harness for Emulators that could "prove" that all opcode flags were correct. I wanted something m…

    ...
    50 DATA 33,0,112,221,33,0,128,6,0 ... below:

    LD HL,0x7000 //mcAddr, lAddr
    LD IX,0x8000 //xAddr ... ,0 //aAddr
    LD C,0 //fAddr
    LD D,0 //dAddr ...
    POP DE
    LD (HL),D
    LD (IX+0),E
    Korinel Korinel April 2012 Emulators
  • 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…

    ... /> call 5633
    ld de,rktdat
    ld bc,33
    call 8252 ... /> LD L, A
    ADD HL, HL
    ADD HL, HL
    ADD HL, HL
    ADD HL, HL ...
    ADD HL, HL
    LD DE ...
    daveysludge daveysludge November 2013 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 +…

    ...
    ld hl,48640
    ld de,48641
    ld (hl),191
    ld bc,256 ... = y*32
    ld hl,22528
    add hl,bc ;hl = address of start ... /> ld hl,char_address
    add hl,bc ;hl = row in table
    ld e,(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
  • Hooky - hook ZX ROM and rewire RST and NMI to RAM - rantThis is a rather long rant. Not for short tempered. :) The objective is to hook into RST "vectors" and NMI on a Spectrum without affecting the normal…

    ... i.e. opcodes C3 5B 33.

    0xFFFD JP 0x335B ... is to write C3 5B 33 instructions to the address FFFD ... /> 0x11DC LD (HL),#0x02 ; mem. 0xffff is 2
    0x11DE DEC HL ; HL=HL-1 ... 5cb2
    0x1222 LD HL,(5CB2) ; FF57
    0x1225 LD (HL),#0x3e ; write 3e ...
    tstih tstih July 2014 Development
  • Add with Carry ExampleHi, I have been really struggling to understand this simple example from Mastering Machine Code and I wonder if anyone can help? I have include…

    ...
    [code]LD DE,3385
    LD HL,7BC7
    LD A,L ;A ... = 7B
    ADD A,E ;A = 7B + 33 ... = AE
    LD L,A ;L = AE ... and carry flag set
    LD H,A ;H = 4C ... because I thought with load HL etc, then the H ...
    jonesypeter jonesypeter June 2016 Development
  • Sort 2 byte words (x, y) on ypos, also question about swap (DE), (HL)Well that was a lot of debugging ;) But if you want a routine which takes an array of 16 byte words x, y and then sort them on y (ignoring x), I'm…

    ... ; 4
    ld a, (de) ; 7
    ld (hl), a ; 7
    ex af, af' ; 4
    ld ... ; 4
    ld a, (de) ; 7
    ld (hl), a ; 7
    ex af, af' ; 4
    ld ... pop af
    pop hl
    ld c, a
    jr ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Who want to remake Double Dragon?Seeing as the Speccy version was crap (see my review: [url="http://www.gamestyle.net/retro.php?article=31"]http://www.gamestyle.net/retro.php?article…

    ... /> ld (restore), sp
    ld sp, xxxx

    pop hl
    ld (nnnn), hl 6144 ... /2 times
    pop hl ...
    ld (nnnn-2), hl
    ...

    pop hl
    ld (nnnn-6142), hl ...
    Fikee Fikee July 2003 Games
  • Anyone for a hacking challenge ?I have to get the DSK version of Tomahawk to work. It uses the well-known Digital Integration "SECURITY CODE" lock just like in Bobsled, ATF, etc. Th…

    ... it is...

    E26E LD A, (E95B)
    E271 RRA ...
    BadBeard BadBeard August 2003 Sinclair Miscellaneous
  • Sync-buzzer, interrupts and general confusionBeen wittering on about this in the Misc group, but thought it was best discussed here. Basically been trying to recreate the Sid-Sound effect from A…

    ... br /> ld hl,$f000
    ld de,$f001
    ld (hl),$f1
    ld bc, ... 257-1
    ldir
    ld a ...
    push de
    push hl

    ...

    xxxx Hz rate. The Z80 ...
    Alcoholics Anonymous Alcoholics Anonymous September 2003 Development
  • ZX81 ScrollingI'm tempted to have a go at a bit of ZX81 programming, using MCODER II, though I could really use a fast multi-directional scrolling routine. Does a…

    ... /> Full screen needs to lower 33 Bytes and add
    32 ... />
    [code]
    LD HL,(VAR FOR ENDSCREEN)
    LD DE,(VAR FOR ...
    SBC HL,DE
    LD B,H
    LD C,L
    ADD HL,DE
    EX DE,HL
    LDDR
    LD (DE),#76 ...
    Dr BEEP Dr BEEP February 2004 Development
  • i want to start writing my own gamesi want to start writing my own games but have no idea how. is there any downloadable dummys guides or some software that teaches u how. the only expe…

    ... so i remember that LD HL,NN has opcode 33 , LD BC, NN has ...
    Fikee Fikee February 2004 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ... :
    The two INC HL after eachother can also

    The POP HL always returns an even number ... after C reaches zero so HL must be preload with ... on 2005-02-08 13:33 ]
    [/quote]

    ... INC H totally unnecessary. LD HL,22528 and 2 INC L ...
    Dr BEEP Dr BEEP February 2005 Development
  • The incredible shrinking screendumpIn this topic I stated that I would be impressed if the screendump could be smaller than 37 bytes. [url="http://www.worldofspectrum.org/forums/viewt…

    ...

    start ld c,254
    nline ld hl,noret
    print ... dec hl
    inc bc ... it gives opportunities for the 33 bytes routine, which would look ...
    jr nbyte
    nline ld hl,table+4 ; call to NLINE ...
    Dr BEEP Dr BEEP February 2005 Development
  • T.I.M. - A New Interlace - Demo for DOWNLOADHere's something that's been in the works for quite a while ( mostly in my head ) and recently I've aquired assistance to help it come to fruition. …

    ... br /> exx
    ld hl, 16384
    exx
    ld a, counter ;(number ... /> push de
    push af ;33
    ex af, af'
    push af ;33
    inc h ;4 HL' down in screen ... push de
    push af ;33
    ex af, af'
    Fikee Fikee May 2005 Development
  • The incredible shrinking screendumpIn this topic I stated that I would be impressed if the screendump could be smaller than 37 bytes. [url="http://www.worldofspectrum.org/forums/viewt…

    ... in LD HL,#0014
    start ld c,255
    nline ld hl,table ... br /> start ld c,0
    ld hl,table
    jp (hl)
    [/ ...
    The routine is now 33 Bytes, but the BASIC-call ... +1 in BASIC.
    Total : 33 Bytes (30 Bytes)

    Dr BEEP Dr BEEP August 2005 Development
  • ANNOUNCE: BASin Release 12 ready for downloadWell, after a rather large break, BASin's latest incarnation is ready for public use. Probably. BASin is a Sinclair Spectrum development environme…

    ... 50000
    LD HL,50100
    LD DE,16384
    LD BC,6912
    50 DATA 50000,12,33,180,195,17,0,64 ...
    Dunny Dunny August 2005 Emulators
  • After roughly 22 years can you help?Hi, A long one this but here goes. Roughly 22 years ago (i was 14 if i remember right) i got a 48K speccy for christmas of my dad it was awesome an…

    ... /> On 2005-11-19 20:33, dwayne dibbly wrote:
    ...bunch ... 01 02 is same as LD HL,#0201

    First number ... is value which goes to HL. LD is just abbrev. (mnemonic) for ...
    piters piters November 2005 Sinclair Miscellaneous
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ... ld d,0 ; de = index of key pressed
    ld hl, ... KeyTransTables
    add hl,de

    ld a,$ ... C V
    defb 33,51,36,38,39 ; ...
    Mr Millside Mr Millside May 2006 Development
  • Games that are impossible to complete due to bugs!I'm trying to compile a list of Speccy games that cannot be completed because of a bug (or simply bad programming)! Here's a few... [B]Frankie Goes …

    ...

    should read :- #db85: ld hl, #5a84

    which makes ... nosh up)
    Poke 56197,33.

    Think the ending ...
    Mr. Anonymous Mr. Anonymous October 2006 Games
  • Not so BRIGHTOk, on the Spectrum I'm a crayon man so I don't know much about the coding. If I create a graphic in, say, SevenUp or TommyGun and the graphic is not…

    ... :
    ld hl,22528
    ld bc,768
    loop: ld a,(hl)
    set ... 6,a
    ld (hl),a
    inc hl
    30 DATA 33,0,88,1,3,0 ...
    BloodBaz BloodBaz October 2006 Development
  • "chunky" gfxHas anyone some experience with coding "chunky" gfx routines ? (chunky is something like this [url]http://www.pouet.net/prod.php?which=13204[/url])

    ... whatever (depends on variant), where XXXX/YYYY are pixel intensities (usually ... /> ld (hl),00001111b
    inc h
    ld (hl),10101111b
    inc h
    ld (hl ...
    baze baze January 2007 Development
  • Where to start?Hi all, I wanna start coding something for the speccy. I have good experience at C/C++ and some other languages. I have coded asm on pc too, and ma…

    ... /> defb 33,21,15 ; load hl pair with starting coords.
    ld (plx),hl ... into hl?
    [/QUOTE]

    33 is the opcode for "ld hl,nn ... entered as defb rather than "LD HL,xxx" because it's a ...
    Alcoholics Anonymous Alcoholics Anonymous March 2007 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
33 2.7K 3.9K
ld 6.3K 67.3K
hl 6.2K 48K
xxxx 247 367

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…
  • FOR SALE: Crash Magazines 33 issuesHi folks, here is my eBay blurb:<br /> <br /> CRASH MAGAZINES 33 Issues<br /> Issues 2 - 29, 31 - 34, 48<br /> <br /> This magnificent magazine from …
  • 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…

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

Copyright © 2024 World of Spectrum