From 73697fa060d4dfb4649733a378ef836c07312229 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Mon, 7 Jul 2014 07:52:51 -0700 Subject: [PATCH 1/2] Fix setpc value --- Docs/Tutorials/PLASMA/User Manual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/Tutorials/PLASMA/User Manual.md b/Docs/Tutorials/PLASMA/User Manual.md index 4e255e90..8bbed8ac 100644 --- a/Docs/Tutorials/PLASMA/User Manual.md +++ b/Docs/Tutorials/PLASMA/User Manual.md @@ -36,7 +36,7 @@ Load module HELLO.REL Hello, world. ``` -A couple of things to note: **plasm** only accepts input from stdin and output to stdout. To build **acme** compatible module source, tha '-AM' flags must be passed in. The **acme** assembler needs the --setpc 4096 to assemble the module at the proper address, and the -o option sets the output file. The makefile in the lawless-legends/PLASMA/src directory has automated this process. Enter: +A couple of things to note: **plasm** only accepts input from stdin and output to stdout. To build **acme** compatible module source, tha '-AM' flags must be passed in. The **acme** assembler needs the --setpc 4094 to assemble the module at the proper address, and the -o option sets the output file. The makefile in the lawless-legends/PLASMA/src directory has automated this process. Enter: ``` make hello From 3ebf9f11dd85dd3f712c9423cc1b89eba591fea0 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Mon, 7 Jul 2014 22:18:42 -0700 Subject: [PATCH 2/2] Use new when/is/otherwise with break --- Platform/Apple/tools/PLASMA/src/cmd.pla | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Platform/Apple/tools/PLASMA/src/cmd.pla b/Platform/Apple/tools/PLASMA/src/cmd.pla index e6f9a232..0dc4a51d 100644 --- a/Platform/Apple/tools/PLASMA/src/cmd.pla +++ b/Platform/Apple/tools/PLASMA/src/cmd.pla @@ -1278,16 +1278,22 @@ while 1 when toupper(parsecmd(cmdptr)) is 'Q' reboot() + break is 'C' catalog(cmdptr) + break is 'P' setpfx(cmdptr) + break is 'V' - volumes(); + volumes() + break is '-' execsys(cmdptr) + break is '+' execmod(cmdptr) + break otherwise prstr(@huhstr) wend