Post Reply 
HP67 running
05-27-2016, 11:09 PM
Post: #3
RE: HP67 running
Hi Bernhard,

Thanks for the link. I was aware of some of the people that laid a lot of the ground work for opening up these calculators and I certainly do find their efforts impressive. Because of limited resources I have had to rely on some of those efforts at times for my own emulator and am grateful for their hard work, although I have tried as much as possible to be my own detective otherwise the journey of discovery is quite bland.

The read/write was simpler to create than I thought it was going to be as the calculator code does all the hard work, although as usual there was a quirk. All you need to do is make the program data available or be ready to receive it when required.

Basically...

each cardArray element = array [0..13] of Integer

[Write - to card]
CRC 260 - motor on
index = 0

CRC 1700
if write
cardArray[index] = crc_Reg_$90
inc index

CRC 360 - motor off
if write...
save cardArray to disk


[Read - from card]
Load program file into cardArray
index = 7 // why this is so escapes me ???

CRC 1700
if read
Place cardArray[index] into crc_Reg_$99
inc index

CRC 360 - motor off
if read...
nothing to do

Data files, merge etc work exactly the same

The only thing I can't explain is that on a [read] the first 7 data elements which are supposed to be zero's cause a problem with the calculator firmware and the read fails. If I set the array index to 7, bypassing these bytes, it all works.


I got a bit carried away as I found a sound recording of a real card reader and activates on CRC 260 (motor on) - although there is a menu item to leave it off.

cheers

Tony
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: 2 Guest(s)