Next Generation Emulation banner
1 - 1 of 4 Posts

4 Posts
Discussion Starter · #1 · (Edited)
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 :)
1 - 1 of 4 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.