From e08c4e724f81b6adb4de371a390f0ca4081384f3 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 12 May 2023 07:33:48 +0100 Subject: Describe labels and IDs --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3