diff --git a/compiler/res/prog8lib/prog8_lib.asm b/compiler/res/prog8lib/prog8_lib.asm index 579e1080b..61bc6d23f 100644 --- a/compiler/res/prog8lib/prog8_lib.asm +++ b/compiler/res/prog8lib/prog8_lib.asm @@ -1082,6 +1082,7 @@ containment_wordarray .proc iny cmp (P8ZP_SCRATCH_W2),y beq _found + dey + dey dey cpy #254 diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 8668342a1..b7e24ddf4 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -3,14 +3,6 @@ TODO For next release ^^^^^^^^^^^^^^^^ -- fix compiler error about containment - if xx[idx]==0 or xx[idx]==319 { - ; nothing here, if a call is here the error doesn't trigger !?? - ; gfx2.plot(xx[idx], yy[idx], PILED_SNOW_COLOR) - } else { - ... - } - - 6502 codegen: make it possible to use cpu opcodes such as 'nop' as variable names by prefixing all asm vars with something such as ``p8v_``? Or not worth it (most 3 letter opcodes as variables are nonsensical anyway) then we can get rid of the instruction lists in the machinedefinitions as well. This is already no problem at all in the IR codegen. - create BSS section in output program and put StStaticVariables in there with bss=true. Don't forget to add init code to zero out everything that was put in bss. If array in bss->only zero ONCE! So requires self-modifying code