diff options
Diffstat (limited to 'applesystem.h')
-rw-r--r-- | applesystem.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/applesystem.h b/applesystem.h index ea9b322..9b3dd1c 100644 --- a/applesystem.h +++ b/applesystem.h @@ -1,10 +1,13 @@ typedef unsigned char byte; -byte acc, X, Y, S, P = 0x00; +typedef unsigned short address; +byte acc, X, Y, P = 0x00; +unsigned short S = 0x0000; byte Memory[4096]; // TO DO. Add expansion capability to memory. /* To Do. + Find variables better passed as pointers instead + + Clean up this messy code */ @@ -32,10 +35,6 @@ void setFlag(byte flag, int x) { //OVERLOAD TO ACCEPT INT AS WELL } } -void toggleFlag(byte flag) { - P = ((P & flag) == flag) ? (P + flag) : (P - flag); -} - // BCD byte toBCD(byte x){ |