Skip to content

Commit 60c11be

Browse files
author
sblendorio
committed
bugfix
1 parent e8ca79a commit 60c11be

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

victerm-exp3k.prg

11 Bytes
Binary file not shown.

victerm-expanded.prg

11 Bytes
Binary file not shown.

victerm.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ char f[] = {
2121
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
2222
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
2323
64, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,
24-
208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 91, 191, 93, 94, 164,
24+
208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 91, 47, 93, 94, 164,
2525
39, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
2626
80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 221, 93, 186, 0
2727
};
2828

29-
#define BUFFER_SIZE 32
29+
#define BUFFER_SIZE 48
3030
#define COLOR_COMBOS 4
3131

3232
char ch;
@@ -95,6 +95,7 @@ void main(void) {
9595
display_petscii_ascii();
9696
} else if (ch != 0) {
9797
buffer[0] = is_petscii ? ch :
98+
ch == 20 ? 8 :
9899
(ch >= 65 && ch <= 90) ? ch+32 :
99100
(ch >=193 && ch <=218) ? ch-128:
100101
ch
@@ -192,9 +193,10 @@ void cursor_off(void) {
192193
loop:
193194
asm("ldy $cf");
194195
asm("bne %g", loop);
195-
exitloop:
196196
asm("ldy #$ff");
197197
asm("sty $cc");
198+
exitloop:
199+
return;
198200
}
199201

200202
void beep(void) {

victerm.prg

11 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)