unknownbrackets / ps2autotests

A set of test programs run on a PS2, with accompanying results.
ISC License
25 stars 7 forks source link

IOP CancelWakeupThread test #45

Closed jpd002 closed 7 years ago

jpd002 commented 7 years ago

Simple IOP CancelWakeupThread test.

Requires this commit to work: https://github.com/ps2dev/ps2sdk/commit/7b39084f5faf6013d7676fcf5b718c3459aa9c52.

unknownbrackets commented 7 years ago

Interesting, so to zero it out you need to call it twice.

-[Unknown]

jpd002 commented 7 years ago

The function returns the value of wakeupCount before being reset to 0. I'm calling it twice to make sure wakeupCount was really set to 0 the first time.

Thanks for merging!

unknownbrackets commented 7 years ago

Ah, okay. Maybe a test that incremented it again (to get a 1) after might've made that clearer, but what you describe makes much more sense anyway.

-[Unknown]