Great, thanks! Your comments are really helping with the process of translating to a full assembly file, especially for finding logical names for ‘intra routine’ labels. I see that in this version you’ve also documented the ’split-instruction’ trick that is used in for example Plot/Unplot to save 1 extra byte in the rom. These are the little nuggets (also the incr/decr trick to find zero more efficiently) that make exploring these old super resource constraint systems fun and educational.
> On 21 Jun 2020, at 20:53, Ken Pettit <petti...@gmail.com> wrote: > > Hi Erik > > This is nice work. Back in earlier years, I was hoping to get the M100 ROM > to a state where it could be re-assembled, but that turned out to be a bit > ambitous for me given young kids. I hear ya. I’ve got two sons myself (12 and 14 years old) and I sure wouldn’t have thought of picking up a project like this when they were younger. These days we’re happy to see them a few times a day (always outside, at friends or in their bedrooms). These days I’ve got to mostly find scraps of time outside work, the Gym (well… some weights at home currently), spending weekends with the wife and kids, etc. so still pretty constrained… Luckily I don’t watch any TV nor do I sleep long so I’ve got some time left to play around… That said, this project will take plenty of time to finish. I’m willing to go pretty fast and allow for some room for error as I can always assemble parts of the code and just do a diff with the original segment of rom to know the translation is pure. Going through in a few passes also helps.. I just introduce labels first like L<address>: and then replace these with more logical names later. So in time the code will look more and more like it was created from scratch instead of after the fact I hope. I’m not in a whole lot of hurry either, its kind of nice to be able to work on some things without customer/investor expectations ;) Erik > > I have attached a zip file with a more recent M100 ROM disassembly. I > realized I had't uploaded the latest to Club100. The latested one on Club100 > Personal libraries is only 761046 bytes, but the most recent one in the zip > file is 844833 bytes, so it has quite a few more comments which you don't > currently have. > > Ken > > On 6/21/20 10:34 AM, Erik van der Tier wrote: >> Hi All, >> >> Works progressing nicely on this Rom source code project. I’ve added a >> README.md to the repository, which I hopes does justice to all the work that >> has been done before to create my starting point. >> >> I’ve also now started working on the new OS Rom source file, which I hope to >> get to the point where you can assemble it to a fully identical OS ROM to >> the original. >> The following link shows what the result will look like (based on one of the >> first routines that I’ve processed to some detail. My goal is that the >> source will not contain any ‘raw’ addresses, so I’m replacing these with >> labels, following existing ‘official’ naming where I can find it. >> >> https://github.com/eriktier/RomT102Disassembly/blob/master/OSRROMT102.asm85#L2947 >> >> <https://github.com/eriktier/RomT102Disassembly/blob/master/OSRROMT102.asm85#L2947> >> >> Cheers, >> Erik >> >>> >> > > <m100_dis_merged.zip>