diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-12 07:33:48 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-12 07:33:48 +0100 |
commit | e08c4e724f81b6adb4de371a390f0ca4081384f3 (patch) | |
tree | b0f2216dbcbc3f2849b05536da3c37a4723a8704 /README.md | |
parent | b0d59a8011359fbd7ea23db9afba7d05b65df314 (diff) | |
download | tr8vm-e08c4e724f81b6adb4de371a390f0ca4081384f3.tar.gz tr8vm-e08c4e724f81b6adb4de371a390f0ca4081384f3.zip |
Describe labels and IDs
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |