BurritOS/test_programs/riscv_instructions/simple_arithmetics/unsigned_addition.c

9 lines
190 B
C
Raw Normal View History

2023-03-08 13:02:03 +01:00
#include "userlib/syscall.h"
#include "userlib/libnachos.h"
2023-02-08 16:01:41 +01:00
// EXPECTS TWO VARIABLES WITH A VALUE OF UNSIGNED 1
2023-03-01 13:56:12 +01:00
int main() {
2023-02-08 16:01:41 +01:00
unsigned int x = 0;
unsigned int y = 1;
x = x + y;
}