Fix: CSA was not quite right
This commit is contained in:
parent
6d439c8305
commit
2f5a5cd1d2
@ -436,6 +436,9 @@ PRIVATE index_jump(nbytes)
|
|||||||
|
|
||||||
if (t_index >= 0 && t_index <= mem_lds(cdp + nbytes + psize, nbytes)) {
|
if (t_index >= 0 && t_index <= mem_lds(cdp + nbytes + psize, nbytes)) {
|
||||||
nPC = mem_ldip(cdp + (2 * nbytes) + ((t_index + 1) * psize));
|
nPC = mem_ldip(cdp + (2 * nbytes) + ((t_index + 1) * psize));
|
||||||
|
if (nPC == 0) {
|
||||||
|
trap(ECASE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ((nPC = mem_ldip(cdp)) == 0) {
|
else if ((nPC = mem_ldip(cdp)) == 0) {
|
||||||
trap(ECASE);
|
trap(ECASE);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user