reduce avoidable byte similarities with C64 KERNAL
This commit is contained in:
1 parent
bf2cd05df3
commit
af67f17da1
3 files changed
+9
-3
No files matched your search
+1
-1
@@ -6,8 +6,8 @@ getin:
|
|||||||
bne +
|
bne +
|
||||||
|
|
||||||
;; Nothing in keyboard buffer to read
|
;; Nothing in keyboard buffer to read
|
||||||
lda #$00
|
|
||||||
sec
|
sec
|
||||||
|
lda #$00
|
||||||
rts
|
rts
|
||||||
|
|
||||||
*
|
*
|
||||||
|
|||||||
+7
-1
@@ -10,8 +10,14 @@ ramtas_l1:
|
|||||||
INY
|
INY
|
||||||
BNE ramtas_l1
|
BNE ramtas_l1
|
||||||
ramtas_l2:
|
ramtas_l2:
|
||||||
STA $0200,Y
|
;; How many ways are there to efficiently erase these two pages
|
||||||
|
;; of RAM? We would like to avoid any unnecessary byte similarity
|
||||||
|
;; with the C64 KERNAL. Thus we do $0300 before $0200, even though
|
||||||
|
;; with the longer sequence of identicale bytes we see no basis for
|
||||||
|
;; it being copyrightable. Again, we just want to redue the attack
|
||||||
|
;; surface for any misguided suit.
|
||||||
STA $0300,Y
|
STA $0300,Y
|
||||||
|
STA $0200,Y
|
||||||
INY
|
INY
|
||||||
BNE ramtas_l2
|
BNE ramtas_l2
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -15,6 +15,6 @@ stop:
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
stop_pressed:
|
stop_pressed:
|
||||||
lda #$00
|
|
||||||
sec
|
sec
|
||||||
|
lda #$00
|
||||||
rts
|
rts
|
||||||
Reference in new issue
Block a user