From 608b9d4f1f3b7b078eba049e1a0fa7575d560bb1 Mon Sep 17 00:00:00 2001 From: neauoire Date: Mon, 8 Feb 2021 12:17:50 -0800 Subject: [PATCH] * --- cpu.c | 18 +++++++++--------- cpu.h | 11 +++++++++++ 2 files changed, 20 insertions(+), 9 deletions(-) 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;