From c9df40c99f40418d869712b31de1b59d7654362f Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Mon, 3 Apr 2023 13:36:27 +1000 Subject: removed some files --- addressing.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'addressing.h') diff --git a/addressing.h b/addressing.h index ccde083..3d67b33 100644 --- a/addressing.h +++ b/addressing.h @@ -19,6 +19,17 @@ enum Addressing { typedef int Addressing; +int getLength(Addressing addr){ + switch(addr){ + case eAbsolute: case eAbsoluteIndexedX: case eAbsoluteIndexedY: + return 3; + case eAccumulator: + return 1; + default: + return 2; + } +} + /* * Any addressing method which is single line commented out without definition * implies that handling should be hard-coded in the switch case of the -- cgit v1.2.3