Difference between revisions of "Operand Syntax"

From Archaic Pixels
Jump to: navigation, search
 
Line 1: Line 1:
<css> pre { font-family: Courier, monospace; } </css>
+
[pre]<nowiki>
 
+
[pre]
+
<nowiki>
+
  
 
         Operand syntax
 
         Operand syntax
Line 29: Line 26:
 
         (*) can be zero page or absolute
 
         (*) can be zero page or absolute
 
         Note: 'n' is a numeric value.
 
         Note: 'n' is a numeric value.
</nowiki>
+
</nowiki>[/pre]
[/pre]
+

Latest revision as of 01:42, 11 September 2010


        Operand syntax
        -----------------------------------------------------------------------

        A        accumulator
        #i       immediate
        #i,<n    immediate and zero page                | TST/SMB/RMB
        #i,<n,X  immediate and zero page indexed by X   | TST
        #i,<n,r  immediate, zero page and relative      | BBS/BBR
        #i,n     immediate and absolute                 | TST
        #i,n,X   immediate and absolute indexed by X    | TST
        <n       zero page
        <n,X     zero page indexed by X
        <n,Y     zero page indexed by Y
        <n,r     zero page and relative                 | BBRi/BBSi
        [n]      indirect (*)
        [n,X]    indirect pre-indexed by X (*)
        [n],Y    indirect zero page post-indexed by Y
        r        relative                               | BRA/BSR/Bcc
        n        absolute
        n,X      absolute indexed by X
        n,Y      absolute indexed by Y
        n,n,n    source, destination, length            | TAI/TIA/TII/TIN/TDD

        (*) can be zero page or absolute
        Note: 'n' is a numeric value.