reduce avoidable byte similarities with C64 KERNAL

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-24 14:57:15 +09:30
1 parent bf2cd05df3
commit af67f17da1
3 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -6,8 +6,8 @@ getin:
bne +
;; Nothing in keyboard buffer to read
lda #$00
sec
lda #$00
rts
*
+7 -1
View File
@@ -10,8 +10,14 @@ ramtas_l1:
INY
BNE ramtas_l1
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 $0200,Y
INY
BNE ramtas_l2
+1 -1
View File
@@ -15,6 +15,6 @@ stop:
rts
stop_pressed:
lda #$00
sec
lda #$00
rts