Hello, Guest the thread was called319 times and contains 2 replays

last post from MIRKOSOFT at the

Extension of BASIC & SYNTAX ERROR

  • Hi!


    I'm working on own extension of BASIC7.


    I have finished some commands, but...


    If command has no parameter everytime all is ok.
    When I add any parameter, e.g.:
    $10 (directory drive #10)
    ... code works ok, but final output after directory is ?SYNTAX ERROR.


    As I know on C64 is possible to disable output errors:
    POKE768,139 - enables
    POKE768,64 - disables...


    Also I want to ask how to include to code that RUN/STOP stops listing etc..
    On C64 it works with implementing JSR $A82C


    I'm grateful for every help.


    Miro

  • As I know on C64 is possible to disable output errors:
    POKE768,139 - enables
    POKE768,64 - disables...


    It is not a solution to disable error messages. There is a reason cause an error appears. After reading 10 next Char should be "\0" (char 0) for line end. If not, maybe you have a too less CHRGET or to many CHRGET ...



    To enable BREAK you simply can call Sys procedure or you can Call Sys proc QryBreak and abort if <Break> pressed.

  • ...but I solved problem with errors that if is my command used (I manage my own errors), I rerouted vector on $0300 to $4db7.


    If is used standard, or no my command, I reroute this vector back to default.


    So are managed errors correctly.


    What I'm searching for is routine which enables to stop ML program with key RUN/STOP.
    C64 has this routine, as I wrote...


    But also thanks - if I didn't manage own errors, solution is impossible...


    Miro