aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-12 07:33:48 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-12 07:33:48 +0100
commite08c4e724f81b6adb4de371a390f0ca4081384f3 (patch)
treeb0f2216dbcbc3f2849b05536da3c37a4723a8704
parentb0d59a8011359fbd7ea23db9afba7d05b65df314 (diff)
downloadtr8vm-e08c4e724f81b6adb4de371a390f0ca4081384f3.tar.gz
tr8vm-e08c4e724f81b6adb4de371a390f0ca4081384f3.zip
Describe labels and IDs
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 79d4049..9c0f625 100644
--- a/README.md
+++ b/README.md
@@ -214,6 +214,13 @@ int_handler:
Because the flags are preserved, any code run in the interrupt handler only
needs to preserve the 4 registers and the stack.
+### Labels and IDs
+
+In `tr8as` an ID can have letters, numbers and special characters: `$_.#<>`,
+but can't start with `>` or `<`, or match one of the reserved keywords.
+
+A label is defined as an ID that ends in `:`.
+
### Instructions
All the instructions are 16-bit, with the exception of `JMP addr` and `CALL