Compare commits
No commits in common. "cfce402934fadd9ecfcb30652294596c26cee6cf" and "e8b5503595e396e4ba3ee1036f7322a684c0a37a" have entirely different histories.
cfce402934
...
e8b5503595
3
Makefile
3
Makefile
@ -1,7 +1,6 @@
|
||||
.ONESHELL:
|
||||
|
||||
CC=gcc
|
||||
O=2
|
||||
CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics
|
||||
PREFIX=$(HOME)/.local
|
||||
|
||||
@ -13,7 +12,7 @@ clean:
|
||||
|
||||
ls7emulator:
|
||||
cd src
|
||||
$(CC) main.c -o ls7emulator $(CFLAGS) -O$(O)
|
||||
$(CC) main.c -o ls7emulator $(CFLAGS) -O2
|
||||
|
||||
rm ../bin -rf
|
||||
mkdir ../bin
|
||||
|
@ -32,11 +32,11 @@ void pollEvents(sfRenderWindow *window){
|
||||
break;
|
||||
|
||||
case sfKeyF2:
|
||||
if (displayscale > 1) displayscale--;
|
||||
if (displayScale > 1) displayScale--;
|
||||
updateRenderStates();
|
||||
break;
|
||||
case sfKeyF3:
|
||||
displayscale++;
|
||||
displayScale++;
|
||||
updateRenderStates();
|
||||
break;
|
||||
case sfKeyF5:
|
||||
|
@ -36,7 +36,7 @@ static sfColor *videoColorIndex[] = {
|
||||
&(sfColor){ 0, 0xFF, 0xFF },
|
||||
&(sfColor){ 0xFF, 0xFF, 0xFF },*/
|
||||
};
|
||||
static uint8_t videoMemory[0x8000];
|
||||
static uint8_t videoMemory[0x7FFF];
|
||||
|
||||
|
||||
void writeVideo(){
|
||||
@ -55,7 +55,7 @@ void initVideo(){
|
||||
videoModified = 1;
|
||||
videoMode = 0x01;
|
||||
|
||||
for (int i = 0; i < 0x8000; i++) videoMemory[i] = rand();
|
||||
for (int i = 0; i < 0x7FFF; i++) videoMemory[i] = rand();
|
||||
}
|
||||
|
||||
void updateVideo(){
|
||||
|
Loading…
Reference in New Issue
Block a user