HP Forums
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)

Pages: 1 2 3


RE: Emu48 Javascript ? - TheKaneB - 01-21-2018 10:29 PM

(01-21-2018 09:23 PM)sunhp Wrote:  Droid48 Android is open sources : https://github.com/shagr4th/droid48
Let's check that ;-)

It looks like it's a fork of an old emulator. I've found this copyright notice in one of the C sources (look under the jni folder, it's an hybrid C / Java app)

Quote:This file is part of x48, an emulator of the HP-48sx Calculator.
* Copyright (C) 1994 Eddie C. Dost (ecd@dressler.de)



RE: Emu48 Javascript ? - sunhp - 01-22-2018 11:43 AM

(01-21-2018 10:29 PM)TheKaneB Wrote:  
(01-21-2018 09:23 PM)sunhp Wrote:  Droid48 Android is open sources : https://github.com/shagr4th/droid48
Let's check that ;-)

It looks like it's a fork of an old emulator. I've found this copyright notice in one of the C sources (look under the jni folder, it's an hybrid C / Java app)

Quote:This file is part of x48, an emulator of the HP-48sx Calculator.
* Copyright (C) 1994 Eddie C. Dost (ecd@dressler.de)

Yes that's weird indeed.


RE: Emu48 Javascript ? - TheKaneB - 01-22-2018 11:59 AM

By the way, this is VERY good!
Since the original C source has already been ported to JNI, it means that the old display code have been stripped out already, and instead there will be stub functions that connect to the JAVA environment for display and input.

Android hybrid apps require that the final display and other OS dependant stuff is done from the Java side, so everything must be transferred from the C / JNI environment before being presented to the user, the only exception being the OpenGL context, but I don't think this app uses openGL, it would be unnecessary for a simple 2D app like this.


RE: Emu48 Javascript ? - sunhp - 01-22-2018 01:44 PM

Yes indeed, I'm updating Android Studio SDK then I will check out :
https://github.com/shagr4th/droid48/blob/master/app/src/main/jni/lcd.c


RE: Emu48 Javascript ? - sunhp - 01-27-2018 12:21 AM

- Droid48 gni (NDK stuff) ... painful .. Dead End.
- Emu48 Core mixed with Win32 MFC and other Files and Timers ... painful .. Dead End.
- HP_EMU (C code) .. I did remove the GUI/Display Allegro stuff in 5 minutes. Another 5 minutes and I got Rom file loading done core emu code.
It needs a quick Unix/C timer and maybe OpenGL pixel based LCD screen and we will be up for Emscriptening the whole project.

I wish I could build that kind of online HP48 emulator :

Doug's Diamond --> upload a rom (click on the GROB) and enjoy it
HP mad's Arkanoiid --> upload a rom (click on the GROB) and enjoy it
My list of games too http://jadegame.com/games/hp48/

Let's do it !


RE: Emu48 Javascript ? - TheKaneB - 01-28-2018 12:13 AM

I'm following Smile


RE: Emu48 Javascript ? - sunhp - 01-28-2018 12:24 AM

(01-28-2018 12:13 AM)TheKaneB Wrote:  I'm following Smile

Yes!

[Image: glHP48_2.png]


RE: Emu48 Javascript ? - sunhp - 01-30-2018 11:41 PM

HP48 emulator written by Daniel Nilsson in C and ported to SDL by myself :

- Emulation engine at full CPU Speed (C) Done
- Timers (SDL) Done
- Display (SDL) Hardware accelerated Done
- Greyscales without flickering TBD
- Keyboard Display (SDL+SDL_TFF) Almost
- Keyboard Detection TBD
- FILE Open/Save TBD
- EMScripten asm.js conversion TBD


RE: Emu48 Javascript ? - compsystems - 01-31-2018 01:50 AM

The idea is to make an hp48 emulator for online execution?, if so, this is a great big project, I have made many masks for emu48, I could collaborate in the creation of BMP and KML

http://www.hpmuseum.org/forum/thread-8031.html


RE: Emu48 Javascript ? - sunhp - 01-31-2018 09:52 AM

I wish Emscripten will be able to convert this emulator's C language to Fast Javascript we will see.
Thank you very much for your help on the keyboard design but this is not a KML based script though.. Actually it's only buttons drawn in SDL ( OpenGL ) and simple Mouse detection / CPU interruption. My goal is to build the simplest HP48 emulator code base then doing a javascript port and why not thinking about a version for HP Prime Calculators after that, May the Saturn power be live for ever and all around Internet !

[Image: jsemu48keyboard.png]


RE: Emu48 Javascript ? - sunhp - 02-01-2018 06:10 PM

Keyboard (SDL) done and project ready for Emscripten

[Image: js48_1.png]
[Image: js48_2.png]
[Image: js48_3.png]


RE: Emu48 Javascript ? - TheKaneB - 02-01-2018 10:45 PM

Almost there!


RE: Emu48 Javascript ? - sunhp - 02-02-2018 03:52 PM

Fast HP48 emulator in javascript done : http://www.hpmuseum.org/forum/thread-10082.html

[Image: jsemu48fast.png]


RE: Emu48 Javascript ? - TheKaneB - 02-02-2018 05:46 PM

Well done!
I’m glad you did it! Smile


RE: Emu48 Javascript ? - sunhp - 02-02-2018 06:20 PM

(02-02-2018 05:46 PM)TheKaneB Wrote:  Well done!
I’m glad you did it! Smile

Well advised ty ;-)

Lot of improvements are possible but at least we have a cool starting point.


RE: Emu48 Javascript ? - pier4r - 02-02-2018 08:54 PM

(01-18-2018 11:43 PM)sunhp Wrote:  And also Quake3 : http://www.quakejs.com/
I tried it and it's so incredible.

Holy moly!

and nice project!


RE: Emu48 Javascript ? - brickviking - 02-02-2018 09:59 PM

I'm impressed, dude! Though it's not hard to impress me, this is definitely one of the better things I've seen implemented entirely in a browser. About the only thing missing for me would have been having the keymap tiles get replaced with other keycaps when using either of the shift keys or the alpha key. Other than that, I'd have to have a real 48GX/GX beside me or the manual for one open at a picture of the keyboards.

(Post 164)


RE: Emu48 Javascript ? - sunhp - 02-03-2018 04:44 PM

@brickviking : thanks!

@TheKaneB : When you have time, fork this : https://github.com/brizzly/jsEmu48
Then try adding byte array display + HMTL5 keyboard canvas to build something faster and very cool
Grey-scales graphics along with Load/Save may be quickly added as well.

jsEmu48 : http://jadegame.com/jsemu48/

[Image: zeldahp.png]


RE: Emu48 Javascript ? - compsystems - 02-04-2018 02:22 PM

+10

Fabulous, Hp48 now available from anywhere in the world =)

There is a constant flicker of the LCD, I think this could improve as the source code evolves or improves. I think they should add more enthusiasts to have a more powerful hp48-cloud


RE: Emu48 Javascript ? - Eric Rechlin - 02-04-2018 03:33 PM

Very impressive. I'm surprised to see performance is at par with the actual calculator, even on my several-year-old computer!

Support for showing annunciators and using the keyboard would be nice, too, if possible.

Also, feel free to use the emulator image that I made for Emu48, if you want something a bit sharper:

[Image: b2zoFIa.png]