Post Reply 
Hand Held Products 71M/M eprom carrier question
09-17-2020, 12:16 PM (This post was last modified: 09-19-2020 08:16 AM by coitboy2000.)
Post: #27
RE: Hand Held Products 71M/M eprom carrier question
For anyone einterested, after some experimentation the code below works for me.

Code:

using System;
using System.IO;

namespace ConsoleApp4
{
    class Program
    {
        const string fileName = @"C:\Users\user\Desktop\HP-71B\Eprom Image Files\math2b5.bin";
        const string fileName2 = @"C:\Users\user\Desktop\HP-71B\Eprom Image Files\eprom2.bin";
        static void Main(string[] args)
        {
            byte[] buff = File.ReadAllBytes(fileName);
            var len = (int)buff.Length;
            using (BinaryWriter writer = new BinaryWriter(File.Open(fileName2, FileMode.Create)))
            {
                for (int ix = 0; ix < len; ix ++)
                {   
                    buff[ix] = (byte)(~buff[ix]);
                    int value = buff[ix];
                    value = value ^ 1;
                }
                writer.Write(buff);
            }
        }
    }
}
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Hand Held Products 71M/M eprom carrier question - coitboy2000 - 09-17-2020 12:16 PM



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