This commit is contained in:
parent
0981074d63
commit
608b9d4f1f
18
cpu.c
18
cpu.c
|
@ -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
11
cpu.h
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue