From 353f0cf12f3aec3c411cf643d567a96a01ad756d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 24 Feb 2025 21:37:26 +0100 Subject: Change the wording on label indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 13f0089..414a554 100644 --- a/README.md +++ b/README.md @@ -73,23 +73,24 @@ function2: ``` That being said, if the label exists in relation to another one, then it ought -to be kept at the previous indentation level. For example, labels for control -flow inside of a function: +to be kept at the same indentation level as the other label. For example, labels +for control flow inside of a function: ``` assembly -function1: +foo: lda #1 @label: ; bad! jmp @label -function2: +foo: lda #1 @label: ; good! jmp @label ``` -The same would apply to a function which has some pre-computed data for some of -its logic: +That is, `@label` exists in relation to `foo`, and so it should be at the same +indentation level. The same would apply to a function which has some +pre-computed data for some of its logic: ``` assembly function1: -- cgit v1.2.3