The invisible editor for your Apple II
Go to file
Peter Ferrie 1986f5ce04 refactor to reduce size
page 2 is now free after load
2016-11-15 22:56:32 -08:00
bin
notes add title screen, auto-disappears on first keypress 2016-10-31 11:11:32 -04:00
res
src refactor to reduce size 2016-11-15 22:56:32 -08:00
.gitignore
LICENSE update LICENSE file 2016-11-03 12:05:51 -04:00
Makefile build script fiddling 2016-11-12 13:03:56 -05:00
README.md first real README 2016-11-06 14:46:00 -05:00

4live

4live is a scratchpad for keeping notes while you're working on your Apple II under DOS 3.3 or a compatible third-party DOS. The current version allows you to keep a 40x23 screen of freeform text, accessible at any time that DOS is in memory by hitting a global hotkey.

For users

Install 4live by typing BRUN _4LIVE from the BASIC prompt, or by executing it in your HELLO program.

10 PRINT CHR$(4);"BRUN _4LIVE"

Now you can press <Ctrl-@> at any time to enter the 4live editor. This works from the BASIC prompt or the monitor -- even in the middle of typing a command -- as long as DOS is in memory and connected. (If you can do a CATALOG, DOS is connected.)

Keyboard commands within the 4live editor:

  • <Ctrl-@> or <Esc> exits the 4live editor.
  • Arrows move freely up, down, left, and right. On an Apple II Plus, you can use <Ctrl-K> and <Ctrl-J> in place of up and down arrows.
  • <Return> moves the cursor to the beginning of the next line. It does not erase any text on the current line. It will wrap around from the bottom of the screen to the top.
  • <Ctrl-N> clears the editor screen and erases all your data.
  • <Ctrl-I> imports the "real" text screen you were looking at before you entered the editor (like taking a text screenshot). This overwrites the entire scratchpad and erases all your data.

4live will automatically save the contents of your scratchpad on exit. (Currently it saves to the file _4LIVE DATA. You will see this file in the disk catalog.)

4live for developers

4live is written in 100% 6502 assembly language, but it is developed on modern PCs (not in a "classic" IDE like Merlin-8). The source code is stored and managed in text files. These text files are assembled to executable code with ACME, then transferred to a disk image (.dsk file) with AppleCommander. You can mount this disk image in any Apple II emulator.

If you are on Mac OS X and have the Virtual II emulator, you can use the included Applescript to mount the .dsk file and reboot the emulator automatically. The included Makefile does this by default (after running ACME and AppleCommander).

Thus, during development, my testing cycle goes like this:

  1. Edit .a source code file in modern editor
  2. Run make
  3. Test in Virtual II
  4. GOTO 1

Acknowledgments

Thanks to Peter Ferrie, a.k.a. qkumba for his many contributions to this project.

Thanks to Quinn Dunki for her help integrating the Apple II build pipeline into my development environment.