OpenCores
URL https://opencores.org/ocsvn/1664/1664/trunk

Subversion Repositories 1664

[/] [1664/] [trunk/] [c/] [cpu_1664/] [cpu_1664_opera__cmp.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mrdmkg
#include "cpu_1664.h"
2
 
3
void cpu_1664_opera__cmp(struct cpu_1664 *cpu, n1 bait)
4
{
5
 cpu->opera_sicle=cpu_1664_sicle_opera_cmp;
6
 cpu_1664_sinia_t dest=cpu->sinia[bait&((1<<cpu_1664_bitio_rd)-1)];
7
 cpu_1664_sinia_t fonte=cpu->sinia[bait>>cpu_1664_bitio_rd];
8
 cpu->depende[cpu_1664_depende_z]=(dest==fonte);
9
 cpu->depende[cpu_1664_depende_c]=(dest>fonte);
10
 cpu->depende[cpu_1664_depende_o]=(dest<fonte);
11
 cpu->depende[cpu_1664_depende_n]=(dest!=fonte);
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.