You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I initialize a test with pc = SomeRoutine, I would expect it to end when the routine returns. But there are more complex cases. What about testing a routine that calls other routines, where they may return? What about if SomeRoutine pops its return address off the stack and messes with it? Or if you start with call SomeRoutine / dw SomeData, and SomeRoutine pops its "return address" to use SomeData as an argument? Or if you're testing a whole ROM (so pc isn't initialized) and there may be interrupts?
The text was updated successfully, but these errors were encountered:
At the moment, evunit pushes $FFFF to the stack before running your code, and when pc == $FFFF, the test is considered over. There’s an issue open to allow for more arbitrary end conditions.
If I initialize a test with
pc = SomeRoutine
, I would expect it to end when the routineret
urns. But there are more complex cases. What about testing a routine that calls other routines, where they mayret
urn? What about ifSomeRoutine
pops its return address off the stack and messes with it? Or if you start withcall SomeRoutine / dw SomeData
, andSomeRoutine
pops its "return address" to useSomeData
as an argument? Or if you're testing a whole ROM (sopc
isn't initialized) and there may be interrupts?The text was updated successfully, but these errors were encountered: