Joined
·
4 Posts
Hey everyone 
I am doing some research on the R3000A instruction set for a college project, and I thought maybe somebody could help me with a question. Hopefully, one of the psx emu author's can answer it.
In the instruction set, the ADD and SUB instructions trap on integer overflow when they are adding/subtracting rs to rt. I was wondering if anyone could give an example of how that might be implemented in a language like C(basically a function that could test if a result has an arithmetic overflow). If anyone can help me out, it would be greatly appreciated
Thanks
I am doing some research on the R3000A instruction set for a college project, and I thought maybe somebody could help me with a question. Hopefully, one of the psx emu author's can answer it.
In the instruction set, the ADD and SUB instructions trap on integer overflow when they are adding/subtracting rs to rt. I was wondering if anyone could give an example of how that might be implemented in a language like C(basically a function that could test if a result has an arithmetic overflow). If anyone can help me out, it would be greatly appreciated
Thanks