Created
July 29, 2021 16:25
-
-
Save charasyn/07cefcbea5827995a8b21828553095f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asm65816 | |
| import cc_asmcall | |
| command cc_disable_npcs cc_asmcall(asm_disable_npcs, RET_NONE) | |
| command cc_enable_npcs cc_asmcall(asm_enable_npcs, RET_NONE) | |
| command cc_check_npcs_disabled cc_asmcall(asm_check_npcs_disabled, RET_RESULT) | |
| asm_disable_npcs: { | |
| LDA_i(0x0001) | |
| STA_a(0x4A66) | |
| RTL | |
| } | |
| asm_enable_npcs: { | |
| LDA_i(0x0000) | |
| STA_a(0x4A66) | |
| RTL | |
| } | |
| asm_check_npcs_disabled: { | |
| LDA_a(0x4A66) | |
| RTL | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment