Use cc65 just like for NES https://gist.github.com/lucasw/53ece8eed3b99beb6215b42cc686d1a7
vice emulator- not in ubuntu repo, need to build from source- on sourceforge:
Need some old autoconf tools (and xa65 cross assembler) to build it:
sudo apt-get install autoconf byacc flex libreadline-dev libxaw7-dev texinfo xa65
(If no libreadline-dev will get configure: error: The Xaw port needs Readline
error out of configure.
svn checkout https://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
cd vice-emu-code/vice
./autogen.sh # can only run in-source
./configure --prefix=$HOME/other/install
make
make install
This reports no usb joystick support:
INPUT
-----
Joystick support : yes
Mouse support : yes
Lightpen support : yes
Linux style joystick support: yes
BSD style joystick support : no
Digital joystick support : no
USB joystick support : no
In configure.ac
I see
AC_CHECK_HEADER(libusb.h,
[AC_DEFINE(HAVE_LIBUSB_H,1,
[Define to 1 if you have the <libusb.h> header file.])
usb_header=yes])
if test x"$usb_header" = "xyes" ; then
AC_DEFINE(HAS_USB_JOYSTICK,,[Enable emulation for USB joysticks.])
JOY_LIBS="-lusb"
HAS_USB_JOYSTICK_SUPPORT="yes"
But it isn't getting triggered.
I do have libusb.h in /usr/include/libusb-1.0/libusb.h
, libusbhid.h or usbhid.h aren't available.
Ignoring that for now and continuing on:
make
...
/bin/bash: xa: command not found
Makefile:1268: recipe for target 'psiddrv.h' failed
make[3]: *** [psiddrv.h] Error 127
Makefile:2103: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:1862: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:606: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
sudo apt-get install xa65
make
...
Making all in c64
Warning: zero segment ($0004) start address doesn't align to 256!
Making all in cart
...
/home/lucasw/other/vice-emu-code/vice/missing: line 81: makeinfo: command not found
WARNING: 'makeinfo' is missing on your system.
You should only need it if you modified a '.texi' file, or
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
<http://www.gnu.org/software/texinfo/>
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
<http://www.gnu.org/software/make/>
sudo apt-get install texinfo
cd ..
mkdir build_vice
cd build_vice
../vice/configure --prefix=$HOME/other/install
make
...
Making all in c64
cd cc65/samples
make
x64
left click smart-attach disk/tape...
Select plasma
(no file extension).
Then the emulator should have keyboard focus, type 'run'- it will appear all capitals but don't hold down shift.
ACME
Now try the example from reddit again
It successfully turns the the background black.
Cycle the border and background colors rapidly:
how to recompile and reload within x64 without restarting it completely (though it is plenty fast to restart completely).