From 8c1714116e8789a8a5626f437d781b1456d69605 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Thu, 22 Apr 2021 13:03:49 +0200 Subject: [PATCH] more info in readme to symbols and prgram startup --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10247f6..9905e77 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,13 @@ The [`read` syscall](docs/syscalls.md) defaults to readline behaviour. Reading " See the docs on [asembly](docs/assembly.md) for more detail on how to write assembly code for this emulator. See the [list of implemented syscalls](docs/syscalls.md) for more details on how to syscall. -Currently, symbols (such as `main:`) are looked-up at runtime. This allows for better debugging, I believe. +Currently, symbols (such as `main` or `loop`) are looked-up at runtime. This allows for better debugging, I believe. Basic IO should work, as open, read, write and close are supported for stdin/stdout/stderr and even aribtrary file paths (if enabled) +When trying to run an assembly program, the emulator first tries to find a symbol named `_start`, then a symbol named `main`. if both +symbols were not found in the file, it simply starts at the beginning of the `.text` segment. + ## Using the CLI: *Current CLI is not final, options may change frequently until a stable version is reached*