DM42 program sneak preview

This is where developers can exchange ideas and ask questions relevant to the DM42 firmware.

Please note that Swiss Micros staff are unable to provide answers here as a general rule. This is intended as a community-driven forum.
User avatar
rudi
Posts: 413
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

DM42 program sneak preview

Post by rudi »

/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: DM42 program sneak preview

Post by Walter »

Looks like fun.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
User avatar
rudi
Posts: 413
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: DM42 program sneak preview

Post by rudi »

It's been fun implementing - that's my main motivation for implementing it, simply having fun programming ;-)

It's not easy to make animations on a DM42, I've been trying a sprite contept, programmers my age and above, will probably remember that from the 80'es... Using flags 34 and 35 can make AGRAPH operations XOR and is usefull...

However, I would really like to be able to use the double buffering technique, where you render in an off-screen bitmap, and show that on the screen, once all rendering is done. But unfortunately, this is not possible on a DM42 (Free42), afaik.

Well - the animation part is not the main functionality of the program I am making, just a side effect because the DM42 is so dang fast ;-)
I actually had to call a pause loop between each frame, or the screen starts flickering. I guess that's because I try to update the screen faster that it's maximum physical framerate.

Edit:
Think I have to look at the RefLCD variable.
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
dlachieze
Posts: 613
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: DM42 program sneak preview

Post by dlachieze »

rudi wrote:
Thu Mar 23, 2023 12:20 pm
Well - the animation part is not the main functionality of the program I am making, just a side effect because the DM42 is so dang fast ;-)
I actually had to call a pause loop between each frame, or the screen starts flickering. I guess that's because I try to update the screen faster that it's maximum physical framerate.
Very nice animation !
I’m curious to compare the animation speed on a WP43/C47…
DM42: 00425 - DM41X: β00066 - WP43: 00042
User avatar
rudi
Posts: 413
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: DM42 program sneak preview

Post by rudi »

dlachieze wrote:
Thu Mar 23, 2023 1:32 pm
...
I’m curious to compare the animation speed on a WP43/C47…
So am I, but I am not able to load the program into my C47, and too lazy to type the 484 code lines manually ;-)

So for now, I'm back to basics, DM42...
(The bezel wasn't easy to peal off, the spray adhesive did a good job and my C43 bezel in thick paper and varnished, was sitting very smoothly and flat on the DM42 bezel)
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
User avatar
rudi
Posts: 413
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: DM42 program sneak preview

Post by rudi »

How does one make a string that begins with the append character├ ?

For example "├IIIA" for AGRAPH to draw a 5x7 pixels E letter.

Code: Select all


XXXXX
X
X
XXXX
X
X
XXXXX

/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
dlachieze
Posts: 613
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: DM42 program sneak preview

Post by dlachieze »

In program mode: Shift ALPHA ENTER

Sorry I misunderstood your question, to include the append character inside a string such as "|-IIIA" use 127 XTOA :

Code: Select all

CLA
127
XTOA
|-"IIIA"
will create the string "|-IIIA".
DM42: 00425 - DM41X: β00066 - WP43: 00042
User avatar
pauli
Posts: 251
Joined: Tue May 02, 2017 10:11 am
Location: Australia

Re: DM42 program sneak preview

Post by pauli »

An orrery or a jovalobe?

I play around making mechanical ones like these :)
User avatar
rudi
Posts: 413
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: DM42 program sneak preview

Post by rudi »

dlachieze wrote:
Tue Mar 28, 2023 9:12 pm
In program mode: Shift ALPHA ENTER

Sorry I misunderstood your question, to include the append character inside a string such as "|-IIIA" use 127 XTOA :

Code: Select all

CLA
127
XTOA
|-"IIIA"
will create the string "|-IIIA".
That works, thanks!
pauli wrote:
Wed Mar 29, 2023 1:54 am
An orrery or a jovalobe?

I play around making mechanical ones like these :)
Jovian it is ;-)
Progressing slowly, work and family gets in the way all the time, but once in a while, I get some time to work on it...
20230329-08373718.bmp
20230329-08373718.bmp (12.31 KiB) Viewed 2006 times
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
User avatar
pauli
Posts: 251
Joined: Tue May 02, 2017 10:11 am
Location: Australia

Re: DM42 program sneak preview

Post by pauli »

I suspected it was Jupiter.

I've got a small non-powered one built currently:
Jovalobe.jpg
Jovalobe.jpg (96.07 KiB) Viewed 1985 times
Post Reply