| ... | ... |
@@ -1,14 +1,5 @@ |
| 1 | 1 |
#include <stdio.h> |
| 2 | 2 |
|
| 3 |
-#define FLAG_HALT 0x01 |
|
| 4 |
-#define FLAG_SHORT 0x02 |
|
| 5 |
-#define FLAG_SIGN 0x04 |
|
| 6 |
-#define FLAG_COND 0x08 |
|
| 7 |
- |
|
| 8 |
-#include "cpu.h" |
|
| 9 |
- |
|
| 10 |
-Computer cpu; |
|
| 11 |
- |
|
| 12 | 3 |
/* |
| 13 | 4 |
Copyright (c) 2021 Devine Lu Linvega |
| 14 | 5 |
|
| ... | ... |
@@ -20,6 +11,15 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 20 | 11 |
WITH REGARD TO THIS SOFTWARE. |
| 21 | 12 |
*/ |
| 22 | 13 |
|
| 14 |
+#include "cpu.h" |
|
| 15 |
+ |
|
| 16 |
+#define FLAG_HALT 0x01 |
|
| 17 |
+#define FLAG_SHORT 0x02 |
|
| 18 |
+#define FLAG_SIGN 0x04 |
|
| 19 |
+#define FLAG_COND 0x08 |
|
| 20 |
+ |
|
| 21 |
+Computer cpu; |
|
| 22 |
+ |
|
| 23 | 23 |
#pragma mark - Helpers |
| 24 | 24 |
|
| 25 | 25 |
void |
| ... | ... |
@@ -1,5 +1,16 @@ |
| 1 | 1 |
#include <stdio.h> |
| 2 | 2 |
|
| 3 |
+/* |
|
| 4 |
+Copyright (c) 2021 Devine Lu Linvega |
|
| 5 |
+ |
|
| 6 |
+Permission to use, copy, modify, and distribute this software for any |
|
| 7 |
+purpose with or without fee is hereby granted, provided that the above |
|
| 8 |
+copyright notice and this permission notice appear in all copies. |
|
| 9 |
+ |
|
| 10 |
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
| 11 |
+WITH REGARD TO THIS SOFTWARE. |
|
| 12 |
+*/ |
|
| 13 |
+ |
|
| 3 | 14 |
typedef unsigned char Uint8; |
| 4 | 15 |
typedef unsigned short Uint16; |
| 5 | 16 |
|