mirror of
https://github.com/cc65/cc65.git
synced 2024-11-11 16:07:04 +00:00
24 lines
293 B
C
24 lines
293 B
C
|
/* OptCmp1 messed up with labels */
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
register unsigned int x = 0x200;
|
||
|
register unsigned int y = 0;
|
||
|
|
||
|
do
|
||
|
{
|
||
|
++y;
|
||
|
}
|
||
|
while (--x);
|
||
|
|
||
|
if (y != 0x200)
|
||
|
{
|
||
|
printf("0x%X\n", y);
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|