From b4f2fd813384a918b617e17aa394f72f8779a0a0 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 25 Jun 2023 23:14:44 +0300 Subject: Add some notes and grammar --- notes.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 notes.txt (limited to 'notes.txt') diff --git a/notes.txt b/notes.txt new file mode 100644 index 0000000..b3b2b48 --- /dev/null +++ b/notes.txt @@ -0,0 +1,20 @@ +PC register can be specified as "PC" or "pc", but "Pc" and "pC" forms are not +allowed. +An and Dn register can be specified with capital or small letter no problem. + +"-" - Expression or -(An) +"-(" - Expression or -(An) +"--" - Expression +"-(a1" - -(An), only ')' expected further +"-(a1)" - -(An), done + +"#" - Immediate expression, no registers allowed, no size specifiers allowed + +"(" - Addr Expression, (An), (An)+, (d16,An), (d16,pc), (d8,An,Xi) or (d8,pc,Xi) +"(a1" - (An), (An)+, (d16,An) or (d8,An,Xi) +"(a1," - (An), (An)+, (d16,An) or (d8,An,Xi) +"(d1" - (d8,An,Xi) or (d8,pc,Xi) +"(d1," - (d8,An,Xi) or (d8,pc,Xi) +"(pc" - (d16,pc) or (d8,pc,Xi) +"(a1)" - (An), (An)+ +"(a1)+" - (An)+, done -- cgit v1.2.3