Re: A82: Copying HL -- DE skipping bytes
[Prev][Next][Index][Thread]
Re: A82: Copying HL -- DE skipping bytes
How about incrementing HL in the first example? As to the second one,
doesn't it work?
- Tyler N.
-- Begin old message --
I want to copy HL to DE skipping every other byte of DE. I tried
something like this:
ld hl,TEXT_MEM
ld de,APD_BUF
ld a,44
loop:
ld bc,1
ldir
inc de
dec a
jr nz,loop
That didn't work. So I tried something like this:
ld hl,TEXT_MEM
ld de,APD_BUF
ld b,44
loop:
ld a,(hl)
ld (de),a
inc hl
inc de
inc de
djnz loop
-- End old message --
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]