Module file

Source
Expand description

file reading : The first 16 bits of the program file specify the address in memory where the program should start. This address is called the origin. It must be read first, after which the rest of the data can be read from the file into memory starting at the origin address.

Functionsยง

read_file
read_file fn reads a file into the LC-3 Memory. LC-3 programs are big-endian, but most of the modern computers we use are little endian.