Skip to main content

Section 7.5 The Little Computer - Assembly

The Little Computer supports an assembly language that can make it easier for humans to write and read programs. In addition to replacing numeric commands like “1XX” or “902” with abbreviated English commands like “ADD” or “OUT”, Little Computer assembly allows us to think at a slightly more abstract level. Instead of remembering specific memory addresses so we can say “add the value from location 10”, we can name memory locations and then say things like “add X”. This video introduces it:
You can try the assembler here: Launch the Little Computer assembler (Control or Command-click to open in a new window)
To test out a program after assembling it, use the Little Computer: Launch the Little Computer

Checkpoint 7.5.1.

What advantages do symbolic names provide in Little Computer assembly? Select all that apply.
  • They let a programmer refer to a meaningful name instead of remembering a specific memory address.
  • They allow references to remain correct when the program’s layout or size changes.
  • They let the processor skip the process of executing instructions.
  • They make memory locations store more than one value at a time.
  • They remove the need for instructions to be represented in machine code.

Checkpoint 7.5.2.

After a Little Computer assembly program is assembled, how does the computer run it?
  • It executes the corresponding machine instructions.
  • It reads the assembly words as ordinary English sentences.
  • It sends the program directly to a high-level language compiler.
  • It runs only the labels and skips the instructions.
You have attempted of activities on this page.