Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/coolgirl-multicart/coolgirl-multirom-builder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-01-05 10:08:19 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-01-05 10:31:56 +0300
commit6629bbd2125d5488ae83b6aa21c231a2a51353e2 (patch)
tree649b88208d1b5c94d2e6502d4bfeebdc8aea3f54 /banking.asm
parentedbd71ea97a50f43a4c49d69a5c034894bc84d86 (diff)
Using reserved register names, refactoring
Diffstat (limited to 'banking.asm')
-rw-r--r--banking.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/banking.asm b/banking.asm
index d2a2220..ea2d40c 100644
--- a/banking.asm
+++ b/banking.asm
@@ -62,7 +62,7 @@ sync_banks:
and #%01111100
ora <BANKS_TMP
sta <BANKS_TMP
- lda <PRG_RAM_BANK
+ lda <PRG_RAM_BANK
and #%00000011
ora <BANKS_TMP
sta $5005
@@ -81,54 +81,54 @@ enable_prg_ram:
lda <CART_CONFIG
ora #%00000001
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts
disable_prg_ram:
lda <CART_CONFIG
and #%11111110
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts
enable_chr_write:
lda <CART_CONFIG
ora #%00000010
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts
disable_chr_write:
lda <CART_CONFIG
and #%11111101
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts
enable_flash_write:
lda <CART_CONFIG
ora #%00000100
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts
disable_flash_write:
lda <CART_CONFIG
and #%11111011
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts
enable_four_screen:
lda <CART_CONFIG
ora #%00100000
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts
disable_four_screen:
lda <CART_CONFIG
and #%11011111
sta <CART_CONFIG
- sta $5007
+ sta $5007
rts