Files
Anghelo Carvajal bf661e7b07 Rework tests a little bit (#318)
* yeet clean.sh and move downloading kmc to makefile

* yeet build.sh

* deps

* more deps

* woops

* a

* remove docker from the sh

* arrg

* e

* i

* wget

* maybe?

* idk what im doing

* xzcv

* yeet docker because I couldn't make it work

* i'm a dumb dumb

* fix yaml

* Fix test_gen_expected.sh

* fixes

* Add instructions to run the tests
2023-12-25 02:22:11 +09:00

46 lines
610 B
C

// .data
volatile int test = 1;
// bin (.rodata)
const char bin_data[] = {0,1,2,3,4,5,6,7};
// .bss
unsigned long long bss_data[0x10];
// .data
volatile int switch_arg = 0;
int do_switch(void)
{
switch(switch_arg)
{
case 0:
return 7;
case 1:
return 6;
case 2:
return 5;
case 3:
return 4;
case 4:
return 3;
case 5:
return 2;
case 6:
return 1;
case 7:
return 0;
}
return 0;
}
// c
void bootproc(void)
{
do_switch();
for (;;)
{
test++;
}
}