Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Redcode

PietHelzel edited this page Oct 17, 2024 · 13 revisions

Important Links

Guide

Instructions

An instruction looks like the following:

MOV.AB @-2, #3

It is made up of the following parts:

  • Opcode (e.g. MOV): The instruction name.
  • Modifier (e.g. AB): Modifies the instruction by specifying which operands it works on.
  • Source field (e.g. @-2 and destination field (e.g. #3):
    • Each made up of an address mode (like @ or #) followed by a number.
    • The comma separator is necessary!

Address modes

Each instruction can have an address mode for each of its fields. The following is a list of all possible address modes:

  • $ - direct addressing

WIP

Clone this wiki locally