Skip to content

Commit

Permalink
Make backspace work as delete key
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoucher committed Aug 14, 2021
1 parent 29bd9d1 commit a7d74bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions software/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ void write6502(uint16_t address, uint8_t data) {
if (runstop_pressed && data == 0xF7) {
mpu_memory[VIA2_PORTA] = 0xFE;
} else if (delete_pressed && data == 0xFE) {
printf("del pressed");
mpu_memory[VIA2_PORTA] = 0x7F;
} else {
} else if (data == 0) {
mpu_memory[VIA2_PORTA] = 0;
} else {
mpu_memory[VIA2_PORTA] = 0xFF;
}
}
else if (address == VIA2_IER) {
Expand Down

0 comments on commit a7d74bf

Please sign in to comment.