Post Reply 
HP67 running
05-27-2016, 06:30 PM (This post was last modified: 05-27-2016 06:32 PM by PANAMATIK.)
Post: #2
RE: HP67 running
(05-27-2016 03:10 AM)teenix Wrote:  I stumbled around for awhile and couldn't get it all to work, but found the instruction [data register -> c 0] was the culprit. I expected it to behave like the other [c 1] to [c 15] codes but not so. .....

Hi Tony,

I can follow your joy of exploring the HP-67 code and finding the right solutions by analyzing the code very well, because I made very similar explorations. However the behavior of the [data register to c] instruction is well known since Eric Smith made the first HP emulator "nonpareil". He named the instruction register_to_c() 0 data_to_c(). You can download the source code of his emulator from http://nonpareil.brouhaha.com/.

My implementation of the register_to_c() instruction is very simple to read and is functionally identical to nonpareil.

Code:

void op_register_to_c ()
{
    if (opcode>>6) // opcode for register 1-15 ?
    {
        ram_addr &= 0xFFF0;
        ram_addr += (opcode >> 6);
    }
    register_to_c(ram_addr); // copy register from ram[ram_addr] to c
}

I'm impressed that your emulation also handles the card reader/writer. My ACT hardware is not capable to do so. Does it save and read the exact same magnetic card data format on disk?

Bernhard

That's one small step for a man - one giant leap for mankind.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP67 running - teenix - 05-27-2016, 03:10 AM
RE: HP67 running - PANAMATIK - 05-27-2016 06:30 PM
RE: HP67 running - teenix - 05-27-2016, 11:09 PM
RE: HP67 running - teenix - 05-29-2016, 05:17 AM
RE: HP67 running - PANAMATIK - 05-29-2016, 09:00 AM
RE: HP67 running - teenix - 05-29-2016, 10:37 AM
RE: HP67 running - PANAMATIK - 05-29-2016, 08:49 PM
RE: HP67 running - teenix - 05-31-2016, 10:33 AM
RE: HP67 running - PANAMATIK - 05-31-2016, 07:25 PM
RE: HP67 running - teenix - 05-31-2016, 12:55 PM
RE: HP67 running - Harald - 06-10-2016, 12:23 PM
RE: HP67 running - teenix - 06-12-2016, 02:14 AM



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