summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-simulation/corewars/files/reroute.cw')
-rw-r--r--games-simulation/corewars/files/reroute.cw17
1 files changed, 17 insertions, 0 deletions
diff --git a/games-simulation/corewars/files/reroute.cw b/games-simulation/corewars/files/reroute.cw
new file mode 100644
index 0000000..1c15271
--- /dev/null
+++ b/games-simulation/corewars/files/reroute.cw
@@ -0,0 +1,17 @@
+# Reroute other processes to execute my code
+
+ Title "Reroute"
+ Author "Jonathan Enders <kannibalenfleisch@web.de>"
+DIA: data &DIA #DestinationIndexA for Jump-Instruction
+DIB: data &DIB #DestinationIndexB for Jump-Coordinates
+
+S: add -2038,DIA
+ add -2038,DIB #Move Jump-Instruction to more
+ move INST,[DIA] #or less random location
+ move DIS,[DIB]
+
+E: jump S #Repeat
+
+
+INST: jump [DIS] #Instruction to be copied to Destination
+DIS: data &S #Address where other processes should jump to