Example #1
0
void Board::move(int ipiece, int x, int y)
{
	if (x > 0) x = 1;
	if (x < 0) x = -1;
	if (y > 0) y = 1;
	if (y < 0) y = -1;

	if (canmove(ipiece, (x * pper()) + pborder(), (y*pper())+pborder())
		|| mWon)
		piece(ipiece)->mov(x,y);

}
Example #2
0
void
asm_ins_postproc(struct assembler *asmer, struct asm_ins *ins, char *buf)
{
	ins_postprocer POSTPROCER[] =
	{
		NULL, NULL, NULL, NULL,
		NULL, NULL, NULL, NULL,
		NULL,
		ins_pp_jmp,
		ins_pp_jz,
		ins_pp_jnz,
		ins_pp_ja,
		ins_pp_jb,
		NULL, NULL
	};
	ins_postprocer pper = POSTPROCER[ins->name];
	if (pper != NULL) pper(asmer, ins, buf);	
}