latest version of musashi engine includes floating point emulation (plus a few patches to add in missing opcodes needed by ack - see tags JFF & TBB) added a few missing linux syscalls in sim.c pascal now runs pretty well quick test with modula2 passes c gets the floating point numbers wrong, so more work needed here other languages untested plat/linux68k/emu/build.lua is probably not quite right - the softfloat directory is compiled in the wrong place
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C
		
	
	
		
			Executable file
		
	
	
	
	
| #include "osd.h"
 | |
| 
 | |
| /* OS-dependant code to get a character from the user.
 | |
|  * This function must not block, and must either return an ASCII code or -1.
 | |
|  */
 | |
| #include <conio.h>
 | |
| int osd_get_char(void)
 | |
| {
 | |
| 	int ch = -1;
 | |
| 	if(kbhit())
 | |
| 	{
 | |
| 		while(kbhit())
 | |
| 			ch = getch();
 | |
| 	}
 | |
| 	return ch;
 | |
| }
 |