ArticleslgStudy

computer science

Simplified Instructional Computer

Simplified Instructional Computer is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Simplified Instructional Computer rather than just read about it. In short: The Simplified Instructional Computer (abbreviated SIC) is a hypothetical computer system introduced in System Software: An Introduction to Systems Programming, by Leland Beck. Due to the fact that most modern microprocessors include subtle, complex functions for the purposes of efficiency, it can be difficult to learn systems programming using a real-world system.

Key takeaways

  • Simplified Instructional Computer belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Simplified Instructional Computer to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Simplified Instructional Computer from memory before moving on to harder problems.

Reference excerpt

The Simplified Instructional Computer (abbreviated SIC) is a hypothetical computer system introduced in System Software: An Introduction to Systems Programming, by Leland Beck. Due to the fact that most modern microprocessors include subtle, complex functions for the purposes of efficiency, it can be difficult to learn systems programming using a real-world system. The Simplified Instructional Computer solves this by abstracting away these complex behaviors in favor of an architecture that is clear and accessible for those wanting to learn systems programming.

SIC architecture The SIC machine has basic addressing, storing most memory addresses in hexadecimal integer format. Similar to most modern computing systems, the SIC architecture stores all data in binary and uses the two's complement to represent negative values at the machine level. Memory storage in SIC consists of 8-bit bytes, and all memory addresses in SIC are byte addresses. Any three consecutive bytes form a 24-bit 'word' value, addressed by the location of the lowest numbered byte in the word value. Numeric values are stored as word values, and character values use the 8-bit ASCII system. The SIC machine does not support floating-point hardware and has at most 32,768 bytes of memory. There is also a more complicated machine built on top of SIC called the Simplified Instruction Computer with Extra Equipment (SIC/XE). The XE expansion of SIC adds a 48-bit floating point data type, an additional memory addressing mode, and extra memory (1 megabyte instead of 32,768 bytes) to the original machine. All SIC assembly code is upwards compatible with SIC/XE. SIC machines have several registers, each 24 bits long and having both a numeric and character representation:

A (0): Used for basic arithmetic operations; known as the accumulator register. X (1): Stores and calculates addresses; known as the index register. L (2): Used for jumping to specific memory addresses and storing return addresses; known as the linkage register. PC (8): Contains the address of the next instruction to execute; known as the program counter register. SW (9): Contains a variety of information, such as carry or overflow flags; known as the status word register. In addition to the standard SIC registers, there are also four additional general-purpose registers specific to the SIC/XE machine:

B (3): Used for addressing; known as the base register. S (4): No special use, general purpose register. T (5): No special use, general purpose register. F (6): Floating point accumulator register (This register is 48-bits instead of 24). These five/nine registers allow the SIC or SIC/XE machine to perform most simple tasks in a customized assembly language. In the System Software book, this is used with a theoretical series of operation codes to aid in understanding the assemblers and linker-loaders required for the execution of assembly language code.

Addressing modes for SIC and SIC/XE The Simplified Instruction Computer has three instruction formats, and the Extra Equipment add-on includes a fourth. The instruction formats provide a model for memory and data management. Each format has a different representation in memory:

Format 1: Consists of 8 bits of allocated memory to store instructions. Format 2: Consists of 16 bits of allocated memory to store 8 bits of instructions and two 4-bits segments to store operands. Format 3: Consists of 6 bits to store an instruction, 6 bits of flag values, and 12 bits of displacement. Format 4: Only valid on SIC/XE machines, consists of the same elements as format 3, but instead of a 12-bit displacement, stores a 20-bit address. Both format 3 and format 4 have six-bit flag values in them, consisting of the following flag bits:

n: Indirect addressing flag i: Immediate addressing flag x: Indexed addressing flag b: Base address-relative flag p: Program counter-relative flag e: Format 4 instruction flag

Addressing modes for SIC/XE Rule 1: e = 0 : format 3 e = 1 : format 4 format 3: b = 1, p = 0 (base relative) b = 0, p = 1 (pc relative) b = 0, p = 0 (direct addressing) format 4: b = 0, p = 0 (direct addressing) x = 1 (index) i = 1, n = 0 (immediate) i = 0, n = 1 (indirect) i = 0, n = 0 (SIC) i = 1, n = 1 (SIC/XE for SIC compatible) Rule 2: i = 0, n =0 (SIC) b, p, e is part of the address.

SIC assembly syntax SIC uses a special assembly language with its own operation codes that hold the hex values needed to assemble and execute programs. A sample program is provided below to get an idea of what a SIC program might look like. In the code below, there are three columns. The first column represents a forwarded symbol that will store its location in memory. The second column denotes either a SIC instruction (opcode) or a constant value (BYTE or WORD). The third column takes the symbol value obtained by going through the first column and uses it to run the operation specified in the second column. This process creates an object code, and all the object codes are put into an object file to be run by the SIC machine.

COPY START 1000 FIRST STL RETADR CLOOP JSUB RDREC LDA LENGTH COMP ZERO JEQ ENDFIL JSUB WRREC J CLOOP ENDFIL LDA EOF STA BUFFER LDA THREE STA LENGTH JSUB WRREC LDL RETADR RSUB EOF BYTE C'EOF' THREE WORD 3 ZERO WORD 0 RETADR RESW 1 LENGTH RESW 1 BUFFER RESB 4096 . . SUBROUTINE TO READ RECORD INTO BUFFER . RDREC LDX ZERO LDA ZERO RLOOP TD INPUT JEQ RLOOP RD INPUT COMP ZERO JEQ EXIT STCH BUFFER,X TIX MAXLEN JLT RLOOP EXIT STX LENGTH RSUB INPUT BYTE X'F1' MAXLEN WORD 4096 . . SUBROUTINE TO WRITE RECORD FROM BUFFER . WRREC LDX ZERO WLOOP TD OUTPUT JEQ WLOOP LDCH BUFFER,X WD OUTPUT TIX LENGTH JLT WLOOP RSUB OUTPUT BYTE X'06' END FIRST

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Simplified Instructional Computer

Start with the simplest possible case. Write down what Simplified Instructional Computer claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Simplified Instructional Computer before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Simplified Instructional Computer ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Simplified Instructional Computer

In research
Simplified Instructional Computer appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Simplified Instructional Computer in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Simplified Instructional Computer is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer science education, Educational abstract machines, so understanding it makes those chapters shorter.
In everyday life
Look for Simplified Instructional Computer outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Simplified Instructional Computer” →

How to study Simplified Instructional Computer in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Simplified Instructional Computer means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Simplified Instructional Computer out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Simplified Instructional Computer in simple terms?

The Simplified Instructional Computer (abbreviated SIC) is a hypothetical computer system introduced in System Software: An Introduction to Systems Programming, by Leland Beck. Due to the fact that most modern microprocessors include subtle, complex functions for the purposes of efficiency, it can…

Why does Simplified Instructional Computer matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Simplified Instructional Computer?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Simplified Instructional Computer.

Tags

  • Computer science education
  • Educational abstract machines

Keep exploring