From 589faceb9b4563cc24c39da461b6a4403fe44980 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 24 Aug 2022 22:54:40 +0200 Subject: [PATCH] Doc: Clarify opcode mnemonic for 16-bit address registers When you see a 16-bit register wrapped by parentheses, its referencing the value at the address the register is pointing to rather than the address itself. --- doc/terminology.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/terminology.org b/doc/terminology.org index cfe011d..5ffcbe2 100644 --- a/doc/terminology.org +++ b/doc/terminology.org @@ -36,7 +36,7 @@ We start counting from the right as bit *#0*! | register | 8 | unsigned | r8 | | r8 | r | | Any of the registers | | | register | 16 | unsigned | r16 | | r16 | rr | | Any of the registers | little-endian | | address | 8 | unsigned | a8 | | | (n) | | Address at value | | -| address | 16 | unsigned | a16 | a16 | n16 | (nn) | nn | Address at value | little-endian | +| address | 16 | unsigned | a16 or () | a16 | n16 | (nn) | nn | Address at value | little-endian | | immediate | 8 | signed | s8 | r8 | e8 | e | dd | Next byte in memory | | | immediate | 8 | unsigned | io8 | (a8) | n16 | (n) | n | 0xff00 + next byte in memory | write to I/O-port | | condition | | | | NZ | cc | | f | Execute if condition met | |