

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Simple as possible computer for computer engineering students This helpful in computer lab
Typology: Summaries
1 / 2
This page cannot be seen from the preview
Don't miss anything!


The SAP computer is a minimalist computer architecture designed for educational purposes. It has a very simple architecture, consisting of the following components: Ø Program counter (PC) Ø Instruction register (IR) Ø Accumulator (A) Ø Memory (MEM) Ø Control unit (CU) Ø Arithmetic logic unit (ALU) Ø Input/output (I/O) unit
The SAP computer has a very simple instruction set, consisting of the following instructions: Ø LOAD (LD): Loads a value from memory into the accumulator. Ø STORE (ST) : Stores the value in the accumulator to memory. Ø ADD (ADD ): Adds the value in memory to the accumulator. Ø SUB (SUB ): Subtracts the value in memory from the accumulator. Ø JMP (JMP) : Jumps to the instruction at the specified address.
HLT (HLT ): Halts the computer.
The SAP computer operates on a fetch-decode-execute cycle. In the fetch cycle, the PC loads the address of the next instruction to be executed. In the decode cycle, the CU decodes the instruction and determines what operation to perform. In the execute cycle, the ALU performs the operation and the result is stored in the accumulator or memory.
To program the SAP computer, you must write a program in SAP assembly language. An SAP assembly language program is a sequence of instructions that the SAP computer can understand. To assemble an SAP assembly language program, you need an SAP assembler.
The SAP computer is a simple but powerful tool for learning the basic concepts of computer operation. By understanding the SAP computer architecture and instruction set, you can learn how to write simple SAP programs.