From d79bcba5ec1142ecb1f2234cd08d4d051ee977d6 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Thu, 11 Jan 2018 21:58:05 -0600 Subject: [PATCH] Add missing docblocks --- src/apple2.mem.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/apple2.mem.c b/src/apple2.mem.c index 3b544a3..f6e151c 100644 --- a/src/apple2.mem.c +++ b/src/apple2.mem.c @@ -163,6 +163,12 @@ apple2_mem_init_sys_rom(apple2 *mach) return OK; } +/* + * Handle reads to the soft switches that handle bank-switching. Note + * that some of these "reads" actually modify how banks are switched + * between ROM, RAM, or bank 2 RAM. Sorry about that -- it's just the + * way it worked on the Apple II. + */ SEGMENT_READER(apple2_mem_read_bank_switch) { apple2 *mach; @@ -235,6 +241,10 @@ SEGMENT_READER(apple2_mem_read_bank_switch) return 0; } +/* + * Handle writes to the soft switches that modify bank-switching + * behavior. + */ SEGMENT_WRITER(apple2_mem_write_bank_switch) { apple2 *mach = (apple2 *)_mach;