Add some definitions to common.h file

This commit is contained in:
g1n 2021-10-26 17:23:01 +03:00
parent 7068c10171
commit e4f477a58e
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,5 @@
#include <stdio.h>
typedef unsigned char byte; // 8 bit
typedef unsigned short word; // 16 bit
#include "../common.h"
#define MAX_MEMORY 1024*64

2
src/common.h Normal file
View File

@ -0,0 +1,2 @@
typedef unsigned char byte; // 8 bit
typedef unsigned short word; // 16 bit

View File

@ -1,3 +1,4 @@
#include "common.h"
#include "6502/6502.h"
#include <stdio.h>
#include <stddef.h>