From 854349100c4e98b7913c4024417fc028acb14277 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 2 May 2023 12:11:49 +0100 Subject: Documented .equ and small improvements --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index f9318d4..2886be8 100644 --- a/README.md +++ b/README.md @@ -129,9 +129,11 @@ Example: ; can use the frame int o sync ld a, 0xff ld x, 0 + ; lower byte of the address ld b, int_handler ld [a : x], b @@ -211,7 +213,7 @@ branching instructions: inc a ``` -#### Directives +#### Assembler directives .org addr Set the address to that value. By default the starting address is `0x0000`. @@ -223,6 +225,9 @@ and `>`for the high byte. .dw imm [, imm] Literal word. +.equ label imm +Define a label assigning an arbitrary immediate. + #### Load and Store LD r1, r2 -- cgit v1.2.3