Skip to content

Commit 324388c

Browse files
committed
Added pc_key and pc_mouse to supported -gbrk functions
1 parent 12832a4 commit 324388c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version 6.6.0
2+
- Added pc_key and pc_mouse to -gbrk
23
- Implemented proper boolean type for C
34
- Fixed -- operator for floats
45
- Made the BASIC boolean type a distinct type

backends/brkdebug.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ enum DebugBytecode {
2222
DBC_CHAR = 5,
2323
DBC_STRING = 6,
2424
DBC_DELAY = 7,
25+
DBC_PC_KEY = 8,
26+
DBC_PC_MOUSE = 9,
2527

2628
// Flags
2729
DBC_FLAG_NOCOMMA = 0x01,
@@ -51,7 +53,9 @@ static struct DebugFunc debug_func_table[] = {
5153
{"if" ,DBC_IF},
5254
{"ifnot" ,DBC_IFNOT},
5355
{"dly" ,DBC_DELAY},
54-
56+
{"pc_key" ,DBC_PC_KEY},
57+
{"pc_mouse" ,DBC_PC_MOUSE},
58+
5559
{"zstr" ,DBC_TYPE_STR},
5660
{"lstr" ,DBC_TYPE_STR|DBC_FLAG_ARRAY},
5761

0 commit comments

Comments
 (0)