add more explanations of byte sequences

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-24 12:48:45 +09:30
1 parent e63b978137
commit 3957a92f44
10 files changed
+108

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
Preserve registers on stack
This is the standard form of saving the A X and Y registers on the stack
PHA
TXA
PHA
TYA
PHA
See, for example:
http://6502.org/tutorials/register_preservation.html
Not copyrightable.
+5
View File
@@ -0,0 +1,5 @@
PLA / TAY / PLA / TAX sequence
This is a common sequence for restoring registers from the stack.
It is a fragment of the reverse of pushing the registers A X and Y
in alphabetic order. Not copyrightable.
+16
View File
@@ -0,0 +1,16 @@
End of interrupt restore registers and resume sequence
This is the standard form of returning from an interrupt on a 6502:
PLA
TAY
PLA
TAX
PLA
RTI
See, for example:
http://6502.org/tutorials/register_preservation.html
Not copyrightable.
+5
View File
@@ -0,0 +1,5 @@
tail end of access to $0282, followed by RTS
This small fragment is a return from subroutine, where
the last thing the subroutine does is access memory location $0282.
This is not copyrightable.
+5
View File
@@ -0,0 +1,5 @@
tail end of access to $0284, followed by RTS
This small fragment is a return from subroutine, where
the last thing the subroutine does is access memory location $0284.
This is not copyrightable.
+15
View File
@@ -0,0 +1,15 @@
Preserve registers on stack
This is the standard form of saving the A X and Y registers on the stack
PHA
TXA
PHA
TYA
PHA
See, for example:
http://6502.org/tutorials/register_preservation.html
Not copyrightable.
+16
View File
@@ -0,0 +1,16 @@
End of interrupt restore registers and resume sequence
This is the standard form of returning from an interrupt on a 6502:
PLA
TAY
PLA
TAX
PLA
RTI
See, for example:
http://6502.org/tutorials/register_preservation.html
Not copyrightable.
+11
View File
@@ -0,0 +1,11 @@
Branch over following JSR instruction
A branch with argument $03 skips the following 3 bytes.
A JSR instruction has the initial byte value of $20.
Therefore $F0 $XX $20 is part of a
Bxx +
JSR $xxxx
*
instruction sequence.
This is a very common construction, and the logical way to
conditionally call a routines, and therefore is not copyrightable.
+10
View File
@@ -0,0 +1,10 @@
Jump conditionally
Conditionally take a JMP
Bxx +
JMP $xxxx
*
This is a very common instruction sequence.
Not copyrightable.
+10
View File
@@ -0,0 +1,10 @@
Jump conditionally
Conditionally take a JMP
Bxx +
JMP $xxxx
*
This is a very common instruction sequence.
Not copyrightable.