General Category > LisaList2
Start LisaEm from command line with diskette inserted?
(1/1)
kewatsdop:
Is there a way to start LisaEm in Mac/Linux from command line, already with a diskette image inserted?
stepleton:
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.
rayarachelian:
--- Quote from: kewatsdop 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?
--- End quote ---
--- Quote from: stepleton 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.
--- End quote ---
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: ---/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
--- End code ---
Here's the help screen:
--- Code: ---$ ./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-)
--- End code ---
kewatsdop:
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
stepleton:
Oh excellent! Thanks, Ray :)
Navigation
[0] Message Index
Go to full version