Emu48 Javascript ? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: Emu48 Javascript ? (/thread-9952.html) |
RE: Emu48 Javascript ? - sunhp - 02-04-2018 08:07 PM (02-04-2018 03:33 PM)Eric Rechlin Wrote: Very impressive. I'm surprised to see performance is at par with the actual calculator, even on my several-year-old computer! Thank you Eric I appreciate this ! I put sources on Github to pass the torch and I really think it should be very easy to build better versions , btw my main loop is so horrible : while( 1 ) { #if emscripten currentTime_emu = currentTime; do { emulator_run(); currentTime_emu = SDL_GetTicks() - currentTime; } while (currentTime_emu < 2); #else emulator_run(); #endif if (currentTime > lastTime_timer2 + delay_timer2) { lastTime_timer2 = currentTime; true_speed_proc(); } if (currentTime > lastTime_timer1 + delay_timer1) { lastTime_timer1 = currentTime; display_update(); } if (currentTime > lastTime_timer3 + delay_timer3) { lastTime_timer3 = currentTime; timer1_update(); } if (currentTime > lastTime_timer5 + delay_timer5) { lastTime_timer5 = currentTime; display_show(); } } RE: Emu48 Javascript ? - sunhp - 02-04-2018 08:10 PM (02-04-2018 02:22 PM)compsystems Wrote: +10 Thank you very much That is exactly the point ! RE: Emu48 Javascript ? - compsystems - 03-10-2018 03:27 PM a very useful feature for example to link it with other applications is to execute instructions or commands on the screen using the browser input line this performs the TI68k emulator Sample https://tiplanet.org/emu68k_fork/#tExpand(sin(x+y)) . |