Update hw5 to a newer version.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
b24a264f7e
commit
9224001a22
262 changed files with 2575 additions and 1442 deletions
15
hw5/hw4programs/lfsr2.oat
Normal file
15
hw5/hw4programs/lfsr2.oat
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
global lfsr_length = 4;
|
||||
global lfsr_init_values = new bool[]{true, false, true, false};
|
||||
|
||||
void print_lfsr(bool[] lfsr_register, int len) {
|
||||
for (var i = 0; i < len; i = i + 1;) {
|
||||
var x = lfsr_register[i];
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
int program(int argc, string[] argv) {
|
||||
/* Print the initial and final bool arrays with a space separator */
|
||||
print_lfsr(lfsr_init_values, lfsr_length);
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue