AnsweredAssumed Answered

Switch statement & Table of Funciont Pointers (short)

Question asked by Sebastian Irazabal on Dec 21, 2006
Latest reply on Dec 22, 2006 by Sebastian Irazabal
I've got this code at Page 38


but I don't know why _CASE_CHECKED (the procedure used by the switch statement) is at another page (PAGE 3C) so it don't work.

The compiler transform the switch into some assembly code with a JSR to _CASE_CHECKED, but since _CASE_CHECKED is in different page, that jump is wrong. It should be a CALL, but it's a JSR..... how can i fix that?

Thanks in advance....

For more info check the longer version: