From 03e92ce787f063aa93e34145abd9c0c9cef7ee28 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Tue, 28 Mar 2023 11:24:55 +1100 Subject: shifting to other computer --- applesystem.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'applesystem.h') diff --git a/applesystem.h b/applesystem.h index bf94a72..a26aff7 100644 --- a/applesystem.h +++ b/applesystem.h @@ -35,6 +35,15 @@ void setFlag(byte flag, int x) { //OVERLOAD TO ACCEPT INT AS WELL } } +void flagSet(byte flag){ + P |= flag; +} + +void flagClear(byte flag){ + P &= ~flag +} + + // BCD byte toBCD(byte x){ @@ -54,7 +63,7 @@ byte fromBCD(byte x){ return (a + b); } - +// addBCD() -- cgit v1.2.3