Skip to content

Commit

Permalink
explain more similarities. Go to some effort to avoid some similariti…
Browse files Browse the repository at this point in the history
…es where we can see a way.
  • Loading branch information
gardners committed May 7, 2019
1 parent f15c7aa commit 3fc264a
Show file tree
Hide file tree
Showing 49 changed files with 91 additions and 4 deletions.
4 changes: 2 additions & 2 deletions c64/basic/cmd_new.s
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ basic_do_new:

;; Zero line pointer
;; XXX - We should also zero $0800, i.e., basic_start_of_text_ptr - 1
ldy #$00
ldy #$01
tya
sta (basic_start_of_text_ptr),y
iny
dey
sta (basic_start_of_text_ptr),y


Expand Down
4 changes: 2 additions & 2 deletions c64/kernal/iec_turnaround_to_listen.s
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ iec_turnaround_to_listen:
dex
bne -

jsr printf
.byte "TURNAROUND FAILED - FILE NOT FOUND?",$0d,$00
;; jsr printf
;; .byte "TURNAROUND FAILED - FILE NOT FOUND?",$0d,$00

;; ;; Timeout = file not found error
;; ;; (https://www.pagetable.com/?p=1023)
Expand Down
1 change: 1 addition & 0 deletions strings/00000000A9
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A string of empty bytes followed by half an instruction. Not copyrightable
1 change: 1 addition & 0 deletions strings/009900
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
instruction fragments. not copyrightable.
1 change: 1 addition & 0 deletions strings/00B17A
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instruction fragment plus LDA ($nn),Y. Single instruction. Not copyrightable.
3 changes: 3 additions & 0 deletions strings/00F0034C
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instruction fragment, followed by conditional execution of a JMP instruction.

Common idiom in 6502 programming. Not copyrightable.
1 change: 1 addition & 0 deletions strings/01C820
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instruction fragment, INX, instruction fragment. Single instruction. Not copyrightable.
1 change: 1 addition & 0 deletions strings/02E67B
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instruction fragment + store A in ZP. Single instruction. Not copyrightable.
4 changes: 4 additions & 0 deletions strings/02E67B60
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Instructio fragment, increment ZP location, return from subroutine.

Simple combination of very common elements. Not copyrightable.
No creativity.
1 change: 1 addition & 0 deletions strings/04684C
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instruction fragment, PLA, instruction fragment. Single instruction. Not copyrightable.
1 change: 1 addition & 0 deletions strings/08A607
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instruction fragment, LDX from ZP. Single instruction. Not copyrightable.
1 change: 1 addition & 0 deletions strings/20494E2000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The string " IN ". Not copyrightable.
1 change: 1 addition & 0 deletions strings/38E90A
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Subtract 10 from something. Not copyrightable.
1 change: 1 addition & 0 deletions strings/38E930
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
substract $30 from A. Not copyrightable.
1 change: 1 addition & 0 deletions strings/3AA639
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
instruction fragment, LDX from ZP location. Not copyrightable.
4 changes: 4 additions & 0 deletions strings/3ED0034C
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fragment / BNE <skip following JMP instruction> / JMP somewhere

Conditionally jump somewhere. Would be a single instruction
on many architectures. Not copyrightable.
1 change: 1 addition & 0 deletions strings/425245414B00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The word "BREAK". Not copyrightable.
1 change: 1 addition & 0 deletions strings/464F52
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The string "FOR". Not copyrightable.
1 change: 1 addition & 0 deletions strings/481865
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Push A to stack, then begin adding something. Simple register manipulations. Not copyrightable.
1 change: 1 addition & 0 deletions strings/488A48A9
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PHA / TAX / PHA / LDA #$xx - Simple register manipulations. Not copyrightable.
3 changes: 3 additions & 0 deletions strings/489848A9
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Push Y and A onto the stack. Load A with something.

Simple register manipulations. Not copyrightable.
3 changes: 3 additions & 0 deletions strings/48AA20
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Push A to stack, copy A to X register, instruction fragment.

Simple register manipulations. Not copyrightable.
1 change: 1 addition & 0 deletions strings/494E2000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The string "IN ". Not copyrightable.
1 change: 1 addition & 0 deletions strings/494E47
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"ING", fragment of "SEARCHING FOR". Not copyrightable.
1 change: 1 addition & 0 deletions strings/494E4720
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"ING ", fragment of "SEARCHING FOR". Not copyrightable.
1 change: 1 addition & 0 deletions strings/494E472046
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"ING F", fragment of "SEARCHING FOR". Not copyrightable.
1 change: 1 addition & 0 deletions strings/524541
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The string "REA", being a fragment of "BREAK". Not copyright.
1 change: 1 addition & 0 deletions strings/6018A5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RTS / CLC + instruction fragment. End of routine followed by single instruction. Not copyrightable.
5 changes: 5 additions & 0 deletions strings/6020EB
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RTS / JSR $xxEB. One and a half instructions. Not copyrightable.

RTS marks the end of a routine, and JSR is common at the start of
a routine. Thus 1 in 256 such routines would be expected to have an LSB
of $EB
1 change: 1 addition & 0 deletions strings/681865
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pull A value from stack, and add something to it. Simple register manipulations. Not copyrightable.
1 change: 1 addition & 0 deletions strings/681869
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pull A from stack and add something. Simple register manipulation. Not copyrightable.
1 change: 1 addition & 0 deletions strings/68186901
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pull A from stack and add something. Simple register manipulation. Not copyrightable.
3 changes: 3 additions & 0 deletions strings/7A38E9
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instruction fragment, SEC, SBC. Common subtraction sequence. Not copyrightable.

no creative element. Would be a single instruction on many architectures.
3 changes: 3 additions & 0 deletions strings/7A38E930
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instruction fragment, SEC, SBC value. Common subtraction sequence. Not copyrightable.

no creative element. Would be a single instruction on many architectures.
1 change: 1 addition & 0 deletions strings/856CA56B
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Store A in ZP location, then load A with contents of another ZP location. Not copyrightable.
1 change: 1 addition & 0 deletions strings/8A4818
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Push X register to stack and clear C flag. Simple register manipulations. Not copyrightable.
1 change: 1 addition & 0 deletions strings/98488A
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fragment of sequence to save registers on the stack. Not copyrightable.
4 changes: 4 additions & 0 deletions strings/A000B17A
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dereference pointer and read first byte.

Single instruction on many architectures.
Common idiom. No creativity. Not copyrightable.
1 change: 1 addition & 0 deletions strings/A46D20
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LDY $6D followed by instruction fragment. Single instruction. Not copyrightable.
4 changes: 4 additions & 0 deletions strings/A53AA639
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Load A and X from $3A and $39

Loading registers with the contents of memory is not copyrightable.
No creative element.
1 change: 1 addition & 0 deletions strings/A820D7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
instruction fragments. Not copyrightable.
1 change: 1 addition & 0 deletions strings/AA6885
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TAX, PLA, STA in ZP. Simple register manipulations. Not copyrightable.
1 change: 1 addition & 0 deletions strings/AEA561D0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LDA from ZP surrounded by instruction fragments. Single instruction. Not copyrightable.
4 changes: 4 additions & 0 deletions strings/E900857B60
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
subtract 0 , store to ZP and return from subroutine

Effectively a subtract at the end of a routine.
Nothing creative. Not copyrightable.
4 changes: 4 additions & 0 deletions strings/E90185
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
subtract 1 from something, then store something into ZP.

Simple combination of very common elements. Not copyrightable.
No creativity.
5 changes: 5 additions & 0 deletions strings/E901857AA5
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
subtract 1 from something, then store result in ZP, followed by instruction fragment

Essentially a single subtraction instruction at the end of a routine.
Simple combination of very common elements. Not copyrightable.
No creativity.
5 changes: 5 additions & 0 deletions strings/E901857B60
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
subtract 1 from something, then store result in ZP and return from subroutine.

Essentially a single subtraction instruction at the end of a routine.
Simple combination of very common elements. Not copyrightable.
No creativity.
1 change: 1 addition & 0 deletions strings/F24C38
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
instruction fragments. Not copyrightable.
1 change: 1 addition & 0 deletions strings/FFC8B1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INY surrounded by instruction fragments. Single instruction. Not copyrightable.

0 comments on commit 3fc264a

Please sign in to comment.