MEMTOP/MEMBOT optimization
This commit is contained in:
1 parent
0487488751
commit
31d181aac3
2 files changed
+6
-4
No files matched your search
+4
-3
@@ -12,13 +12,14 @@ MEMBOT:
|
|||||||
|
|
||||||
bcc membot_set
|
bcc membot_set
|
||||||
|
|
||||||
ldx MEMSTR+0
|
|
||||||
ldy MEMSTR+1
|
ldy MEMSTR+1
|
||||||
rts
|
ldx MEMSTR+0
|
||||||
|
|
||||||
|
// FALLTROUGH
|
||||||
|
|
||||||
membot_set:
|
membot_set:
|
||||||
|
|
||||||
|
sty MEMSTR+1
|
||||||
stx MEMSTR+0
|
stx MEMSTR+0
|
||||||
stx MEMSTR+1
|
|
||||||
|
|
||||||
rts
|
rts
|
||||||
+2
-1
@@ -14,7 +14,8 @@ MEMTOP:
|
|||||||
|
|
||||||
ldy MEMSIZK+1
|
ldy MEMSIZK+1
|
||||||
ldx MEMSIZK+0
|
ldx MEMSIZK+0
|
||||||
rts
|
|
||||||
|
// FALLTROUGH
|
||||||
|
|
||||||
memtop_set:
|
memtop_set:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user