Code: Select all
ld hl,TempSprite
ld (hl),MarioSprite
Moderator: MaxCoderz Staff
Code: Select all
ld hl,TempSprite
ld (hl),MarioSprite
Code: Select all
push hl
pop ix
Code: Select all
ld a,h
ld (tempSpriteAdress),a
ld a,l
ld (tempSpriteAdress+1),a
Code: Select all
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
Code: Select all
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
Code: Select all
ld a,(hl)
ld b,a
inc hl
ld a,(hl)
ld h,a
ld l,b
Hmmm... I already was afraid, that my thoughts would be wrong ... Don't worry, how couldn't I believe one of the z80 godsCoBB wrote:You're wrong, Vincent, and tr1p is right. Check out my LD table if you don't believe me.
so if you do LD (ArbitraryAddress),HL where will it go? It doesn't fit in a 8bit register I suppose, so it most likely will use both (ArbitraryAddress) and (ArbitraryAddress+1),right? and does that mean that LD HL,(Arbitrary Adress) does also work?CoBB wrote:Also, referring to your previous post, LD (ArbitraryAddress), HL is also possible.
endianness problem? I don't get it...CoBB wrote:BTW you have some endianness problem there, the high byte comes after the low byte in the Z80.
Code: Select all
ld hl,MarioSprite
ld (TempSprite),hl
....
....
...
ld ix,TempSprite
call ionlargeSprite
call ionfastcopy
Code: Select all
ld hl,MarioSprite
ld (TempSprite),hl
....
....
...
ld ix,(TempSprite)
call ionlargeSprite
call ionfastcopy
Code: Select all
ld hl,$9876
ld ($9000),hl
Code: Select all
ld ix,$9000
Code: Select all
ld ix,($9000)
Code: Select all
ld hl,TempSprite
push hl
pop ix