[Coco] ASM question: LDA ,X

William Astle lost at l-w.ca
Thu Jan 24 11:25:23 EST 2019


Of course. That operation doesn't exist since it combines an offset with 
a post increment.

On 2019-01-24 8:55 a.m., Jim OKeefe wrote:
> Edtasm throws the error "bad operand" on
>   lda  0,x+
> 
> Jim
> 
> On Wed, Jan 23, 2019, 3:57 PM Salvador Garcia via Coco <coco at maltedmedia.com
> wrote:
> 
>>   Thanks! This is interesting and I'll be sure to include it in my notes.
>>
>> Thank you both for your replies, much appreciated! Salvador
>>
>>
>>      On Wednesday, January 23, 2019, 3:00:24 PM CST, William Astle <
>> lost at l-w.ca> wrote:
>>
>>   <snipped>
>>
>> Also, as an aside, the "0,x" and ",x" operands actually have different
>> encodings in the final result. They have the same result, but the ",x"
>> one is faster. Many assemblers will optimize "0,x" to be ",x", but
>> that's not something you can rely on.
>>
>>
>> On 2019-0<snipped>
>>
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
> 



More information about the Coco mailing list