Skip to content

Instantly share code, notes, and snippets.

@HS39
Created November 17, 2018 01:09
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/8a3aa580a4c3a84f3f2ba907a608b609 to your computer and use it in GitHub Desktop.
Save HS39/8a3aa580a4c3a84f3f2ba907a608b609 to your computer and use it in GitHub Desktop.
import asm65816
import ASMRef
define Lifeup_A_Power = 100
define Lifeup_B_Power = 300
define Lifeup_G_Power = 10000
define Lifeup_O_Power = 400
Lifeup_General: {
REP (0x31)
TAX
JSL (Mult_A_x_Rand_075_125)
TAX
LDA_a (0xA972) //Loads Current target to Accumulator
JSL (Recover_HP)
RTL
}
Lifeup_Alpha: {
REP (0x31)
LDA_i (Lifeup_A_Power) //Loads number to Accumulator
JSL (Lifeup_General)
RTL
}
Lifeup_Beta: {
REP (0x31)
LDA_i (Lifeup_B_Power) //Loads number to Accumulator
JSL (Lifeup_General)
RTL
}
Lifeup_Gamma: {
REP (0x31)
LDA_i (Lifeup_G_Power) //Loads number to Accumulator
JSL (Lifeup_General)
RTL
}
Lifeup_Omega: {
REP (0x31)
LDA_i (Lifeup_O_Power) //Loads number to Accumulator
JSL (Lifeup_General)
RTL
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment