Compare commits
7 Commits
ab3b026324
...
e8b5503595
Author | SHA1 | Date | |
---|---|---|---|
|
e8b5503595 | ||
|
ccf8abbeca | ||
|
945f5e679c | ||
|
80dfbb3d0a | ||
|
0f6e5abcb6 | ||
|
056712f943 | ||
|
5842e91dd2 |
3
Makefile
3
Makefile
@ -8,10 +8,11 @@ all: ls7emulator
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf bin/ls7emulator bin/
|
rm -rf bin/ls7emulator bin/
|
||||||
|
rm -rf src/*.o
|
||||||
|
|
||||||
ls7emulator:
|
ls7emulator:
|
||||||
cd src
|
cd src
|
||||||
$(CC) ls7emulator.c -o ls7emulator $(CFLAGS) -O2
|
$(CC) main.c -o ls7emulator $(CFLAGS) -O2
|
||||||
|
|
||||||
rm ../bin -rf
|
rm ../bin -rf
|
||||||
mkdir ../bin
|
mkdir ../bin
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
#include <stdint.h>
|
|
||||||
#include <SFML/System.h>
|
|
||||||
#include <SFML/Graphics.h>
|
|
||||||
|
|
||||||
|
|
||||||
#define NOP 0xEA /* CPU NoOp */
|
#define NOP 0xEA /* CPU NoOp */
|
||||||
#define PAGESIZE 0x1F /* Pagesize of extra addressing of devices */
|
#define PAGESIZE 0x1F /* Pagesize of extra addressing of devices */
|
||||||
#define VIDADDRS 0xBE00 /* Video Address */
|
#define VIDADDRS 0xBE00 /* Video Address */
|
||||||
@ -18,3 +13,5 @@
|
|||||||
|
|
||||||
#define CPUSPEED 4096 * 16
|
#define CPUSPEED 4096 * 16
|
||||||
|
|
||||||
|
|
||||||
|
static float displayScale = 2;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <SFML/Graphics/RenderWindow.h>
|
|
||||||
#include <SFML/System.h>
|
#include <SFML/System.h>
|
||||||
#include <SFML/Graphics.h>
|
#include <SFML/Graphics.h>
|
||||||
#include <SFML/Window.h>
|
#include <SFML/Window.h>
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
#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;
|
|
@ -8,7 +8,6 @@
|
|||||||
#include <SFML/Graphics.h>
|
#include <SFML/Graphics.h>
|
||||||
#include <SFML/Window.h>
|
#include <SFML/Window.h>
|
||||||
|
|
||||||
#include "ls7emulator.h"
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "events.c"
|
#include "events.c"
|
||||||
#include "cpu.c"
|
#include "cpu.c"
|
||||||
@ -17,6 +16,10 @@
|
|||||||
#include "keyboard.c"
|
#include "keyboard.c"
|
||||||
|
|
||||||
|
|
||||||
|
sfVertexArray *renderArray;
|
||||||
|
sfRenderWindow *window;
|
||||||
|
sfRenderStates renderStates;
|
||||||
|
|
||||||
|
|
||||||
void openFile(const char *inputFile){
|
void openFile(const char *inputFile){
|
||||||
FILE *file = fopen(inputFile, "rb");
|
FILE *file = fopen(inputFile, "rb");
|
@ -1,7 +1,5 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
extern void scanKeyboard();
|
extern void scanKeyboard();
|
||||||
extern void writeVideo();
|
extern void writeVideo();
|
||||||
extern uint8_t readVideo();
|
extern uint8_t readVideo();
|
||||||
|
Loading…
Reference in New Issue
Block a user