Talk:INSTR

From C64-Wiki
Jump to navigationJump to search

A couple of things:

1) I cannot find INSTR in the commodore basic 4.0 reference manual. The article page here states that it was added in 3.5, but it does not appear in those manuals.

2) It appears BASIC will return "TYPE MISMATCH ERROR" if it is not supported. I'm not clear on how one can positively conclude that it is or is not supported, but this seems to be a way to do that?

3) assuming (2) is correct, INSTR does not appear to exist in any of the ROMs in the online PET emulator, which includes version 4.

I was testing this, because The BASIC Handbook lists the starting-point parameter in the first input, not the last. I was unable to test this, however, for the reasons above.

Can someone more knowledgable comment?

Maury Markowitz (talk) 16:13, 10 December 2023 (CET)


In some BASIC 4.0 versions is INSTR inside, in some not :)
But in BASIC 3.5/7.0, also in (BASIC 3.6 and) BASIC V4+ in the modern CBM-II-series
The BASIC V4 version of older PETs/CBMs are not supported INSTR! --Jodigi (talk) 16:54, 10 December 2023 (CET)