This commit is contained in:
neauoire 2021-02-08 12:17:50 -08:00
parent 0981074d63
commit 608b9d4f1f
2 changed files with 20 additions and 9 deletions

18
cpu.c
View File

@ -1,14 +1,5 @@
#include <stdio.h>
#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

11
cpu.h
View File

@ -1,5 +1,16 @@
#include <stdio.h>
/*
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;