LisaList2

Advanced search  

News:

2022.06.03 added links to LisaList1 and LisaFAQ to the General Category

Pages: [1]   Go Down

Author Topic: Start LisaEm from command line with diskette inserted?  (Read 10849 times)

kewatsdop

  • Full Member
  • ***
  • Karma: +8/-0
  • Offline Offline
  • Posts: 28
Start LisaEm from command line with diskette inserted?
« on: January 30, 2022, 07:03:40 am »

Is there a way to start LisaEm in Mac/Linux from command line, already with a diskette image inserted?
Logged

stepleton

  • Sr. Member
  • ****
  • Karma: +127/-0
  • Offline Offline
  • Posts: 425
Re: Start LisaEm from command line with diskette inserted?
« Reply #1 on: January 30, 2022, 07:31:29 am »

I don't think so, but I would LOVE this feature. While developing various bare-metal Lisa programs, I got pretty good at a robotic flow of using the menus and windows to boot from a DC42 file, but it would have been so nice to be able to up-arrow in the terminal to a "launch this disk image" command after each make.
Logged

rayarachelian

  • Administrator
  • Hero Member
  • *****
  • Karma: +105/-0
  • Offline Offline
  • Posts: 772
  • writing the code,writing the code,writing the code
    • LisaEm
Re: Start LisaEm from command line with diskette inserted?
« Reply #2 on: January 30, 2022, 12:49:33 pm »

Is there a way to start LisaEm in Mac/Linux from command line, already with a diskette image inserted?
I don't think so, but I would LOVE this feature. While developing various bare-metal Lisa programs, I got pretty good at a robotic flow of using the menus and windows to boot from a DC42 file, but it would have been so nice to be able to up-arrow in the terminal to a "launch this disk image" command after each make.

Yes, there is if you use the latest release. You might need to compile it yourself from the unstable branch in github, but I off the top of my head, even RC3a has it:
Code: [Select]
/usr/local/bin/lisaem -p -f $HOME/somewhere/filename.dc42
or something like:
/Applications/LisaEm v1.2.7-RC3a or whatever.app/Contents/MacOS/LisaEm -p -f $HOME/somewhere/filename.dc42


Here's the help screen:

Code: [Select]
$ ./lisaem --help
-----------------------------------------------------------------------
  The Lisa II Emulator 1.2.7-Pre-RC4_2022.01.22 http://lisaem.sunder.net
  ------------------------------------------------------------------- 
  Copyright  (C) 2021  by Ray A. Arachelian,   All Rights Reserved     
  Released  under  the terms of  the  GNU Public License  Version 2.0 
  ------------------------------------------------------------------- 
  For historical/archival/educational use only - no warranty provied. 
  ------------------------------------------------------------------- 
  Portions of this software contain bits of code from the following:   
  generator - www.squish.net/generator  wxWidgets.org  - www.ijg.org   
  LZ4 Library Copyright (c) 2011-2016, Yann Collet All rights reserved.
   Many thanks to David T. Craig for the tons of Lisa documentation   
     Many thanks to James McPhail for Lisa and 68000 hardware help     
      Many thanks to Brain Folley for the initial OS X UI help         
-----------------------------------------------------------------------

DEBUG is compiled in.
DEBUGMEMCALLS is enabled.

Usage: lisaem [-h] [-p] [-q] [-f <str>] [-d] [-F[-]] [-z <double>] [-s[-]] [-c <str>] [-k] [-o[-]]
  -h, --help            show this help message
  -p, --power           power on as soon as LisaEm is launched
  -q, --quit            quit after Lisa shuts down
  -f, --floppy=<str>    boot from which floppy image ROMless only
  -d, --drive           boot from motherboard ProFile/Widget ROMless only
  -F, --fullscreen      fullscreen mode (-F- to turn off)
  -z, --zoom=<double>   set zoom level (0.50, 0.75, 1.0, 1.25,... 3.0)
  -s, --skin            turn on skin
  -c, --config=<str>    Open which lisaem config file
  -k, --kiosk           kiosk mode (suitable for RPi Lisa case)
  -o, --originctr       skinless mode: center video(-o) vs topleft(-o-)
« Last Edit: January 30, 2022, 01:03:58 pm by rayarachelian »
Logged
You don't know what it's like, you don't have a clue, if you did you'd find yourselves doing the same thing, too, Writing the code, Writing the code

kewatsdop

  • Full Member
  • ***
  • Karma: +8/-0
  • Offline Offline
  • Posts: 28
Re: Start LisaEm from command line with diskette inserted?
« Reply #3 on: January 30, 2022, 03:44:49 pm »

It's working. I love it!!!

Ok, now my pipeline from source assembly file to boot is complete. This will make things convenient:

filename=$1
filename="${filename%.*}"

echo "Filename without extension is ${filename}"

echo -n "Compiling $1 with vasm... " &&\
vasmm68k_mot -Faout $1 &&\
echo "done." &&\
echo "Creating bootable floppy... " &&\
python ../bootloader-master/dc42_build_bootable_disk.py a.out -f sony_800k -o ${filename}.dc42 &&\
echo "done."
echo "Starting LisaEm... " &&\
/Applications/LisaEm.app/Contents/MacOS/lisaem-x86_64-10.08-wx3.0.5 -f ${filename}.dc42 -p
Logged

stepleton

  • Sr. Member
  • ****
  • Karma: +127/-0
  • Offline Offline
  • Posts: 425
Re: Start LisaEm from command line with diskette inserted?
« Reply #4 on: January 30, 2022, 04:57:24 pm »

Oh excellent! Thanks, Ray :)
Logged
Pages: [1]   Go Up