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:

:1000000011E0A0E0B1E0E4E2F0E002C005900D9262
:10001000A231B107D9F78091000180930C0190E0E3
:0400200080E00895DF
:100024007465737420737472696E6700010203044B
:020034000500C5
:00000001FF

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.