PT_ wrote:
- Code: Select all
ld a, y
ld de, pointeur
ld hl, data
CopyLine:
ld bc, x
ldir
ex de, hl
(inc b)
ld c, 320-256-x
add hl, bc
ex de, hl
dec a
jr nz, CopyLine
Why you inc b and you subtract to c 256 ?
PT_ wrote:
- Code: Select all
ld a, y
ld de, pointeur
ld hl, data
CopyLine:
ld bc, x
ldir
ex de, hl
(inc b)
ld c, 320-256-x
add hl, bc
ex de, hl
dec a
jr nz, CopyLine
PUSH HL ; ->HLU, H, L
POP AF ; <- HLU, H
;Instruction
PUSH AF ; -> HLU, H
POP HL ; <- HLU, H, L
Return to Langages alternatifs
Users browsing this forum: No registered users and 5 guests