aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-24 14:56:37 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-24 21:45:07 +0100
commit7b3b0526cbc5a47f4b585597410e135cc432fc44 (patch)
tree9bbf241f75a53b6c264c4528b3778e450663c682 /README.md
parent8fe0ee28b0c1220dd5b598e38e5c8e659c44e58e (diff)
downloadstyle.nes-7b3b0526cbc5a47f4b585597410e135cc432fc44.tar.gz
style.nes-7b3b0526cbc5a47f4b585597410e135cc432fc44.zip
Write on upper case in instructions
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 666de45..33a4dd9 100644
--- a/README.md
+++ b/README.md
@@ -202,6 +202,16 @@ good_thing:
.byte $01
```
+Only use upper case for macros or regular constants (as [detailed
+below](#UPPER_CASE-for-macros-and-regular-constants)). For the rest of your code
+stick to lower case and allow syntax highlighting on modern editors do the rest.
+Hence:
+
+``` assembly
+LDA #01 ; bad!
+lda #01 ; good!
+```
+
## Use the `@` prefix for named labels which affect the control flow
Named labels which are part of the control flow are to use the `@` symbol as a