Skip to content

Commit

Permalink
Added references to execution from opcodes which terminate processes
Browse files Browse the repository at this point in the history
  • Loading branch information
gareththegeek committed Jul 2, 2018
1 parent a958a9b commit 458dd1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/redcode/opcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The following `opcodes` can be used in Corewar

If one of a warrior's [processes](warriors#processes) executes a `dat` instruction it is removed from the process queue i.e. terminated. This is the main way that [warriors](warriors) are killed within the game of Corewar.

Note that termination of the warrior's process happens after the [operand](operands) [addressing modes](addressing_modes) are evaluated.
Note that termination of the warrior's process happens after the [operand](operands) [addressing modes](addressing_modes) are evaluated. See [execution](execution) for details.

For example if a warrior were to execute the first instruction of the following code block

Expand Down Expand Up @@ -106,7 +106,7 @@ The default modifier for the `div` opcode is [.ab](modifiers#ab).

Dividing by zero is considered an illegal instruction in Corewar. The executing warrior's [process](warriors#processes) is removed from the process queue (terminated).

Note that termination of the warrior's process happens after the [operand](operands) [addressing modes](addressing_modes) are evaluated.
Note that termination of the warrior's process happens after the [operand](operands) [addressing modes](addressing_modes) are evaluated. See [execution](execution) for details.

##Mod - Modulo

Expand All @@ -122,7 +122,7 @@ The default modifier for the `mod` opcode is [.ab](modifiers#ab).

Dividing by zero is considered an illegal instruction in Corewar. The executing warrior's [process](warriors#processes) is removed from the process queue (terminated).

Note that termination of the warrior's process happens after the [operand](operands) [addressing modes](addressing_modes) are evaluated.
Note that termination of the warrior's process happens after the [operand](operands) [addressing modes](addressing_modes) are evaluated. See [execution](execution) for details.

##Jmp - Jump

Expand Down

0 comments on commit 458dd1d

Please sign in to comment.