;Some simple ASM for doors. Last 4 digits ($8F####) ;of the free space will be your door scroll pointer. ;For example, this writes to free space at $8FEB50. ;So, your door's "scroll pointer" in the door editor = EB50 ;Uses 7-31 bytes (7EB50~7EB6E), depending on what the door refills ;This only replinishes all of Samus' energy, ;but you can make it refill other things by un-commenting ;the additional LDA/STA pairs. Do this by removing the ; in front lorom org $8FEB50 ;free space in bank $8F LDA $09C4 ;Max health STA $09C2 ;Current health ;LDA $09D4 ;Max reserve tanks ;STA #09D6 ;Current reserve tanks ;LDA $09C8 ;Max missiles ;STA $09C6 ;Current missiles ;LDA $09CC ;Max super missiles ;STA $09CA ;Current super missiles ;LDA $09D0 ;Max power bombs ;STA $09CE ;Current power bombs RTS