shithub: orca

Download patch

ref: f79e32b6040ac8febe18a65d264fa9f5f97aa813
parent: dfcae4a51589a86187a548069241a09615bdb2f6
author: cancel <cancel@cancel.fm>
date: Mon Nov 26 06:41:02 EST 2018

Cleanup

--- a/sim.c
+++ b/sim.c
@@ -125,8 +125,13 @@
 
 ORCA_DECLARE_OPERATORS(ORCA_OPERATORS)
 
-//////// Phases
+//////// Behavior
 
+OPER_DEFINE_UPPERCASE_DIRECTIONAL(North, -1, 0)
+OPER_DEFINE_UPPERCASE_DIRECTIONAL(East, 0, 1)
+OPER_DEFINE_UPPERCASE_DIRECTIONAL(South, 1, 0)
+OPER_DEFINE_UPPERCASE_DIRECTIONAL(West, 0, -1)
+
 OPER_PHASE_0(add)
 OPER_END
 OPER_PHASE_1(add)
@@ -139,11 +144,6 @@
     OPER_POKE_RELATIVE(1, 0, g);
   }
 OPER_END
-
-OPER_DEFINE_UPPERCASE_DIRECTIONAL(North, -1, 0)
-OPER_DEFINE_UPPERCASE_DIRECTIONAL(East, 0, 1)
-OPER_DEFINE_UPPERCASE_DIRECTIONAL(South, 1, 0)
-OPER_DEFINE_UPPERCASE_DIRECTIONAL(West, 0, -1)
 
 OPER_PHASE_0(modulo)
 OPER_END