Redcode: Difference between revisions

Content deleted Content added
m + section header
Line 1:
'''Redcode''' is the name of the [[programming language]] used in the game '''[[Core War]]'''. It is executed by a [[virtual machine]] known as a ''Memory Array Redcode Simulator'', or ''MARS''. The design of Redcode is loosely based on actual [[CISC]] [[assembly language]]s of the early [[1980s]] era, but contains several features not usually found in actual computer systems. These include:
 
== Key Language Features ==
;No numeric instruction values: The Redcode standard leaves the underlying representation of instruction codes undefined, and provides no means for programs to directly access it. Arithmetic operations may only be done on the two address fields contained in each instruction. The only operations supported on the instruction codes themselves are copying and comparison for equality.
;No absolute addressing: All addresses are interpreted as offsets relative to the instruction containing them. Since the address space wraps around, it is in fact impossible for a Redcode program to determine its absolute address.