Function Main
Declare Integer Array A[2*2], B[2*2], C[2*2]
Assign A[2*2] = {{0.866, -0.500}, {0.500, 0.866}}
Assign B[2*2] = {{0.500, -0.866}, {0.866, 0.500}}
Declare Integer i, j, k
For i = 0 to 2-1
For j = 0 to 2-1
Assign C [i*j] = 0
For k = 0 to 2-1
Assign C[i*j] = C[i*j] + A[i*k] * B [k*j]
End
End
End
For i = 0 to 2-1
For j = 0 to 2-1
Output " " &C[i*j]
End
Output "Newline"
End
End
struct serial_s
int (*available)(void);
int Serial_available(void)
return 42
Function Main
struct serial_s Serial;
Serial.available = Serial_available;
Serial.available()