The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

HP28S screen noise generator
Message #1 Posted by Keith Midson on 18 Feb 2012, 6:53 p.m.

Hi all, following on from THIS thread, here is the HP28S program that produces a hypnotising screen display:
<< IMG 'TEST' STO 1 738 START
TEST 548 548 SUB TEST 1 547 SUB +
TEST XOR 'TEST' STO TEST ->LCD NEXT >>

You need to store a screen dump into the file 'IMG' first. Have fun! Will look like THIS , but the moving image is much more impressive than you can do justice with in a still picture. Cheers, Keith

      
Re: HP28S screen noise generator
Message #2 Posted by Gerson W. Barbosa on 18 Feb 2012, 6:58 p.m.,
in response to message #1 by Keith Midson

Great for "I'd gladly lend it to you, but it's gone wacky!"

      
Re: HP28S screen noise generator
Message #3 Posted by Namir on 18 Feb 2012, 7:51 p.m.,
in response to message #1 by Keith Midson

Keith,

Stop abusing these poor machines!!!!

:-)

Namir

            
Re: HP28S screen noise generator
Message #4 Posted by Keith Midson on 18 Feb 2012, 8:09 p.m.,
in response to message #3 by Namir

they love it! ;-)

      
Re: HP28S screen noise generator
Message #5 Posted by Cristian Arezzini on 19 Feb 2012, 2:16 a.m.,
in response to message #1 by Keith Midson

Thank you Keith! :)

Cristian

      
Re: HP28S screen noise generator
Message #6 Posted by C.Ret on 19 Feb 2012, 4:09 a.m.,
in response to message #1 by Keith Midson

Many Thanks for remember me bitmap screen plays on my old HP-28S.

If my memory don't abuse me, this code may not run on HP-28C due to the use of the XOR on strings. XOR function may not handel binary or screen strings on HP28C; only integers and regular binaries.

In your code, I still not understand why you loop 738 times ? Is there samething I miss interpret, is ther any effect I miss ?


  IMG 'TEST' STO
  1 738 START
           TEST 548 548 SUB
           TEST   1 547 SUB +
           TEST XOR
          'TEST' STO
           TEST ->LCD
  NEXT

(what a bunch as TEST ?)

Please consider my translation of your code without any use of any global variable. My version directly use actual screen apparence and loops until one key is pressed.


  DO
     LCD->
     DUP  548 548 SUB
     OVER   1 547 SUB + XOR
     ->LCD
  UNTIL
     KEY
  END
  CLMF

Great effet HP28S feature, isn't it ?

May same one bring down a version for HP48/49/50 ?

Edited: 19 Feb 2012, 4:10 a.m.

            
Re: HP28S screen noise generator
Message #7 Posted by Keith Midson on 19 Feb 2012, 4:42 a.m.,
in response to message #6 by C.Ret

That is a much better version of the program - thank you! I have long lost my original code from 1990, which was much neater - I wrote this in a hurry to see if I could replicate the effect all these years later.
I think I used the word 'test' as it was me 'testing' to see if I could get it to work (after not using RPL for more than a decade). As for the importance of 738 ... I have no idea!!
I would love to see a comparable program on the 48 - when I upgraded to the 48 I was very disappointed that the screen graphics were handled so differently (and never actually took the time to learn).

            
Re: HP28S screen noise generator
Message #8 Posted by Gilles Carpentier on 19 Feb 2012, 5:35 p.m.,
in response to message #6 by C.Ret

"May same one bring down a version for HP48/49/50 ?"

Hello C.Ret... I don't understand the prog HP28 here... On the 48/50 bitmaps are special object and not strings...

Some ideas on 50G :


  DO
    LCD-> DUP {#0 #4} {#130 #79} SUB {#0 #0} SWAP GXOR ->LCD
  UNTIL
     KEY
  END

or

DO LCD-> NEG ->LCD UNTIL KEY END


[ Return to Index | Top of Index ]

Go back to the main exhibit hall