Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoucher committed Aug 14, 2021
1 parent d0b545a commit 583d292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion software/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(PICO_SDK_PATH $ENV{PICO_SDK_PATH})


add_compile_options(-Wall
-Wno-format # int != int32_t as far as the compiler is concerned because gcc has int32_t as long int
-Wno-unused-function # we have some for the docs that aren't called
Expand All @@ -22,7 +23,6 @@ add_definitions(-DUSE_MEMORY_POINTER=1)
pico_sdk_init()



set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

Expand Down
5 changes: 2 additions & 3 deletions software/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void write6502(uint16_t address, uint8_t data) {
mpu_memory[VIA2_PORTA] = 0xFE;
} else if (delete_pressed && data == 0xFE) {
printf("del pressed");
mpu_memory[VIA2_PORTA] = 0xEF;
mpu_memory[VIA2_PORTA] = 0x7F;
} else {
mpu_memory[VIA2_PORTA] = 0;
}
Expand Down Expand Up @@ -343,7 +343,7 @@ int main() {
// run/stop mapped to ESC
runstop_pressed = true;
} else if (charcode == 0x66 && !ignoreNext) {
// run/stop mapped to ESC
// del mapped to backspace
delete_pressed = true;
} else if ((charcode == 0x12 || charcode == 0x59) && !ignoreNext) {
// shift code
Expand Down Expand Up @@ -380,7 +380,6 @@ int main() {
}
}

#endif
step6502();
}

Expand Down

0 comments on commit 583d292

Please sign in to comment.