Keywords: pcode

Next: 5 Opcodes Up: HAFTA Overlord P-Code Definition Previous: 3 P-Code File Format Contents
Subsections

- 4.1 olc_ver
- 4.2 proto
- 4.3 stack

# 4 Header Codes

Header codes are used to declare out of band data in the pcode ASCII format. They can appear anywhere in the pcode, though it is recommended, for clarity's sake, to put them at the start.

Header codes appear as :type: data : in the pcode.

Currently there are 3 header codes defined.

## 4.1 olc_ver

:olc_ver: version :

The olc_ver header code indicates the version of the overlord compiler used to generate the pcode.

## 4.2 proto

:proto: module , ``static args'' , ``dynamic args'' :

The proto header code indicates the static and dynamic arguments of a module. It is not currently required.

The args are represented with an s for a string arg, and an n for a numeric arg.

## 4.3 stack

:stack: size , policy :

The stack header directive indicates the size of the initial stack, and the policy if that size is exceeded.

The policy can either be die or grow.

Next: 5 Opcodes Up: HAFTA Overlord P-Code Definition Previous: 3 P-Code File Format Contents