32 Artillery Game 0000 NUM 0 Standard filler, constant 0 0001 LDN 0 top: Load 0 0002 STO 30 Initialize Y (vertical) position 0003 LDN 19 Load negative range 0004 STO 31 Initialize X (horizontal) position 0005 LDN 31 loop: Get X position 0006 SUB 29 Add X velocity 0007 STO 26 recomplement 0008 LDN 26 through temp 0009 STO 31 Store updated X position 0010 LDN 30 Get Y position 0011 SUB 28 Add Y velocity 0012 STO 26 recomplement 0013 LDN 26 through temp 0014 STO 30 Store updated Y position 0015 CMP Test for negative (fell back through 0) 0016 JMP 19 Jump ahead if still going 0017 STP Stop 0018 JMP 0 Jump to top for another round 0019 NUM 8388627 Initial range and jump constant 19 0020 LDN 28 Get Y velocity 0021 STO 26 recomplement 0022 LDN 26 through temp 0023 SUB 27 Subtract gravity constant 0024 STO 28 Store updated Y velocity 0025 JMP 27 Jump back to loop 0026 NUM 0 Temporary variable 0027 NUM 4 Gravity constant and jump constant for loop 0028 NUM 4095 Y Velocity - adjust between rounds to aim 0029 NUM 4095 X Velocity - adjust between rounds to aim 0030 NUM 0 Y Position 0031 NUM 0 X Position