From 8762bf447e0cc736f19a7110373cb7f25758b843 Mon Sep 17 00:00:00 2001 From: Frederic Stark Date: Sun, 6 Oct 2024 14:55:22 +0200 Subject: [PATCH] Updated README. Added sample AUTOTYPING.TXT. Fixed code style --- AUTOTYPING.TXT | 5 ++++- README | 8 ++------ src/memory.c | 3 +-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/AUTOTYPING.TXT b/AUTOTYPING.TXT index aa2bde6..7ddee74 100644 --- a/AUTOTYPING.TXT +++ b/AUTOTYPING.TXT @@ -1 +1,4 @@ -280.28f +E000R +10 PRINT "HELLO, WORLD! "; +20 GOTO 10 +RUN diff --git a/README b/README index 5ba6dbf..56a8ea3 100644 --- a/README +++ b/README @@ -1,8 +1,3 @@ -# Fork of napple1 - -This forks enables to emulate keyboard entry on the apple1. When pressing "shift-K", -the keyboard I/O will be replaced by the content of the 'AUTOTYPING.TXT' file. (note: this have been done to be able to type in basic programs and use the 'dump" features to transfer them to binary files). - napple1 is an Apple 1 emulator using ncurses, ported from the SDL version Pom1 emulafor. If you have some questions, please report it as an issue. @@ -64,7 +59,7 @@ type E2B3R - Emulator commands Command Key Description --------------------------------------------------------------------- +--------------------------------------------------------------------------- Basic load Shidt + B Load rom/basic.rom to ram Dump core Shift + D Dump memory to core/_file name_ Load core Shift + L Load memory from core/_file name_ @@ -72,6 +67,7 @@ Reset Shift + R Reset the emulator Hard reset Shidt + H Reset & Clear memory Quit Shidt + Q Quit the emulator Mode Shift + M Mode change 8KB & 32KB ram mode + Shift + K Automatically type in AUTOTYPING.TXT file if present - Load / Save programs diff --git a/src/memory.c b/src/memory.c index fe90f18..46d4fd7 100644 --- a/src/memory.c +++ b/src/memory.c @@ -162,8 +162,7 @@ unsigned char memRead(unsigned short address) return readDspCr(); if (address == 0xD012) return readDsp(); - if (address == 0xD011) - { + if (address == 0xD011) { unsigned char v = readKbdCr(); if (!(v & 0x80)) nextAutotyping();