rom4x/rom5x
2017-03-16 20:07:36 -07:00
..
options/accel_reverse 5X: cite prior art 2017-03-11 11:51:28 -08:00
B0_CFF9_switch_cmd.s Update code comments and Rakefile 2017-03-11 00:19:40 -08:00
B0_FAB4_patch_pwrup.s ROM5X preliminary code 2017-02-12 11:53:47 -08:00
B0_FAC8_patch_reset.s ROM5X preliminary code 2017-02-12 11:53:47 -08:00
B0_FB68_center_title.s update readme. 5X: move 'Apple IIc +' left a few spots 2017-03-11 11:02:13 -08:00
B0_FBDF_bell1_hijack.s Update code comments and Rakefile 2017-03-11 00:19:40 -08:00
B1_C53D_patch_out_rom_cksum.s Update code comments and Rakefile 2017-03-11 00:19:40 -08:00
B1_D6CE_rom5x_misc.s Update code comments and Rakefile 2017-03-11 00:19:40 -08:00
B1_D516_boot5x.s Update code comments and Rakefile 2017-03-11 00:19:40 -08:00
B1_DB63_reset5x.s Fix bugs from first pass on real hardware 2017-03-10 20:33:23 -08:00
B1_FB3C_rom5x_dispatch.s Beep fix similar to Q.D.s 2017-03-16 20:07:36 -07:00
B1_FBE2_bell1_hijack_b1.s Beep fix similar to Q.D.s 2017-03-16 20:07:36 -07:00
iic+.defs Fix bugs from first pass on real hardware 2017-03-10 20:33:23 -08:00
Rakefile Beep fix similar to Q.D.s 2017-03-16 20:07:36 -07:00
README.md 5X: one byte patch to default to 1 MHz 2017-03-11 11:16:05 -08:00

ROM 5X by MG

PRELIMINARY, NOT EXTENSIVELY TESTED

This is ROM 5X, providing the ROM 4X functionality to the Apple IIc Plus ROM version 5.

There are almost no free bytes in the main bank of the IIc Plus firmware, so I had to get creative to get into the alternate bank, where I then had to split the code up across multiple smaller free spaces due to the massive 3.5 drive handling code. Ironically this makes the code larger as well.

For those interested, I hijack the monitor BEEP1 routine. The beep routine has an LDA #$40 and then calls WAIT with this value for a .1 second delay, presumably so that multiple beeps are distinct from each other.

I patch the JSR WAIT to be STA $C028, which switches to the other bank. The code in the other bank checks the accumulator and for two values calls either reset5x or boot5x, and for any other value executes the WAIT (assuming that we got there from BEEP1) and returns back to BEEP1.

Then, in only 6 bytes I can create two entry points that load the value into A that we need for the reset or boot routines, and then jump to the above patch.

Options

The options directory contains one or more subdirectories with optional patches that change the default behavior of the Apple IIc Plus.

Accelerator Reverse

The accelerator reverse patch is a 1-byte patch that causes the IIc Plus to boot up at the normal speed.

Pressing at reset time will make the machine run at 4 MHz.