Using Commodore BASIC and ML to create a REM enhancer utility for C64, C128 and VIC20 computers

Поділитися
Вставка
  • Опубліковано 26 сер 2024

КОМЕНТАРІ • 21

  • @igork3522
    @igork3522 7 місяців тому +1

    Great video. Thank you.

  • @arthurjordison5392
    @arthurjordison5392 Рік тому +3

    Very interesting, thanks for sharing!

  • @TheUtuber999
    @TheUtuber999 11 місяців тому +1

    Thanks for the tutorial! Another way to perform the BASIC conversion would be to add the following three lines to the end of the program to be updated (assuming the highest line number is less than 1000), then type RUN 1000, then delete these three lines...
    1000 forx=2053topeek(46)*256+peek(45)-3
    1010 ifpeek(x)=143andpeek(x+1)=32andpeek(x+2)=32thenpokex+2,18
    1020 next
    It will only reverse REM statements with two spaces after the token, so there's no need to worry about inadvertently overwriting code in cases where there is only a single space after REM.

    • @retrooldguy9880
      @retrooldguy9880  11 місяців тому

      Why didn't I think of that? Such a simple solution I didn't see it. I added a few lines of code to the ML version to check for two spaces after the REM.
      iny
      lda (bptr),y
      cmp #$20
      bne next
      iny
      lda (bptr),y
      cmp #$20
      bne next

    • @TheUtuber999
      @TheUtuber999 11 місяців тому

      @@retrooldguy9880 To be fair, it's kind of a "brute force" method that doesn't take into account the possibility of three consecutive bytes that fit the pattern that you might not want to update... but I think the chances of that are probably pretty remote.
      Thanks for the updated assembly code - I inserted the eight additional lines of code you provided and it works like a charm!

  • @brucetungsten5714
    @brucetungsten5714 Рік тому +1

    Really interesting - THX!

  • @JosipRetroBits
    @JosipRetroBits Рік тому +2

    Very useful piece of code, Thank You :)

  • @HelloKittyFanMan
    @HelloKittyFanMan Рік тому

    Interesting video; thanks!

  • @HelloKittyFanMan
    @HelloKittyFanMan Рік тому +1

    Will you please do us all a favor for future videos by not letting your audio get compressed nearly as much? I can hear that overcompression "sizzle" and it drives me nuts.

  • @HelloKittyFanMan
    @HelloKittyFanMan Рік тому +1

    Elephant in the room: Before this, we might think that just setting "rvs_on" while typing the rem would work. Why doesn't it?

    • @retrooldguy9880
      @retrooldguy9880  Рік тому +1

      When you are typing in the editor, pressing CTRL-9 (in non-quote mode) will turn on RVS, but it's a cosmetic effect only, no RVS token is stored in memory, which is why you have to enter it manually (or programmatically, as I did).

    • @HelloKittyFanMan
      @HelloKittyFanMan Рік тому +1

      @@retrooldguy9880: OK, that's interesting, thanks! You know, I bet ya many kids tried that and wondered why it wouldn't work.

  • @Eightbitswide
    @Eightbitswide Рік тому

    May I ask how you captured your video from the C64? It looks great!

    • @retrooldguy9880
      @retrooldguy9880  Рік тому

      Thanks! I use an HDMI capture device called MiraBox on both a "TheC64 Maxi" and VICE (running on my laptop). I don't have a real C64 anymore, they are too high maintenance ;)

  • @HelloKittyFanMan
    @HelloKittyFanMan Рік тому

    "Strings and characters"? Strings _are_ characters (one or a group)."

  • @HelloKittyFanMan
    @HelloKittyFanMan Рік тому

    I bet the BASIC version of this took 76 seconds to run even if they _don't_ remember it.