mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-02 19:42:59 +00:00
21 lines
266 B
C
21 lines
266 B
C
int compare(x, y)
|
|
unsigned int x;
|
|
unsigned int y;
|
|
{
|
|
if (x==y)
|
|
return 0;
|
|
else
|
|
return 1;
|
|
}
|
|
|
|
main()
|
|
{
|
|
unsigned int i, j, k, l;
|
|
i = 5; j = 2; k=0; l=2;
|
|
if (compare(5%(~(unsigned) 2), i%~j)
|
|
|| compare(0, k%~l))
|
|
abort();
|
|
else
|
|
exit(0);
|
|
}
|