Skip to content

Instantly share code, notes, and snippets.

@HS39
Created November 17, 2018 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HS39/263ecd0086ddcde3c0f0e013e10f5af6 to your computer and use it in GitHub Desktop.
Save HS39/263ecd0086ddcde3c0f0e013e10f5af6 to your computer and use it in GitHub Desktop.
import asm65816
import ASMRef
define Starstorm_A_Power = 360
define Starstorm_O_Power = 720
Starstorm_General: {
REP (0x31)
PHD
PHA
TDC
ADC_i (0xFFF0)
TCD
PLA
TAX
STX_d (0x0E)
JSL (PSI_Shield_Nullify) //Checks for PSI Shield
CMP_i (0x0000)
BNE_a (Starstorm_Return)
LDX_d (0x0E)
TXA
JSL (Mult_A_x_Rand_075_125) //Multiplies the damage output by 75%-125%
LDX_i (0x00FF)
JSL (Damage_Reduction) //Inflicts damage
JSL (Weaken_Shield) //Deplete one shield charge
Starstorm_Return:
PLD
RTL
}
Starstorm_Alpha: {
REP (0x31)
LDA_i (Starstorm_A_Power)
JSL (Starstorm_General)
RTL
}
Starstorm_Omega: {
REP (0x31)
LDA_i (Starstorm_O_Power)
JSL (Starstorm_General)
RTL
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment