Redcode

Redcode is the assembly-like language in which core warriors are programmed in Core War. In other words, its assembly language designed for computer warfare.

Redcode Instructions

Redcode instructions have three major parts (whether they are all used or not).

OpCode A B

The OpCode tells what the instruction does. A and B are numbers used by the OpCode.

Redcode OpCodes

The OpCode is the part of a Redcode instruction that determines what an instruction does and how it does it. The OpCode itself is made up of two parts : The OpCode and attached modifier. For example :

MOV.AB -1, 1

In this example, MOV is the OpCode and AB is the modifier. The OpCode determines the action to be taken, the modifier determines how to do it.

List of OpCodes

  • DAT - instant death.
  • MOV - copy something to someplace else.
  • NOP - do nothing!

Mathematical OpCodes

  • ADD - add one number to another number.
  • DIV - divide one number by another.
  • MOD - divide one number by another and return the remainder.
  • MUL - multiply a number by another.
  • SUB - subtract one number from another.

OpCode Modifiers

OpCode Modifiers dermine how the the OpCode does what it does.

List of OpCode Modifiers

  • OpCode.A
  • OpCode.B
  • OpCode.AB
  • OpCode.BA
  • OpCode.F
  • OpCode.X
  • OpCode.I

Warriors

Tutorials

  • Using CoreWin - before you can start programming your own cyberdeath Core Warriors, you need to understand how to set up a simple battle.
  • Understanding the Core - this is an introductory tutorial about understanding how Core War works.

Related Pages

This page has no parent. Please find a place for it to live.

page_revision: 1, last_edited: 1204133417|%e %b %Y, %H:%M %Z (%O ago)