add more explanations of common instruction sequences

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-24 10:21:52 +09:30
1 parent 4795660ffb
commit 2674adf1e6
24 files changed
+133

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
End of routine followed by $00 -> ZP location
$60 = RTS = return from subroutine. Very common.
LDA #$00 / STA $xx is also very common.
It is no suprise to find these together many times in code.
Not copyrightable.
+3
View File
@@ -0,0 +1,3 @@
STA $DC00 instruction
Single instruction. Not copyrightable.
+3
View File
@@ -0,0 +1,3 @@
STA $DD00 instruction
Single instructions are not copyrightable.
+3
View File
@@ -0,0 +1,3 @@
STA $DC04 instruction.
Single instruction. Not copyrightable.
+4
View File
@@ -0,0 +1,4 @@
STA $DC04 / LDA #$xx sequence
This is a single instruction with the opcode of a very common
instruction (LDA #$xx) following. Not copyrightable.
+3
View File
@@ -0,0 +1,3 @@
STA $DC05 instruction
Single instruction. Not copyrightable.
+3
View File
@@ -0,0 +1,3 @@
STA $DC0E instructioon
Single instruction. Not copyrightable.
+3
View File
@@ -0,0 +1,3 @@
STA $D011
Single instructions are not copyrightable
+3
View File
@@ -0,0 +1,3 @@
STA $0200,Y instruction
Single instruction. Not copyrightable.
+6
View File
@@ -0,0 +1,6 @@
Store $00 to a ZP location
LDA #$00
STA $xx
Obvious way to do this, so not copyrightable.
+6
View File
@@ -0,0 +1,6 @@
Store $00 somewhere
LDA #$00
STA $xxxx
This is an obvious way to put $00 into a memory location
+6
View File
@@ -0,0 +1,6 @@
Store $01 to a ZP location
LDA #$01
STA $xx
Obvious way to do this, so not copyrightable.
+6
View File
@@ -0,0 +1,6 @@
Put $03 into ZP location
LDA #$03
STA $xx
This is the obvious way to put $03 into a ZP memory location.
+7
View File
@@ -0,0 +1,7 @@
Store $08 somewhere
LDA #$08
STA $xxxx
is the obvious way to put $08 into a memory location.
Not copyrightable.
+7
View File
@@ -0,0 +1,7 @@
$2F -> CPU data direction port
LDA #$2F
STA $00
This is the obvious way to put the recommended default value
into the 6510's data direction register. Not copyrightable.
+6
View File
@@ -0,0 +1,6 @@
Store $3F somewhere
LDA #$3F
STA $xxxx
Obvious way to achieve this, so not copyrightable.
+7
View File
@@ -0,0 +1,7 @@
Put $7F -> $xx0D
LDA #$7f
STA $xx0d
This is the obvious way to put $7F into a memory location ending in $0D.
Not copyrightable.
+3
View File
@@ -0,0 +1,3 @@
LDA $DD00 instruction
Single instructions are not copyrightable
+3
View File
@@ -0,0 +1,3 @@
LDA $DC0D instruction
Single instructions are not copyrightable.
+7
View File
@@ -0,0 +1,7 @@
Compare A with zero before branching
CMP #$00
Bxx $nnnn
This is a common way to take a branch based on whether the A register
holds zero or not.
+8
View File
@@ -0,0 +1,8 @@
Take branch based on whether A = $03
CMP #$03
Bxx $nnnn
Common instruction sequence and obvious way to
take a branch based on whether A = $03.
Not copyrightable.
+8
View File
@@ -0,0 +1,8 @@
Branch over JMP
Bxx +
JMP $xxxx
*
Very common sequence to conditionally jump somewhere.
Not coppyrightable.
+7
View File
@@ -0,0 +1,7 @@
Branch backwards or return
Bxx *-10
RTS
This is the obvious way to either branch backwards or return from a routine.
i.e. it is a typical loop construct. Not copyrightable.
+15
View File
@@ -0,0 +1,15 @@
Branch over two instructions, first being LDA #$xx
This corresponds to the following sequence:
Bxx +
LDA #$xx
(two more bytes not matched
*
This is the obvious way to conditionally execute two instructions,
the first of which is LDA #$xx, which is very common.
That the argument of LDA #$xx doesn't match, nor does the following
two bytes, adds strength to the argument that this is a non-copyrightable
sequence of bytes.