Lab4: Adding a Memory Loader

Once you get your memory units running, you need to load data into it. We will use the Intel HEX file format to set this up. The notes cover how to read files in this format.

Eventually, we will use the Arduino boards to generate real code to work with. The tools we will use will generate our HEX files. For now, here is an example of a HEX file you can use for testing:


Your Job

Add a new method to your memory class named load. This method should take a single parameter, a string witht he name of the hex file to load. You will need to test this new method to make sure it works. The catch.hpp tool can do that. SImple rrad the file, and check that you get data loaded into your memory unit correctly.