diff --git a/cpu.c b/cpu.c index b62c322..23b78ab 100644 --- a/cpu.c +++ b/cpu.c @@ -1,14 +1,5 @@ #include -#define FLAG_HALT 0x01 -#define FLAG_SHORT 0x02 -#define FLAG_SIGN 0x04 -#define FLAG_COND 0x08 - -#include "cpu.h" - -Computer cpu; - /* Copyright (c) 2021 Devine Lu Linvega @@ -20,6 +11,15 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ +#include "cpu.h" + +#define FLAG_HALT 0x01 +#define FLAG_SHORT 0x02 +#define FLAG_SIGN 0x04 +#define FLAG_COND 0x08 + +Computer cpu; + #pragma mark - Helpers void diff --git a/cpu.h b/cpu.h index ca4279b..b18cdd9 100644 --- a/cpu.h +++ b/cpu.h @@ -1,5 +1,16 @@ #include +/* +Copyright (c) 2021 Devine Lu Linvega + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE. +*/ + typedef unsigned char Uint8; typedef unsigned short Uint16;