Compare commits

..

No commits in common. "04f0fe2c7bb125c492fb0fef8858169aa9dbc4ef" and "37cfca14826b8dc4db91c968f8456f4583f04393" have entirely different histories.

3 changed files with 2 additions and 13 deletions

View File

@ -9,7 +9,6 @@ extern uint8_t showHelp;
extern uint8_t displayMmap; extern uint8_t displayMmap;
extern uint8_t documentReload; extern uint8_t documentReload;
extern char *reloadExecute;
extern uint32_t renderMemory[]; extern uint32_t renderMemory[];
extern int openFile(); extern int openFile();
@ -28,8 +27,8 @@ void pollEvents(){
while (SDL_PollEvent(&event)){ while (SDL_PollEvent(&event)){
switch(event.type){ switch(event.type){
case SDL_QUIT: case SDL_QUIT:
printf("Exited.\n");
exit(0); exit(0);
break;
case SDL_KEYDOWN: case SDL_KEYDOWN:
switch (event.key.keysym.scancode){ switch (event.key.keysym.scancode){
@ -50,16 +49,8 @@ void pollEvents(){
break; break;
case SDL_SCANCODE_F5: /* CPU Reset */ case SDL_SCANCODE_F5: /* CPU Reset */
if (reloadExecute[0]) {
if (system(reloadExecute)){
printf("Shell command failed!\n");
goto skip;
}
}
if (documentReload) openFile(); if (documentReload) openFile();
resetSystem(); resetSystem();
skip:
break; break;
case SDL_SCANCODE_F6: /* Scale -- */ case SDL_SCANCODE_F6: /* Scale -- */

View File

@ -40,7 +40,6 @@ unsigned long tickTrigger = 0;
char debugString[512]; char debugString[512];
char snapshotFile[32]; char snapshotFile[32];
char *reloadExecute;
char *inputFile; char *inputFile;
int openFile(){ int openFile(){
@ -79,7 +78,6 @@ void fetchArgs(int argc, char *argv[]){
//else if (!strcmp(argv[i], "--snapshot")) snapshotFile = &argv[i]; //else if (!strcmp(argv[i], "--snapshot")) snapshotFile = &argv[i];
else if (!strcmp(argv[i], "--fps")) FPS = atoi(argv[++i]); else if (!strcmp(argv[i], "--fps")) FPS = atoi(argv[++i]);
else if (!strcmp(argv[i], "--enable-reload")) documentReload = 1; else if (!strcmp(argv[i], "--enable-reload")) documentReload = 1;
else if (!strcmp(argv[i], "--reload-execute")) reloadExecute = argv[++i];
else { else {
inputFile = argv[i]; inputFile = argv[i];
if (openFile()){ if (openFile()){

View File

@ -57,7 +57,7 @@ void write6502(uint16_t address, uint8_t value){
case VIDADDRS ... VIDADDRS + PAGESIZE: case VIDADDRS ... VIDADDRS + PAGESIZE:
switch ((address - VIDADDRS) % 4){ switch ((address - VIDADDRS) % 4){
case 0: /* Video X Register */ case 0: /* Video X Register */
videoX = value & 0b01111111; videoX = value;
break; break;
case 1: /* Video Y Register */ case 1: /* Video Y Register */
videoY = value; videoY = value;