Re: A83: inc (HL) on the TI83
[Prev][Next][Index][Thread]
Re: A83: inc (HL) on the TI83
If nobody can figure out why I can't use this routine for counting, I will
send the source code of all the problems to you.
-----Oorspronkelijk bericht-----
Van: David Phillips <david@acz.org>
Aan: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Datum: woensdag 9 augustus 2000 7:38
Onderwerp: Re: A83: inc (HL) on the TI83
>
>Nah. You want to load the address into HL. You save some space:
>
>; 11 bytes
>down:
> ld a,(yPos)
> cp 56
> ret z
> inc a
> ld (yPos),a
> ret
>
>; 9 bytes
>down:
> ld hl,yPos
> ld a,(hl)
> cp 56
> ret z
> inc (hl)
> ret
>
>> of course the larger one that uses the accumulator (reg A) is preferred.
>
>
>