LisaList2

Advanced search  

News:

Want an XLerator? Please participate in the market research thread: https://lisalist2.com/index.php/topic,594.msg4180.html

Pages: [1]   Go Down

Author Topic: Utility for adding files to Lisa disk images  (Read 3224 times)

fri0701

  • Sr. Member
  • ****
  • Karma: +62/-0
  • Offline Offline
  • Posts: 84
Utility for adding files to Lisa disk images
« on: May 13, 2025, 10:18:31 pm »

Hi everyone,
I wanted to share some code from a project I've been working on recently.

Now that we have the actual Lisa source code to reference, I thought it would be a worthy challenge to try and write a utility program to programmatically add files onto a Lisa disk image. It took about a month of fiddling with code and combing through the Lisa source for me to understand all the moving parts, but I finally have a version that (mostly) works! (I also wrote the corresponding read code, which will extract all files from a given disk).

Code is here, under "srcBuilder". The README will explain more about how to set things up: https://github.com/tfrikker/lisa_utils

(Right now I only support 5MB images in B-tree FS format, but perhaps more will come later. I also still have a significant bug that shows up sometimes when writing the catalog entries; sometimes adding files makes others disappear)

I wrote this in the hopes that I could compile at least *something* from the Lisa source release in Lisa Pascal Workshop (and, spoiler alert, I was - the "STUNTS" hardware demo. See attached image). After fixing some of the above issues, it'd be really great to ingest many more files and see if we can get a full app built.

I hope someone here finds this useful (or at least technically interesting!). I learned a lot from this project, and I hope to contribute some code to lisafshtool soon as well.

Questions, comments, or PRs would be much appreciated  :)
« Last Edit: May 13, 2025, 10:44:09 pm by fri0701 »
Logged

bmwcyclist

  • Sr. Member
  • ****
  • Karma: +15/-0
  • Offline Offline
  • Posts: 119
Re: Utility for adding files to Lisa disk images
« Reply #1 on: May 14, 2025, 10:53:20 am »

Thanks for your hard work!

Logged
Using my LISA for writing blogs and other work projects and fun and games at home. LISA 2/10, AST RAM board, ESProfile, FloppyEMU, Mac2LISA Mac extended keyboard, reproduction LISA 1 mouse.

AlexTheCat123

  • Sr. Member
  • ****
  • Karma: +82/-1
  • Offline Offline
  • Posts: 302
Re: Utility for adding files to Lisa disk images
« Reply #2 on: May 15, 2025, 09:44:41 am »

Thanks, this is awesome! I wish I had something like this when I started compiling all the source code a couple months ago. I decided that it would be quicker to transfer the files to the Lisa via serial instead of taking the time to write a filesystem tool (not sure if I was right about that or not), but the serial transfers obviously ended up being really painful for the full 20-something MB of code.
Logged

TorZidan

  • Full Member
  • ***
  • Karma: +9/-0
  • Offline Offline
  • Posts: 29
Re: Utility for adding files to Lisa disk images
« Reply #3 on: May 16, 2025, 12:34:12 am »

... and I hope to contribute some code to lisafshtool soon as well.

Nice! Yes, ideally, this should be merged into lisafsh-tool at  https://github.com/arcanebyte/lisaem/blob/master/src/tools/src/lisafsh-tool.c .
I had a similar idea and studied the lisafsh-tool code, and I realized that the code needs a complete rewrite and documenting before it can be enhanced.
So I rewrote it, but did not have a chance to submit it through a pull request . Perhaps I should do that...
Logged
Pages: [1]   Go Up