Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 1
    Our boxes don't have AX, BX, CX & DX, either--assembly languages are permitted symbolic translation. I do agree that the high level functions most certainly aren't assembly but note that what he listed didn't include them. While I think it's unlikely it really was an assembly language (everything would have to be of fixed length for the addressing mode to work) none of the commands listed are beyond what assembler on a PC has. Commented Jul 13, 2012 at 1:46
  • 2
    "if X < 0 then go to program step ##" is a simple BMI (branch if minus) assembly instruction. Commented Jul 13, 2012 at 7:36
  • 1
    @mouviciel And even if the platform doesn't directly support something like the BMI example, IF ... THEN ... are generally read as two instructions: first a comparison (x < 0 in this case), then an action based on the result of that comparison (most likely a jump when working in assembly language). In Intel 8086, something like (assuming x is in AX) CMP AX, 0 JNL After_IfThen_Block. (JNL being Jump if Not Less; in a higher-level language, this would read as something like if not (x < 0) then goto After_IfThen_Block, which is the same as if (x >= 0) then {code until there}.) Commented Jul 13, 2012 at 8:43
  • 1
    ПРГ (PRG - programming) is just a meta key to switch to programming mode, not some function. Commented Jul 13, 2012 at 12:27
  • 1
    @mouviciel: I'm skeptical that "if X < 0 then go to program step ##" is actually implemented as a single hardware CPU instruction. I speculate that a program entered on the calculator is not stored as a sequence of CPU instructions; rather, it's stored as a sequence of higher-level instructions that are interpreted by a firmware program. I've never worked with this particular calculator, but I have used the HP-48; the user-visible instruction set is very different from that of the Saturn CPU that it uses. Commented Jul 13, 2012 at 18:06