예제 #1
0
void loop::func()
{
	reg.save("cx", reg.load("cx") - 1);
	if (reg.load("cx") > 0)
	{
        cmd_buffer* p;
		p = label_buf;
		while (p != NULL)
		{
			if (operand_1 == p->label_name)
			{
                ptr->convert(p->label_site);
                return;
			}
			p = p->next_label;
		}
	}
	else
	{
        ptr->convert(NULL);
	}
}
예제 #2
0
void jmp::jump(string site)
{
    cmd_buffer* p;
	p = label_buf;
	while (p != NULL)
	{
		if (site == p->label_name)
		{
    	    ptr->convert(p->label_site);
    	    return;
		}
		p = p->next_label;
	}
}