Post Reply 
Emu48 Javascript ?
01-21-2018, 10:29 PM
Post: #21
RE: Emu48 Javascript ?
(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)

Software Failure: Guru Meditation

--
Antonio
IU2KIY
Find all posts by this user
Quote this message in a reply
01-22-2018, 11:43 AM
Post: #22
RE: Emu48 Javascript ?
(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.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-22-2018, 11:59 AM
Post: #23
RE: Emu48 Javascript ?
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.

Software Failure: Guru Meditation

--
Antonio
IU2KIY
Find all posts by this user
Quote this message in a reply
01-22-2018, 01:44 PM
Post: #24
RE: Emu48 Javascript ?
Yes indeed, I'm updating Android Studio SDK then I will check out :
https://github.com/shagr4th/droid48/blob.../jni/lcd.c
Visit this user's website Find all posts by this user
Quote this message in a reply
01-27-2018, 12:21 AM (This post was last modified: 01-31-2018 11:49 AM by sunhp.)
Post: #25
RE: Emu48 Javascript ?
- 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 !
Visit this user's website Find all posts by this user
Quote this message in a reply
01-28-2018, 12:13 AM
Post: #26
RE: Emu48 Javascript ?
I'm following Smile

Software Failure: Guru Meditation

--
Antonio
IU2KIY
Find all posts by this user
Quote this message in a reply
01-28-2018, 12:24 AM
Post: #27
RE: Emu48 Javascript ?
(01-28-2018 12:13 AM)TheKaneB Wrote:  I'm following Smile

Yes!

[Image: glHP48_2.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
01-30-2018, 11:41 PM (This post was last modified: 01-31-2018 11:35 AM by sunhp.)
Post: #28
RE: Emu48 Javascript ?
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
Visit this user's website Find all posts by this user
Quote this message in a reply
01-31-2018, 01:50 AM
Post: #29
RE: Emu48 Javascript ?
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
Find all posts by this user
Quote this message in a reply
01-31-2018, 09:52 AM (This post was last modified: 01-31-2018 06:46 PM by sunhp.)
Post: #30
RE: Emu48 Javascript ?
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]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2018, 06:10 PM
Post: #31
RE: Emu48 Javascript ?
Keyboard (SDL) done and project ready for Emscripten

[Image: js48_1.png]
[Image: js48_2.png]
[Image: js48_3.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2018, 10:45 PM
Post: #32
RE: Emu48 Javascript ?
Almost there!

Software Failure: Guru Meditation

--
Antonio
IU2KIY
Find all posts by this user
Quote this message in a reply
02-02-2018, 03:52 PM (This post was last modified: 02-02-2018 11:42 PM by sunhp.)
Post: #33
RE: Emu48 Javascript ?
Fast HP48 emulator in javascript done : http://www.hpmuseum.org/forum/thread-10082.html

[Image: jsemu48fast.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-02-2018, 05:46 PM
Post: #34
RE: Emu48 Javascript ?
Well done!
I’m glad you did it! Smile

Software Failure: Guru Meditation

--
Antonio
IU2KIY
Find all posts by this user
Quote this message in a reply
02-02-2018, 06:20 PM
Post: #35
RE: Emu48 Javascript ?
(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.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-02-2018, 08:54 PM
Post: #36
RE: Emu48 Javascript ?
(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!

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
02-02-2018, 09:59 PM
Post: #37
RE: Emu48 Javascript ?
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)

Regards, BrickViking
HP-50g |Casio fx-9750G+ |Casio fx-9750GII (SH4a)
Visit this user's website Find all posts by this user
Quote this message in a reply
02-03-2018, 04:44 PM (This post was last modified: 02-03-2018 05:03 PM by sunhp.)
Post: #38
RE: Emu48 Javascript ?
@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]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-04-2018, 02:22 PM
Post: #39
RE: Emu48 Javascript ?
+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
Find all posts by this user
Quote this message in a reply
02-04-2018, 03:33 PM
Post: #40
RE: Emu48 Javascript ?
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]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 9 Guest(s)