Fixed bit in cputest: do not read uninitialized memory.
This commit is contained in:
parent
e3d8e8231f
commit
6bcbe286a6
|
@ -23,6 +23,7 @@ int main() {
|
|||
uint8_t buf[2];
|
||||
|
||||
buf[0] = 0xaa;
|
||||
buf[1] = 0x0;
|
||||
nemu_assert(getbit(buf, 0) == 0);
|
||||
nemu_assert(getbit(buf, 1) == 1);
|
||||
nemu_assert(getbit(buf, 2) == 0);
|
||||
|
|
Loading…
Reference in New Issue