Compare commits
No commits in common. "e8b5503595e396e4ba3ee1036f7322a684c0a37a" and "ab3b0263241e03e2b1fd52ec90cc943a2b8043e5" have entirely different histories.
e8b5503595
...
ab3b026324
3
Makefile
3
Makefile
@ -8,11 +8,10 @@ all: ls7emulator
|
||||
|
||||
clean:
|
||||
rm -rf bin/ls7emulator bin/
|
||||
rm -rf src/*.o
|
||||
|
||||
ls7emulator:
|
||||
cd src
|
||||
$(CC) main.c -o ls7emulator $(CFLAGS) -O2
|
||||
$(CC) ls7emulator.c -o ls7emulator $(CFLAGS) -O2
|
||||
|
||||
rm ../bin -rf
|
||||
mkdir ../bin
|
||||
|
@ -1,3 +1,8 @@
|
||||
#include <stdint.h>
|
||||
#include <SFML/System.h>
|
||||
#include <SFML/Graphics.h>
|
||||
|
||||
|
||||
#define NOP 0xEA /* CPU NoOp */
|
||||
#define PAGESIZE 0x1F /* Pagesize of extra addressing of devices */
|
||||
#define VIDADDRS 0xBE00 /* Video Address */
|
||||
@ -13,5 +18,3 @@
|
||||
|
||||
#define CPUSPEED 4096 * 16
|
||||
|
||||
|
||||
static float displayScale = 2;
|
||||
|
@ -1,4 +1,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <SFML/Graphics/RenderWindow.h>
|
||||
#include <SFML/System.h>
|
||||
#include <SFML/Graphics.h>
|
||||
#include <SFML/Window.h>
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <SFML/Graphics.h>
|
||||
#include <SFML/Window.h>
|
||||
|
||||
#include "ls7emulator.h"
|
||||
#include "config.h"
|
||||
#include "events.c"
|
||||
#include "cpu.c"
|
||||
@ -16,10 +17,6 @@
|
||||
#include "keyboard.c"
|
||||
|
||||
|
||||
sfVertexArray *renderArray;
|
||||
sfRenderWindow *window;
|
||||
sfRenderStates renderStates;
|
||||
|
||||
|
||||
void openFile(const char *inputFile){
|
||||
FILE *file = fopen(inputFile, "rb");
|
13
src/ls7emulator.h
Normal file
13
src/ls7emulator.h
Normal file
@ -0,0 +1,13 @@
|
||||
#include <SFML/System.h>
|
||||
#include <SFML/Graphics.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
/* Display Scale used for VertexArray */
|
||||
static float displayScale = 2;
|
||||
|
||||
|
||||
static sfVertexArray *renderArray;
|
||||
|
||||
static sfRenderWindow *window;
|
||||
static sfRenderStates renderStates;
|
@ -1,5 +1,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
extern void scanKeyboard();
|
||||
extern void writeVideo();
|
||||
extern uint8_t readVideo();
|
||||
|
Loading…
Reference in New Issue
Block a user