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.

Checkpoint 7.5.3.

You have attempted of activities on this page.