I just discovered the fun of writing small programs (Basic/asm) for an emulated C64 for me.

Unfortunately, I cannot get used to the emulated C64 keybord, and would like to write the programs on the Host-PC (Linux or Windows, doesn't matter) instead, and simply load them to the emulator

Does anyone know an easy way to do this?

(Or an emulator that simply accepts copy/paste of text dragged onto it?)

  • 1
    I think you may need to say more specifically what your host computer is. You're working on Linux? Some kind of Windows? (And then, is the question really about retrocomputing, I don't know...) – Wilson Mar 22 '18 at 12:21

You can use petcat utility supplied with VICE emulator. Below is a .bat script which is smiliar to what I am using on my Windows machine.

SET VICE_PATH="C:\Program files\WinVICE\"

%VICE_PATH%\petcat -2 -o outfile.prg -- input.txt

IF %ERRORLEVEL%==0 %VICE_PATH%\x64 outfile.prg

Of course a smiliar script can be written for Linux/BSD in bash.

  • thanks a lot, VICE was really worth a try. It also accepts text files, copied from clipboard, like they've been entered on the keyboard. – Tommylee2k Mar 23 '18 at 8:11

If you're up for assembly programming, I can very highly recommend using the Sublime Text 3 KickAssembler package.

This allows you to edit a .asm file in ST3 with syntax highlighting. When you press F7 in the editor, it will compile your .asm file, start VICE and start executing your code in the emulator. Or if you don't like or use ST3, you can inspect the package source code to pretty much do the same steps in a script or in another editor.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.