Skip to content

Instantly share code, notes, and snippets.

import asm65816
import ASMRef
define Freeze_A_Power = 180
define Freeze_B_Power = 360
define Freeze_G_Power = 540
define Freeze_O_Power = 720
define Solidification_Chance = 25
Freeze_General: {
import asm65816
import ASMRef
define Fire_A_Power = 80
define Fire_B_Power = 160
define Fire_G_Power = 240
define Fire_O_Power = 320
Fire_General: {
REP (0x31)
import asm65816
import ASMRef
ROM[0xC2311B] = JMP_l (Battle_Window)
// C4A1F2
// Text window used
// By default,
// Small window 18 (0x12)
// Medium window 15 (0x0F)
@HS39
HS39 / asm65816.ccs
Last active February 19, 2022 21:51
//
// 65816 assembly opcodes
//
// Addressing mode tags:
//
// (none) Implied or Accumulator
// _i Immediate
// _8 Immediate, 8-bit register
// _d Direct page
// _di Direct indirect
import asm65816
// Overwrites Teleport Box battle action code
// 0xC2AB71 - 0xC2AC29
define Atk_Fail_Chk = 0xC2AB71 define NPC_Check = 0xC2AB71
define Miss_Calc = 0xC2AB75
define Smash = 0xC2AB79
define Determine_Dodge = 0xC2AB7D
define Level_2_Atk = 0xC2AB81
define Heal_Strangeness = 0xC2AB85