Assembly Language Programs and Outputs, Assignments of Computer Science

The assembly language code and outputs for four different programs. Each program consists of a series of instructions that are executed by the computer's processor. The accumulator register is used to store intermediate results, and the output of each program is printed to the console.

Typology: Assignments

Pre 2010

Uploaded on 09/17/2009

koofers-user-7dy-1
koofers-user-7dy-1 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1. Simple Computer
Program 1
61: 24 62: 18 63: 6 ACC: 24
Prints
6
18
24
Program 2
62: 33 63: 8 ACC: 8
Prints
33
41
8
Program 3
61: 6 62: 8 63: 16 ACC: 16
Prints
16
Program 4
Trial 1 -> Prints Nothing (Negative accumulator)
Trial 2 -> Prints Nothing (Zero accumulator)
Trial 3 -> Prints 120 (Positive accumulator)

Partial preview of the text

Download Assembly Language Programs and Outputs and more Assignments Computer Science in PDF only on Docsity!

  1. Simple Computer Program 1 61: 24 62: 18 63: 6 ACC: 24 Prints 6 18 24 Program 2 62: 33 63: 8 ACC: 8 Prints 33 41 8 Program 3 61: 6 62: 8 63: 16 ACC: 16 Prints 16 Program 4 Trial 1 -> Prints Nothing (Negative accumulator) Trial 2 -> Prints Nothing (Zero accumulator) Trial 3 -> Prints 120 (Positive accumulator)