Re: A83: inc (HL) on the TI83
[Prev][Next][Index][Thread]
Re: A83: inc (HL) on the TI83
I'm using the code for storing a graphical address (e.g.: x-coordinate) on
the screen. I want to increment this value, but when I use the accumulator,
it works perfectly. As soon as I change the top code into the code at the
bottom, the value of the memory address does not increment the right way, it
seems. I'm using the value stored at the mem-address for a counting loop,
which cannot be done using djnz, ldir, cpir, or any other stuff.
-----Oorspronkelijk bericht-----
Van: Apparatus <apparatus@mediaone.net>
Aan: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Datum: dinsdag 8 augustus 2000 17:39
Onderwerp: Re: A83: inc (HL) on the TI83
>
>How can you be certain that it's not working properly? are you displaying
>address or using a debugger?
>
>From: Chris
>e-mail: apparatus@mediaone.net
>
>----- Original Message -----
>From: <ComAsYuAre@aol.com>
>To: <assembly-83@lists.ticalc.org>
>Sent: Tuesday, August 08, 2000 5:56 AM
>Subject: Re: A83: inc (HL) on the TI83
>
>
>>
>> My guess is that you are using hl for something else and the second bit
of
>code is trashing it. Test it with a push hl \ pop hl around the two lines
>of code and see if that fixes it.
>>
>>
>> In a message dated Tue, 8 Aug 2000 8:17:14 AM Eastern Daylight Time,
>"Frank Schoep" <dsfs98@concepts.nl> writes:
>>
>> > Can anybody help me with this problem: (I think the solution is easy)
>> >
>> > I have written this piece of code:
>> >
>> > ld a,(address)
>> > inc a
>> > ld (address),a
>> >
>> > I tried replacing it with:
>> >
>> > ld hl,address
>> > inc (hl)
>> >
>> > But it does not seem to work properly. What am I doing wrong?
>> >
>> > Yours sincerely,
>> > Frank Schoep
>> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> Can
>anybody help me with this problem: (I think the solution is easy) I
>have written this piece of code: ld a,(address) inc a ld
(address),a
>I tried replacing it with: ld hl,address inc (hl) But it does not
>seem to work properly. What am I doing wrong? Yours sincerely, Frank
>Schoep
>>
>>
>>
>
>