Compare commits

..

No commits in common. "cfce402934fadd9ecfcb30652294596c26cee6cf" and "e8b5503595e396e4ba3ee1036f7322a684c0a37a" have entirely different histories.

3 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,6 @@
.ONESHELL: .ONESHELL:
CC=gcc CC=gcc
O=2
CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics
PREFIX=$(HOME)/.local PREFIX=$(HOME)/.local
@ -13,7 +12,7 @@ clean:
ls7emulator: ls7emulator:
cd src cd src
$(CC) main.c -o ls7emulator $(CFLAGS) -O$(O) $(CC) main.c -o ls7emulator $(CFLAGS) -O2
rm ../bin -rf rm ../bin -rf
mkdir ../bin mkdir ../bin

View File

@ -32,11 +32,11 @@ void pollEvents(sfRenderWindow *window){
break; break;
case sfKeyF2: case sfKeyF2:
if (displayscale > 1) displayscale--; if (displayScale > 1) displayScale--;
updateRenderStates(); updateRenderStates();
break; break;
case sfKeyF3: case sfKeyF3:
displayscale++; displayScale++;
updateRenderStates(); updateRenderStates();
break; break;
case sfKeyF5: case sfKeyF5:

View File

@ -36,7 +36,7 @@ static sfColor *videoColorIndex[] = {
&(sfColor){ 0, 0xFF, 0xFF }, &(sfColor){ 0, 0xFF, 0xFF },
&(sfColor){ 0xFF, 0xFF, 0xFF },*/ &(sfColor){ 0xFF, 0xFF, 0xFF },*/
}; };
static uint8_t videoMemory[0x8000]; static uint8_t videoMemory[0x7FFF];
void writeVideo(){ void writeVideo(){
@ -55,7 +55,7 @@ void initVideo(){
videoModified = 1; videoModified = 1;
videoMode = 0x01; videoMode = 0x01;
for (int i = 0; i < 0x8000; i++) videoMemory[i] = rand(); for (int i = 0; i < 0x7FFF; i++) videoMemory[i] = rand();
} }
void updateVideo(){ void updateVideo(){