Hallo allemaal,
More questions about the 65816:
MVN and MVP need 2 extra bytes which represented the upper 8 bits of the
24
bits source- and destiny-address. If you know the value then it is no
problem to write:
MVN $1233
The problem occurs when you don't know both values.
1- You can get the high- and lowbyte of an address using > and <:
lda #<(Label1)
ldx #>(Label1)
Is there a standard for the upper 8 bits?
I use the ! sign fot the moment:
lda #!($123456) = lda #$12
A way to get the operand for MVN/MVP would be:
MVN (!($12xxxx) * 256) + !($34yyyy)
But I don't like this solution.
2- Is there an other, more easy, way to note this down?
(personal use at the moment: MVN !(destiny) , !(source) )
3- PEA is an immediate instruction: PEA #$1234 ?
4- PEI is a zeropage instruction: PEI $12 ?
Thanks!
Groetjes, Ruud
-
This message was sent through the cbm-hackers mailing list.
To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tcm.hut.fi.
Archive generated by hypermail 2.1.1.