File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 45
45
#include < djl_con.hxx>
46
46
#include < djl_cycle.hxx>
47
47
48
- #define AUTHOR " David Lee"
49
- #define FILENAME " ntvcm"
50
- #define VERSION " 0.1"
48
+ #define FILENAME " ntvcm"
49
+ #define VERSION " 0.1"
51
50
#if !defined(BUILD)
52
- #define BUILD " "
51
+ #define BUILD " "
53
52
#endif
54
53
#if !defined(COMMIT_ID)
55
54
#define COMMIT_ID " "
@@ -1604,7 +1603,13 @@ char get_next_kbd_char()
1604
1603
1605
1604
bool is_kbd_char_available ()
1606
1605
{
1607
- return ( ( g_fileInputOffset < g_fileInputText.size () ) || g_consoleConfig.throttled_kbhit () );
1606
+ if ( g_fileInputOffset < g_fileInputText.size () )
1607
+ return true ;
1608
+
1609
+ if ( g_sleepOnKbdLoop )
1610
+ return g_consoleConfig.throttled_kbhit ();
1611
+
1612
+ return g_consoleConfig.portable_kbhit ();
1608
1613
} // is_kbd_char_available
1609
1614
1610
1615
bool cpm_read_console ( char * buf, size_t bufsize, uint8_t & out_len )
Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ extern void x80_invoke_out( uint8_t x ); // called for the out instruction
260
260
extern void x80_invoke_in ( uint8_t x ); // called for the in instruction
261
261
extern void x80_invoke_halt ( void ); // called when the 8080 hlt (on Z80 halt) instruction is executed
262
262
extern uint8_t x80_invoke_hook ( void ); // called with the OPCODE_HOOK instruction is executed
263
+ extern void x80_hard_exit ( const char * pcerror, uint8_t arg1, uint8_t arg2 ); // called on failures to exit the app
263
264
264
265
// emulator API
265
266
@@ -268,4 +269,3 @@ extern void x80_trace_instructions( bool trace ); // enable/disable
268
269
extern void x80_end_emulation (); // stop the emulation
269
270
extern void x80_trace_state ( void ); // trace the registers
270
271
extern const char * x80_render_operation ( uint16_t address ); // return a string with the disassembled instruction at address
271
- extern void x80_hard_exit ( const char * pcerror, uint8_t arg1, uint8_t arg2 ); // called on failures to exit the app
You can’t perform that action at this time.
0 commit comments