From 7b3b0526cbc5a47f4b585597410e135cc432fc44 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 24 Feb 2025 14:56:37 +0100 Subject: Write on upper case in instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.md') 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 -- cgit v1.2.3