Re: A86: I need help...
[Prev][Next][Index][Thread]
Re: A86: I need help...
whoops, you're right, I made a boo-boo...
You can only do 8-bit loads to a memory address with the a register, so
c doesn't work. Anyway, a better, shorter piece of code that uses de to
cover both _curCol and _curRow in one swipe just got posted, so...
The A register is the Accumulator register. It is required by many
instructions. All 8-bit arithmetic and boolean operations use the a
register as one of the arguments. The a register must be used for 8-bit
loads to or from a memory address. The c register is just a
general-purpose register.
Chris Remo wrote:
>
> > ld (_curCol), c ;put zero into column
>
> Thanks very much for your incredibly prompt help, but for some reason,
> whenever I try <ld (_curCol),c> the assembler tells me that this line uses
> an unrecognized argument format for the ld instruction. When, for the sake
> of experiment, I attempted to change <ld (_curRow),a> to <ld (_curCol),c>,
> the assembler also returns an error. Is the c register different than the a
> register, and why?
> Thanks again for your help,
> Chris Remo
References: