[Coco] Direct page register question
Salvador Garcia
salvadorgarciav at yahoo.com
Wed Oct 31 15:40:19 EDT 2018
I want to understand this fully.
LDA $85
When will this be assembled as direct page and when as extended addressing?
I understand the use of SETDP and the less than symbol (<),
Why is the following assembled as extended?
LDA #$40
TFR A, DP
SETDP $40
LDA $85
Would this be assembled as direct page?
LDA #$22
TFR A, DP
LDA $85
Thanks! Salvador
On Tuesday, October 30, 2018, 2:50:54 PM CDT, William Astle <lost at l-w.ca> wrote:
<snip>
Since Dave didn't mention it explicitly and it might surprise some
people, I should mention here that if you do use SETDP to something
other than 0, then "LDA $85" will assemble as extended addressing.
So if you do "SETDP $40", then "LDA $4085" would assemble as direct
addressing but "LDA $85" would assemble as extended.
<snip>
More information about the Coco
mailing list