Android: 15C Scientific Calculator



#6

The first and only 15C emulator on Android is from Vicinno Soft. They also have a 12C emulator on Android. With all the talk of the GSB -I bug, I figured it would be a good test to try to try on the Android app. I wrote the following test program:

001    42,21,11      LBL A
002 0 0
003 43,30, 0 TEST 0
004 43 32 RTN
005 3 3
006 16 CHS
007 44 25 STO[I]
008 32 25 GSB[I]
009 31 R/S

edit: align columns properly.

On my classic 15C in FIX 4, I run the program like this:

[f][A]    - see "-3.0000" 
[g][P/R] - see "000 -"

We load zero in line 2, then test for != 0. This is false, so we skip the return instruction. Lines 005 through 007 load -3 into [I]. After line 008, a branch is taken to line 3, which tests for !=0. This time the test is true, and the calculator executes a RTN. In line with the observed bug, this transfers execution to the line immediately after line 003, the GSB-I target. In other words, the RTN is executed again. When we switch to program mode, we see the PC is at line 000, just as if we had executed RTN without a pending GSB call.

I get identical results on the Android app. So this program is an emulator, rather than a simulator.


Edited: 21 Sept 2011, 5:26 p.m. after one or more responses were posted


#7

*ahem* This is a return stack pop, right? Might be useful after all.


#8

I'm nested in two levels of self-reply calls. :)

001    42,21,11      LBL A
002 32 1 GSB 1
003 31
004 42,21, 2 LBL 2
005 0 0
006 43,30, 0 TEST 0
007 43 32 RTN
008 6 6
009 16 CHS
010 44 25 STO[I]
011 32 25 GSB[I]
012 42,21, 1 LBL 1
013 22 2 GTO 2

[f][A] then [g][P/R] and see "004 42,21, 2 ".

Single step reveals that this works:

001    42,21,11      LBL A
002 32 1 GSB 1
012 42,21, 1 LBL 1
013 22 2 GTO 2
004 42,21, 2 LBL 2
005 0 0
006 43,30, 0 TEST 0
008 6 6
009 16 CHS
010 44 25 STO[I]
011 32 25 GSB[I]
007 43,30, 0 TEST 0 Incorrect line number - really line 6.)
008 43 32 RTN Really line 7 and it returns to one past the GSB target
instead of one past where GSB was called
007 43 32 RTN Right line#
003 31 R/S Second RTN behaves correctly.

edit: change conclusion. It doesn't pop, it sizzles. :)

Conclusion: You only ever need one RTN instruction in a program! GSB [I] to the line before the RTN. The RTN will execute twice, and you will end up at the proper place for the GSB pending when you called GSB[I].

Bleh - trading RTNs for GSBs. Bet it's a net loss in memory.

Edited: 21 Sept 2011, 7:20 p.m. after one or more responses were posted

#9

I'll be impressed when I see a decent HP emulator for the iPad. So far, the best one I've found is i41CX,and it's very cool since it also implements the keyboard overlays and plugin modules. The premium version also adds an emulator of the HP 82240B IR printer, complete with sound.

I'd love to find a good Voyager emulator that takes advantage of the iPad screen. The iPhone apps like this one let you enlarge the screen to fit the iPad, but the display is all pixelated. I don't like pixelated. :)


#10

I have three 15C emulators on my iPod. I haven't been using it much for the last year, so there may well be more than that in the app store.


Possibly Related Threads...
Thread Author Replies Views Last Post
  OT: Graphing calculator for Android ? Ivan Rancati 4 260 11-18-2013, 12:33 PM
Last Post: Alberto Candel
  Availability of scientific HPs Matt Agajanian 4 247 08-28-2013, 07:40 AM
Last Post: Eddie W. Shore
  JOT scientific calculator Richard Berler 4 296 08-21-2013, 05:25 PM
Last Post: Richard Ottosen (Denver, CO, USA)
  What About An iOS/Android HP-41 Barcode Reader App? Jake Schwartz 0 157 07-10-2013, 10:39 AM
Last Post: Jake Schwartz
  Our 11C Scientific Calculator Android app is on launch sale, 0.99$ only John 1 191 06-22-2013, 01:38 PM
Last Post: Marcus von Cube, Germany
  Vicinno 11C Scientific Calculator app is on Android now John 0 160 06-14-2013, 02:28 PM
Last Post: John
  Great news - Vicinno's HP 15C Scientific Calculator iPhone app is FREE now John 21 971 06-07-2013, 05:49 AM
Last Post: Mike (Stgt)
  HP-67 Emulator for Android Tablets MikeO 7 352 04-17-2013, 09:36 PM
Last Post: MikeO
  HP 50G emulation for android Olivier De Smet 3 259 04-14-2013, 12:01 PM
Last Post: CompSystems
  HP35s scientific calculator GREG W THOMAS 4 284 03-22-2013, 06:49 AM
Last Post: Thomas Radtke

Forum Jump: