blob: 153246cba2b088e50047f97ad67aa3ce266df68b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "program.h"
#include "value.h"
register_address
program::add_immediate(float value)
{
m_immediate_regs.push_back(new float_value(value));
return register_address(REGISTER_TYPE_IMMEDIATE, m_immediate_regs.size() - 1);
}
void
program::add_instruction(instruction * inst)
{
m_instructions.push_back(inst);
}
|