• Re: list running prog c64 basic v2

    From Grant Weasner@usenet@vk3heg.net to comp.sys.cbm on Mon Mar 9 18:00:01 2026
    From Newsgroup: comp.sys.cbm

    Re: Re: list running prog c64 basic v2
    By: Tilmann Hentze to All on Tue Feb 10 2026 21:00:02

    This works silmilarily as your program for me: The programm lists itself and
    then stops. I wonder why.
    I tested this with vice and yapesdl.

    I didn't put a goto on the version I uploaded but if I had the goto in the correct spot, it would continously list loaded program if ran.

    in the original:
    30 if nx=0 then end

    was replaced with:
    30 if nx=0 then goto 10

    It would list over and over again. Well if it did't crash a few times. :|


    The use of this is just for fun, or whatever. But if you've ever tried something like.

    10 print "hi"
    20 list
    30 goto 10

    You will notice "20 list" will cause your program to "break/runstop", instead of listing the program itself over and over.

    That is why I wrote the code to list out the program loaded in memory and the demo of it was listing itself.

    I should have added in the goto after it finished listing the code to help illustrate it.
    --- Synchronet 3.21d-Linux NewsLink 1.2