From 3fc264ac15c0d48773e1ad694b370768c0b63e0e Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Tue, 7 May 2019 10:02:25 +0930 Subject: [PATCH] explain more similarities. Go to some effort to avoid some similarities where we can see a way. --- c64/basic/cmd_new.s | 4 ++-- c64/kernal/iec_turnaround_to_listen.s | 4 ++-- strings/00000000A9 | 1 + strings/009900 | 1 + strings/00B17A | 1 + strings/00F0034C | 3 +++ strings/01C820 | 1 + strings/02E67B | 1 + strings/02E67B60 | 4 ++++ strings/04684C | 1 + strings/08A607 | 1 + strings/20494E2000 | 1 + strings/38E90A | 1 + strings/38E930 | 1 + strings/3AA639 | 1 + strings/3ED0034C | 4 ++++ strings/425245414B00 | 1 + strings/464F52 | 1 + strings/481865 | 1 + strings/488A48A9 | 1 + strings/489848A9 | 3 +++ strings/48AA20 | 3 +++ strings/494E2000 | 1 + strings/494E47 | 1 + strings/494E4720 | 1 + strings/494E472046 | 1 + strings/524541 | 1 + strings/6018A5 | 1 + strings/6020EB | 5 +++++ strings/681865 | 1 + strings/681869 | 1 + strings/68186901 | 1 + strings/7A38E9 | 3 +++ strings/7A38E930 | 3 +++ strings/856CA56B | 1 + strings/8A4818 | 1 + strings/98488A | 1 + strings/A000B17A | 4 ++++ strings/A46D20 | 1 + strings/A53AA639 | 4 ++++ strings/A820D7 | 1 + strings/AA6885 | 1 + strings/AEA561D0 | 1 + strings/E900857B60 | 4 ++++ strings/E90185 | 4 ++++ strings/E901857AA5 | 5 +++++ strings/E901857B60 | 5 +++++ strings/F24C38 | 1 + strings/FFC8B1 | 1 + 49 files changed, 91 insertions(+), 4 deletions(-) create mode 100644 strings/00000000A9 create mode 100644 strings/009900 create mode 100644 strings/00B17A create mode 100644 strings/00F0034C create mode 100644 strings/01C820 create mode 100644 strings/02E67B create mode 100644 strings/02E67B60 create mode 100644 strings/04684C create mode 100644 strings/08A607 create mode 100644 strings/20494E2000 create mode 100644 strings/38E90A create mode 100644 strings/38E930 create mode 100644 strings/3AA639 create mode 100644 strings/3ED0034C create mode 100644 strings/425245414B00 create mode 100644 strings/464F52 create mode 100644 strings/481865 create mode 100644 strings/488A48A9 create mode 100644 strings/489848A9 create mode 100644 strings/48AA20 create mode 100644 strings/494E2000 create mode 100644 strings/494E47 create mode 100644 strings/494E4720 create mode 100644 strings/494E472046 create mode 100644 strings/524541 create mode 100644 strings/6018A5 create mode 100644 strings/6020EB create mode 100644 strings/681865 create mode 100644 strings/681869 create mode 100644 strings/68186901 create mode 100644 strings/7A38E9 create mode 100644 strings/7A38E930 create mode 100644 strings/856CA56B create mode 100644 strings/8A4818 create mode 100644 strings/98488A create mode 100644 strings/A000B17A create mode 100644 strings/A46D20 create mode 100644 strings/A53AA639 create mode 100644 strings/A820D7 create mode 100644 strings/AA6885 create mode 100644 strings/AEA561D0 create mode 100644 strings/E900857B60 create mode 100644 strings/E90185 create mode 100644 strings/E901857AA5 create mode 100644 strings/E901857B60 create mode 100644 strings/F24C38 create mode 100644 strings/FFC8B1 diff --git a/c64/basic/cmd_new.s b/c64/basic/cmd_new.s index ce355946..48994d35 100644 --- a/c64/basic/cmd_new.s +++ b/c64/basic/cmd_new.s @@ -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 diff --git a/c64/kernal/iec_turnaround_to_listen.s b/c64/kernal/iec_turnaround_to_listen.s index 25220abf..b65565b7 100644 --- a/c64/kernal/iec_turnaround_to_listen.s +++ b/c64/kernal/iec_turnaround_to_listen.s @@ -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) diff --git a/strings/00000000A9 b/strings/00000000A9 new file mode 100644 index 00000000..88f49cb5 --- /dev/null +++ b/strings/00000000A9 @@ -0,0 +1 @@ +A string of empty bytes followed by half an instruction. Not copyrightable diff --git a/strings/009900 b/strings/009900 new file mode 100644 index 00000000..243abd53 --- /dev/null +++ b/strings/009900 @@ -0,0 +1 @@ +instruction fragments. not copyrightable. diff --git a/strings/00B17A b/strings/00B17A new file mode 100644 index 00000000..9e20aa4c --- /dev/null +++ b/strings/00B17A @@ -0,0 +1 @@ +Instruction fragment plus LDA ($nn),Y. Single instruction. Not copyrightable. diff --git a/strings/00F0034C b/strings/00F0034C new file mode 100644 index 00000000..ab4dd69a --- /dev/null +++ b/strings/00F0034C @@ -0,0 +1,3 @@ +instruction fragment, followed by conditional execution of a JMP instruction. + +Common idiom in 6502 programming. Not copyrightable. diff --git a/strings/01C820 b/strings/01C820 new file mode 100644 index 00000000..06d92460 --- /dev/null +++ b/strings/01C820 @@ -0,0 +1 @@ +Instruction fragment, INX, instruction fragment. Single instruction. Not copyrightable. diff --git a/strings/02E67B b/strings/02E67B new file mode 100644 index 00000000..130528b8 --- /dev/null +++ b/strings/02E67B @@ -0,0 +1 @@ +Instruction fragment + store A in ZP. Single instruction. Not copyrightable. diff --git a/strings/02E67B60 b/strings/02E67B60 new file mode 100644 index 00000000..a444efb2 --- /dev/null +++ b/strings/02E67B60 @@ -0,0 +1,4 @@ +Instructio fragment, increment ZP location, return from subroutine. + +Simple combination of very common elements. Not copyrightable. +No creativity. diff --git a/strings/04684C b/strings/04684C new file mode 100644 index 00000000..c7a29bd5 --- /dev/null +++ b/strings/04684C @@ -0,0 +1 @@ +Instruction fragment, PLA, instruction fragment. Single instruction. Not copyrightable. diff --git a/strings/08A607 b/strings/08A607 new file mode 100644 index 00000000..b56306dd --- /dev/null +++ b/strings/08A607 @@ -0,0 +1 @@ +Instruction fragment, LDX from ZP. Single instruction. Not copyrightable. diff --git a/strings/20494E2000 b/strings/20494E2000 new file mode 100644 index 00000000..3cf89c58 --- /dev/null +++ b/strings/20494E2000 @@ -0,0 +1 @@ +The string " IN ". Not copyrightable. diff --git a/strings/38E90A b/strings/38E90A new file mode 100644 index 00000000..c72b7f07 --- /dev/null +++ b/strings/38E90A @@ -0,0 +1 @@ +Subtract 10 from something. Not copyrightable. diff --git a/strings/38E930 b/strings/38E930 new file mode 100644 index 00000000..46bcf3de --- /dev/null +++ b/strings/38E930 @@ -0,0 +1 @@ +substract $30 from A. Not copyrightable. diff --git a/strings/3AA639 b/strings/3AA639 new file mode 100644 index 00000000..006f6c67 --- /dev/null +++ b/strings/3AA639 @@ -0,0 +1 @@ +instruction fragment, LDX from ZP location. Not copyrightable. diff --git a/strings/3ED0034C b/strings/3ED0034C new file mode 100644 index 00000000..741b355e --- /dev/null +++ b/strings/3ED0034C @@ -0,0 +1,4 @@ +fragment / BNE / JMP somewhere + +Conditionally jump somewhere. Would be a single instruction +on many architectures. Not copyrightable. diff --git a/strings/425245414B00 b/strings/425245414B00 new file mode 100644 index 00000000..2051ad10 --- /dev/null +++ b/strings/425245414B00 @@ -0,0 +1 @@ +The word "BREAK". Not copyrightable. diff --git a/strings/464F52 b/strings/464F52 new file mode 100644 index 00000000..f80beea5 --- /dev/null +++ b/strings/464F52 @@ -0,0 +1 @@ +The string "FOR". Not copyrightable. diff --git a/strings/481865 b/strings/481865 new file mode 100644 index 00000000..630c80a2 --- /dev/null +++ b/strings/481865 @@ -0,0 +1 @@ +Push A to stack, then begin adding something. Simple register manipulations. Not copyrightable. diff --git a/strings/488A48A9 b/strings/488A48A9 new file mode 100644 index 00000000..cdfdb6b4 --- /dev/null +++ b/strings/488A48A9 @@ -0,0 +1 @@ +PHA / TAX / PHA / LDA #$xx - Simple register manipulations. Not copyrightable. diff --git a/strings/489848A9 b/strings/489848A9 new file mode 100644 index 00000000..850bb86c --- /dev/null +++ b/strings/489848A9 @@ -0,0 +1,3 @@ +Push Y and A onto the stack. Load A with something. + +Simple register manipulations. Not copyrightable. diff --git a/strings/48AA20 b/strings/48AA20 new file mode 100644 index 00000000..362986da --- /dev/null +++ b/strings/48AA20 @@ -0,0 +1,3 @@ +Push A to stack, copy A to X register, instruction fragment. + +Simple register manipulations. Not copyrightable. diff --git a/strings/494E2000 b/strings/494E2000 new file mode 100644 index 00000000..dec98bc0 --- /dev/null +++ b/strings/494E2000 @@ -0,0 +1 @@ +The string "IN ". Not copyrightable. diff --git a/strings/494E47 b/strings/494E47 new file mode 100644 index 00000000..54359cda --- /dev/null +++ b/strings/494E47 @@ -0,0 +1 @@ +"ING", fragment of "SEARCHING FOR". Not copyrightable. diff --git a/strings/494E4720 b/strings/494E4720 new file mode 100644 index 00000000..b0f10f63 --- /dev/null +++ b/strings/494E4720 @@ -0,0 +1 @@ +"ING ", fragment of "SEARCHING FOR". Not copyrightable. diff --git a/strings/494E472046 b/strings/494E472046 new file mode 100644 index 00000000..a7be30f9 --- /dev/null +++ b/strings/494E472046 @@ -0,0 +1 @@ +"ING F", fragment of "SEARCHING FOR". Not copyrightable. diff --git a/strings/524541 b/strings/524541 new file mode 100644 index 00000000..4e1de60e --- /dev/null +++ b/strings/524541 @@ -0,0 +1 @@ +The string "REA", being a fragment of "BREAK". Not copyright. diff --git a/strings/6018A5 b/strings/6018A5 new file mode 100644 index 00000000..c53dffe3 --- /dev/null +++ b/strings/6018A5 @@ -0,0 +1 @@ +RTS / CLC + instruction fragment. End of routine followed by single instruction. Not copyrightable. diff --git a/strings/6020EB b/strings/6020EB new file mode 100644 index 00000000..dabc25cd --- /dev/null +++ b/strings/6020EB @@ -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 diff --git a/strings/681865 b/strings/681865 new file mode 100644 index 00000000..fbb2d60b --- /dev/null +++ b/strings/681865 @@ -0,0 +1 @@ +Pull A value from stack, and add something to it. Simple register manipulations. Not copyrightable. diff --git a/strings/681869 b/strings/681869 new file mode 100644 index 00000000..d9ce4cc8 --- /dev/null +++ b/strings/681869 @@ -0,0 +1 @@ +Pull A from stack and add something. Simple register manipulation. Not copyrightable. diff --git a/strings/68186901 b/strings/68186901 new file mode 100644 index 00000000..d9ce4cc8 --- /dev/null +++ b/strings/68186901 @@ -0,0 +1 @@ +Pull A from stack and add something. Simple register manipulation. Not copyrightable. diff --git a/strings/7A38E9 b/strings/7A38E9 new file mode 100644 index 00000000..2aaec442 --- /dev/null +++ b/strings/7A38E9 @@ -0,0 +1,3 @@ +instruction fragment, SEC, SBC. Common subtraction sequence. Not copyrightable. + +no creative element. Would be a single instruction on many architectures. diff --git a/strings/7A38E930 b/strings/7A38E930 new file mode 100644 index 00000000..5d588195 --- /dev/null +++ b/strings/7A38E930 @@ -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. diff --git a/strings/856CA56B b/strings/856CA56B new file mode 100644 index 00000000..b0163b07 --- /dev/null +++ b/strings/856CA56B @@ -0,0 +1 @@ +Store A in ZP location, then load A with contents of another ZP location. Not copyrightable. diff --git a/strings/8A4818 b/strings/8A4818 new file mode 100644 index 00000000..5c32a887 --- /dev/null +++ b/strings/8A4818 @@ -0,0 +1 @@ +Push X register to stack and clear C flag. Simple register manipulations. Not copyrightable. diff --git a/strings/98488A b/strings/98488A new file mode 100644 index 00000000..2f96dfa4 --- /dev/null +++ b/strings/98488A @@ -0,0 +1 @@ +Fragment of sequence to save registers on the stack. Not copyrightable. diff --git a/strings/A000B17A b/strings/A000B17A new file mode 100644 index 00000000..eb82a794 --- /dev/null +++ b/strings/A000B17A @@ -0,0 +1,4 @@ +Dereference pointer and read first byte. + +Single instruction on many architectures. +Common idiom. No creativity. Not copyrightable. diff --git a/strings/A46D20 b/strings/A46D20 new file mode 100644 index 00000000..604e871a --- /dev/null +++ b/strings/A46D20 @@ -0,0 +1 @@ +LDY $6D followed by instruction fragment. Single instruction. Not copyrightable. diff --git a/strings/A53AA639 b/strings/A53AA639 new file mode 100644 index 00000000..106d6a16 --- /dev/null +++ b/strings/A53AA639 @@ -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. diff --git a/strings/A820D7 b/strings/A820D7 new file mode 100644 index 00000000..e2e018c7 --- /dev/null +++ b/strings/A820D7 @@ -0,0 +1 @@ +instruction fragments. Not copyrightable. diff --git a/strings/AA6885 b/strings/AA6885 new file mode 100644 index 00000000..a88cdac0 --- /dev/null +++ b/strings/AA6885 @@ -0,0 +1 @@ +TAX, PLA, STA in ZP. Simple register manipulations. Not copyrightable. diff --git a/strings/AEA561D0 b/strings/AEA561D0 new file mode 100644 index 00000000..df561762 --- /dev/null +++ b/strings/AEA561D0 @@ -0,0 +1 @@ +LDA from ZP surrounded by instruction fragments. Single instruction. Not copyrightable. diff --git a/strings/E900857B60 b/strings/E900857B60 new file mode 100644 index 00000000..034ed3b1 --- /dev/null +++ b/strings/E900857B60 @@ -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. diff --git a/strings/E90185 b/strings/E90185 new file mode 100644 index 00000000..2ed9d490 --- /dev/null +++ b/strings/E90185 @@ -0,0 +1,4 @@ +subtract 1 from something, then store something into ZP. + +Simple combination of very common elements. Not copyrightable. +No creativity. diff --git a/strings/E901857AA5 b/strings/E901857AA5 new file mode 100644 index 00000000..4220a7a2 --- /dev/null +++ b/strings/E901857AA5 @@ -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. diff --git a/strings/E901857B60 b/strings/E901857B60 new file mode 100644 index 00000000..28947436 --- /dev/null +++ b/strings/E901857B60 @@ -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. diff --git a/strings/F24C38 b/strings/F24C38 new file mode 100644 index 00000000..e2e018c7 --- /dev/null +++ b/strings/F24C38 @@ -0,0 +1 @@ +instruction fragments. Not copyrightable. diff --git a/strings/FFC8B1 b/strings/FFC8B1 new file mode 100644 index 00000000..bd796fd5 --- /dev/null +++ b/strings/FFC8B1 @@ -0,0 +1 @@ +INY surrounded by instruction fragments. Single instruction. Not copyrightable.