From e774c40b22b7c482b541e851574a0389a444bec5 Mon Sep 17 00:00:00 2001 From: Dieter Baron Date: Wed, 3 Jul 2024 13:35:31 +0200 Subject: [PATCH] Allow oiting a in notation for ALU instructions. --- share/cpu/z80.cpu | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/share/cpu/z80.cpu b/share/cpu/z80.cpu index 31756ea..f9a319f 100644 --- a/share/cpu/z80.cpu +++ b/share/cpu/z80.cpu @@ -131,7 +131,10 @@ .addressing_mode a__immediate { - notation: a,n + notation [ + : a,n + : n + ] arguments { n: byte } @@ -139,7 +142,10 @@ } .addressing_mode a__indexed { - notation: a,(i+d) + notation [ + : a,(i+d) + : (i+d) + ] arguments { i: index_register d: signed_byte @@ -176,7 +182,10 @@ } .addressing_mode a__indirect_hl { - notation: a,(hl) + notation [ + : a,(hl) + : (hl) + ] } .addressing_mode a__i_or_r { @@ -188,7 +197,10 @@ } .addressing_mode a__register { - notation: a,r + notation [ + : a,r + : r + ] arguments { r: register }