implemented silent mode with s command line parameter
This commit is contained in:
@@ -135,7 +135,9 @@ See [FizzBuzz](examples/fizzbuzz.equi) for a more thorough example of how differ
|
||||
|
||||
Being a purely PC-oriented low-level runtime/programming environment, Equi has the reference implementation emulator/VM written in C (ANSI C89 standard), `equi.c`, compilable and runnable on all the systems supporting standard I/O. Note that, for portability reasons, this emulator:
|
||||
|
||||
- accepts the programs from standard input only,
|
||||
- only implements three ports for `P` instruction: 0 as an echo port (returns passed parameters as corresponding result values), 1 as a random port (returns two random values in the results in the range between the two parameter values) and 2 as a CRC16 calculation port for a given memory location and its length, for any other port value it outputs its parameters to the standard error stream and puts three 0x0000 values back onto the stack,
|
||||
- implements `s` command line parameter that runs the emulator in the silent mode without printing any welcome banners or interactive prompts,
|
||||
- doesn't implement non-blocking key input (the `,` instruction is identical to blocking key input instruction `?`),
|
||||
- sandboxes the `{` and `}` operations using the file with the name you supply on the compile time to the `PERSIST_FILE` constant. The file must already be created and accessible. If it doesn't exist, these operations will effectively do nothing except putting 0x0000 (success status) onto the stack.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user