Compukit UK101 core

danielb
Core Developer
Posts: 227
Joined: Thu Jun 04, 2020 1:43 pm
Has thanked: 41 times
Been thanked: 64 times

Re: Compukit UK101 core

Unread post by danielb »

    Hi,

    What resolution is your MiSTer reporting on the HDMI monitor? That is exactly what mine looks like with the scandoubler fx switched on, which is why I removed it from the menu.
    I don't really have any way to test anything other than HDMI, so thanks for letting me know about the component video.
    As for the ROM message..... :o


    Rgds, D.
    User avatar
    NML32
    Posts: 288
    Joined: Sun May 24, 2020 6:57 pm
    Has thanked: 272 times
    Been thanked: 43 times

    Re: Compukit UK101 core

    Unread post by NML32 »

    danielb wrote: Mon Sep 06, 2021 8:59 pm
      Hi,

      What resolution is your MiSTer reporting on the HDMI monitor? That is exactly what mine looks like with the scandoubler fx switched on, which is why I removed it from the menu.
      I don't really have any way to test anything other than HDMI, so thanks for letting me know about the composite video.
      As for the ROM message..... :o


      Rgds, D.
      The MiSTer connected to my TV is reporting (Bad Text)
      494x512 31.16KHz 49.6Hz
      1920x1080 148.50MHz 60.0Hz

      My AOC HDMI monitor is reporting (Bad Text)
      494x512 31.16KHz 49.6Hz
      1920x1440 185.20MHz 60.0Hz

      My PVM monitor is reporting (Good looking Text)
      494x256 15.58KHz 49.6Hz
      1920x1440 153.12MHz 49.6Hz
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      That is double resolution. HDMI on my monitor is 494x256 at 15.58 khz. Could it be a setting in your ini file? I have yet to find out why double resolution is not working right. I was wondering whether it might be because it has rectangular pixels which take up two scanlines.

      D.
      User avatar
      NML32
      Posts: 288
      Joined: Sun May 24, 2020 6:57 pm
      Has thanked: 272 times
      Been thanked: 43 times

      Re: Compukit UK101 core

      Unread post by NML32 »

      I changed forced_scandoubler=1 to forced_scandoubler=0 now the text looks normal.
      ; set to 1 to run scandoubler on VGA output always (depends on core).

      494x256 15.58KHz 49.6Hz
      1920x1080 148.50MHz 60Hz
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Excellent :D

      D.
      User avatar
      pgimeno
      Top Contributor
      Posts: 669
      Joined: Thu Jun 11, 2020 9:44 am
      Has thanked: 246 times
      Been thanked: 208 times

      Re: Compukit UK101 core

      Unread post by pgimeno »

      Looks like the initial "Th" is overwritten by spaces, not sure why. If you enter "A" repeatedly, they sometimes flash for a frame or so.
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Hi all,

      This is an update to show off a feature which will be appearing in the next release of the core:

      https://youtu.be/95Rqv8kpQuw

      The video is a short demo of loading a program from a text file, which I have now managed to get working. As of now, it is incomplete and untested, the code is a mess, and I obliterated the original UART capabilities. You may notice that the initial "1" of the first line is missing. All of this will need to be fixed before the release.

      Getting it to work was excruciating, frustrating and very time-consuming, but interesting. I got very intimate with SignalTap. The code is basically a hybrid of the similar code for the Apple 1 (thanks Alanswx) and Grant Searle's original UART code.

      Enjoy the video :)

      D.
      User avatar
      NML32
      Posts: 288
      Joined: Sun May 24, 2020 6:57 pm
      Has thanked: 272 times
      Been thanked: 43 times

      Re: Compukit UK101 core

      Unread post by NML32 »

      Nice progress. :)
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      Nice! :-)
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Hi all,

      I fixed some bugs and loading games now works, more or less, from the text files. Asteroids and the Invaders game appear to work. These are the most complex games I have, apart from SuperInvaders.

      SuperInvaders loads, but does not run properly. The reason for this is probably that it can no longer detect a baud rate from the UART. Hopefully this will be fixed when I resurrect the original UART code to allow the user to switch between UART and loading from file.

      I was lucky to find a comparatively simple core to work on. A more sophisticated one would have been totally out of my league :shock:

      D.
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      danielb wrote: Thu Sep 16, 2021 5:48 pm
      I was lucky to find a comparatively simple core to work on. A more sophisticated one would have been totally out of my league :shock:

      D.
      Good work!
      You'll be moving on to something a little more sophisticated I'm hoping :-)
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      EeDee wrote: Thu Sep 16, 2021 8:11 pm
      danielb wrote: Thu Sep 16, 2021 5:48 pm
      I was lucky to find a comparatively simple core to work on. A more sophisticated one would have been totally out of my league :shock:

      D.
      Good work!
      You'll be moving on to something a little more sophisticated I'm hoping :-)
      Let's get this one out of the way first :D
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Hi again,

      Here's another video, showing the current state of development. Super Invaders loads and runs after selecting UART mode. You can change its speed by changing the baud rate, and make it stop by choosing file mode.

      Fun stuff... :lol:

      https://www.youtube.com/watch?v=pg40ekV ... oadUser100

      It will still be a few days till I release this, as there's still plenty to do and I won't have much time to work on it in the near future.

      D.
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      Thanks for all the effort you're putting into this. Looking forward to trying it :-)
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      EeDee wrote: Sat Sep 18, 2021 6:15 pm Thanks for all the effort you're putting into this. Looking forward to trying it :-)
      It keeps me off the streets...

      D.
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Hi all,

      Attached is another pre-release version.

      Load games from text files.
      Limitations: 1) There is at present a size limit of approx. 20K for the text files. All of the games that I know of are smaller than this. 2) Text file extension must be .txt, so rename files if you want them to be recognized.

      Known Bugs: Reset sometimes fails to properly initialise everything, leading to failed loads from file. If this happens, reload the core. When this is fixed, I will release the core to the main repository.

      Easter egg: Try "POKE 54272,1"

      UART loading works too. This is barely tested.
      To run Super Invaders, load it up and then change the "load from:" option to UART, so that the game can detect the baud rate. This is demonstrated in the previously linked YouTube video.

      D.
      Attachments
      UK101_20210927.zip
      (820.12 KiB) Downloaded 126 times
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      I'll give it a try.
      Thanks
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      I've followed your video and have tried a few different text files but the result is the same:
      Screenshot_20210929-001047.png
      Screenshot_20210929-001047.png (884.36 KiB) Viewed 3908 times
      What have I missed?
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Hi,

      Could you send me some examples of files that didn't work for you?

      D.
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      danielb wrote: Wed Sep 29, 2021 6:17 am Hi,

      Could you send me some examples of files that didn't work for you?

      D.
      examples.zip
      (5.27 KiB) Downloaded 129 times
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Hi, the files have Unix-style "LF" line endings. They need to be changed to Windows-style CR/LF.
      Also, the files have "OK" with no line number on the last line. This creates a syntax error while loading.

      Thanks for testing the core.

      D.
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      Ah I See! Need to check for carefully next time.
      Thanks for that and for the work you've done
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      I think the "OK" at the end means that the files were saved via the UART, right?
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      Galactic Hitchhiker

      This game is, according to this site: https://intfiction.org/t/early-british- ... ures/46425 possibly the earliest surviving British text adventure game. More details can be found here: http://8bitag.com/info/galactic.html and here: https://stardot.org.uk/forums/viewtopic ... 073#p61073.

      I downloaded the file from the stardot forum, and altered it very slightly (added padding at the end, the code is identical).

      The game seems to work well on the core. To run it, select the MonUK02 monitor, and set the terminal width to 46 characters. Then reset and select "Monitor" then press L and load the file. There is a walkthrough here: https://www.youtube.com/watch?v=oA36YiR ... l=benkid77 of it being played on an emulator.

      I am attaching both the game itself, and also a new pre-release version of the core. The only difference between this version and the previous one, is that I have increased the maximum text file size to well beyond the size of this file.

      The original name of the file, BTW, was ghpart1. I have no idea if there was a part2...

      D.
      Attachments
      galactichitchhiker.zip
      (5.82 KiB) Downloaded 130 times
      UK101_20210929.zip
      (859.03 KiB) Downloaded 147 times
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      danielb wrote: Wed Sep 29, 2021 10:48 am I think the "OK" at the end means that the files were saved via the UART, right?
      To be honest I don't know
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      danielb wrote: Wed Sep 29, 2021 2:30 pm Galactic Hitchhiker

      This game is, according to this site: https://intfiction.org/t/early-british- ... ures/46425 possibly the earliest surviving British text adventure game. More details can be found here: http://8bitag.com/info/galactic.html and here: https://stardot.org.uk/forums/viewtopic ... 073#p61073.

      I downloaded the file from the stardot forum, and altered it very slightly (added padding at the end, the code is identical).

      The game seems to work well on the core. To run it, select the MonUK02 monitor, and set the terminal width to 46 characters. Then reset and select "Monitor" then press L and load the file. There is a walkthrough here: https://www.youtube.com/watch?v=oA36YiR ... l=benkid77 of it being played on an emulator.

      I am attaching both the game itself, and also a new pre-release version of the core. The only difference between this version and the previous one, is that I have increased the maximum text file size to well beyond the size of this file.

      The original name of the file, BTW, was ghpart1. I have no idea if there was a part2...

      D.
      I've come across this I think but not tried it.
      Thanks
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      EeDee wrote: Wed Sep 29, 2021 3:11 pm
      danielb wrote: Wed Sep 29, 2021 2:30 pm Galactic Hitchhiker

      This game is, according to this site: https://intfiction.org/t/early-british- ... ures/46425 possibly the earliest surviving British text adventure game. More details can be found here: http://8bitag.com/info/galactic.html and here: https://stardot.org.uk/forums/viewtopic ... 073#p61073.

      I downloaded the file from the stardot forum, and altered it very slightly (added padding at the end, the code is identical).

      The game seems to work well on the core. To run it, select the MonUK02 monitor, and set the terminal width to 46 characters. Then reset and select "Monitor" then press L and load the file. There is a walkthrough here: https://www.youtube.com/watch?v=oA36YiR ... l=benkid77 of it being played on an emulator.

      I am attaching both the game itself, and also a new pre-release version of the core. The only difference between this version and the previous one, is that I have increased the maximum text file size to well beyond the size of this file.

      The original name of the file, BTW, was ghpart1. I have no idea if there was a part2...

      D.
      I've come across this I think but not tried it.
      Thanks
      I'd never heard of it before I stumbled upon that YouTube video, but I couldn't resist getting it working on the core :)

      D.
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      Think I read somewhere that a part2 hasn't surfaced
      Tried your adapted part1 and all is working. I've not yet tried anything else but will do very soon
      danielb
      Core Developer
      Posts: 227
      Joined: Thu Jun 04, 2020 1:43 pm
      Has thanked: 41 times
      Been thanked: 64 times

      Re: Compukit UK101 core

      Unread post by danielb »

      I played it right through, following the walkthrough. Some of it is quite funny, but I imagine it would be pretty tedious without the walkthrough :shock:

      D.
      Attachments
      galactic hitchhiker end.jpg
      galactic hitchhiker end.jpg (61.19 KiB) Viewed 4628 times
      EeDee
      Posts: 238
      Joined: Thu Dec 24, 2020 12:33 pm
      Has thanked: 7 times
      Been thanked: 47 times

      Re: Compukit UK101 core

      Unread post by EeDee »

      danielb wrote: Wed Sep 29, 2021 5:25 pm I played it right through, following the walkthrough. Some of it is quite funny, but I imagine it would be pretty tedious without the walkthrough :shock:

      D.
      Yes :-)
      Post Reply