[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[f-cpu] pointer add & sub
>> (you know, Whygee, you told me if I do "add 8,sp,sp",
>> sp would no longer be considered as a pointer).
I don't understand why, by the way.
You could have the following :
- add r3,r2,r1 => r1.pointer = r2.pointer XOR r3.pointer
- sub r3,r2,r1 => r1.pointer = r3.pointer AND NOT r2.pointer
(as for immediates, the obvious convention is imm8.pointer = false)
So, unless there are useful exceptions to the above,
you can get rid of special "memory pointer" operations.
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu in the body. http://f-cpu.seul.org/