~ruther/verilog-riscv-semestral-project

ref: 9f4ac4dc09c9ccb93c6b1d9726bc7543ff09de00 verilog-riscv-semestral-project/programs/add.c -rwxr-xr-x 116 bytes
9f4ac4dc — Rutherther fix: jump according to zero flag, not LSB zero!! 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
int add(int a, int b)
{
    return a + b;
}

void main()
{
    int a = 20;
    int b = 30;
    int c = add(a, b);
}
Do not follow this link