aRe: SWITCH question
- Posted by irv Jan 07, 2018
- 2023 views
Ekhnat0n said...
The reason is that both routines use different methods for it, and they start being UNEQUAL in the truncated part.
To clarify:
The switch statements which fail do not fail because they can't match the value, they fail because they crash.
Each test has an else... clause where any unequal value would land. It never gets that far.
The crash happens when thread() is called by the function do_exec(). thread() is defined as:
#define thread() goto *((void *)*pc)
See post 55.