Bill Currie
6229ae8ecc
[gamecode] Add tests for unsigned comparisons
...
And fix the implementation: I had used the wrong macro.
2022-01-11 13:00:54 +09:00
Bill Currie
e7d7ec1989
[gamecode] Add tests for signed comparison ops
...
Fortunately, they all pass without issues.
2022-01-11 09:37:38 +09:00
Bill Currie
ba29be3f82
[gamecode] Rename ifnot and if to be less confusing
...
I think :) anyway, now they're ifz and ifnz, making them consistent with
the rest of the if instructions.
2022-01-10 11:27:57 +09:00
Bill Currie
d9d37fda47
[gamecode] Implement ruamoko opcode lookup
...
And get the debugger working with the new instruction set.
2022-01-06 11:47:05 +09:00
Bill Currie
0b674f5ed4
[gamecode] Clean up some opcode names
...
While working on the new opcode table, I decided a lot of the names were
not to my liking. Part of the problem was the earlier clash with the
v6p opcode names, but that has been resolved via the v6p tag.
2022-01-05 19:04:43 +09:00
Bill Currie
9d74fcc181
[gamecode] Add tests for the basic math ops
...
* / % %% + -
As a bonus, includes partial tests for a few extra operators. Several
things are broken at this stage, but uncommitted code is already
working.
2022-01-04 17:50:49 +09:00
Bill Currie
4777f44ba1
[gamecode] Rename test-math to test-vector
...
I decided to stick with the minimal tests per test program rather than
try to cram all the math operator tests into the one program.
2022-01-03 23:50:38 +09:00
Bill Currie
a6badaa05d
[gamecode] Complete the vector instruction tests
...
Finish up the float tests and add double tests.
2022-01-03 23:27:01 +09:00
Bill Currie
b8d04874c3
[gamecode] Add some math tests
...
Hit a show stopper when it came to swizzle (not implemented yet). I
guess I know what I need to do next :P.
2022-01-03 23:27:01 +09:00
Bill Currie
ffbb6122b9
[gamecode] Add tests for push and pop
2022-01-03 23:27:01 +09:00
Bill Currie
c86f1f671b
[gamecode] Add tests for load instructions
...
This needed the test struct declaration to be moved out to a head file
so it can be shared with other tests.
2022-01-03 23:27:01 +09:00
Bill Currie
bf604b99b3
[gamecode] Add automated tests for store ops
...
They even found a bug in the addressing mode functions :) (I'd forgotten
that I wanted signed offsets from the pointer and thus forgot to cast
st->b to short in order to get the sign extension)
2022-01-03 23:27:01 +09:00