Preview

Machine Language

Good Essays
Open Document
Open Document
1139 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Machine Language
Harvard University

CS 101

Fall 2005, Shimon Schocken

Machine Language

Elements of Computing Systems

1

Machine Language (Ch. 4)

Where we are at:
Human Thought Abstract design abstract interface
Chapters 9, 12

H.L. Language & Operating Sys.

Compiler abstract interface
Chapters 10 - 11

Software hierarchy

Virtual Machine

VM Translator abstract interface
Chapters 7 - 8

Assembly Language
Assembler
Chapter 6

abstract interface

Machine Language

Computer Architecture abstract interface
Chapters 4 - 5

Hardware Platform

Gate Logic abstract interface
Chapters 1 - 3

Hardware hierarchy

Chips & Logic Gates

Electrical Engineering Physics

Elements of Computing Systems

2

Machine Language (Ch. 4)

Copyright © Shimon Schocken

Machine language is “the soul of the machine”
Duality: Machine language ( = instruction set) can be viewed as an abstract description of the hardware platform The hardware can be viewed as a means for realizing an abstract machine language Another duality: Binary version Symbolic version Loose definition: Machine language = an agreed upon formalism for manipulating a memory using a processor and a set of registers Varies across different hardware platforms.
Elements of Computing Systems 3 Machine Language (Ch. 4)

Binary and symbolic notation
1010 0011 0001 1001 1010 0011 0001 1001 ADD R3, R1, R9 ADD R3, R1, R9

Evolution: Physical coding Symbolic documentation Symbolic coding Requires a translator.
Jacquard loom (1801)

Ada Lovelace (1815-1852)

Elements of Computing Systems

4

Machine Language (Ch. 4)

Copyright © Shimon Schocken

Lecture plan

Machine languages at a glance The Hack machine language: Symbolic version Binary version Perspective.

Elements of Computing Systems

5

Machine Language (Ch. 4)

Arithmetic / logical operations
ADD R2,R1,R3 // R2 R1+R3 where R1,R2,R3 are registers ADD R2,R1,R3 // R2 R1+R3 where R1,R2,R3 are

You May Also Find These Documents Helpful

  • Powerful Essays

    CODE FOR THE ABOVE FRAGMENT addi $t6, $zero, 101 # the loop termination value add $t0, $zero, $zero # i = 0 addi $t2, $a0, 0 # ptr to current A[i] addi $t3, $a1, 0 # ptr to current B[i] loop: lw $t4, 0($t3) # load B[i] add $t4, $t4, $s0 # B[i] + c sw $t4, 0($t2) # store in A[i] addi $t0, $t0, 1 # i++ addi $t2, $t2, 4 # ptr to next A[i] addi $t3, $t3, 4 # ptr to next B[i] bne $t0, $t6, loop # if i < 101, goto loop IF ANY QUERIES REGARDING CODE…

    • 107 Words
    • 1 Page
    Powerful Essays
  • Satisfactory Essays

    cout << num1 << " + " << num2 << " = " << num1+num2;…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    = 1024 + 0 + 256 + 0 + 0 + 0 + 0 + 8 + 4 + 2 + 1…

    • 780 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Inch and Lt

    • 1077 Words
    • 5 Pages

    A: The machine code is the language which the computer hardware understands and executes. It is preferable to write programs in a high level language such as C ++ because it is much easier to understand and learn this machine language.…

    • 1077 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    | c. Rannual = (1 + R1)(1 + R2)(1 + R3)(1 + R4) - 1…

    • 24077 Words
    • 97 Pages
    Satisfactory Essays
  • Powerful Essays

    The following information will introduce general knowledge in basic programming concepts. It shall discuss basic types of computer programming languages as-well-as program development. There are three basic types of computer programming languages that will be discussed in a simple and easy to understand manner. We shall also describe the program development cycle and discuss why it is important to use a structured and organized process to create a computer programming language.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    Figuartive Language

    • 1739 Words
    • 7 Pages

    Grammardog was founded in 2001 by Mary Jane McKinney, a high school English teacher and dedicated grammarian. She and other experienced English teachers in both high school and college regard grammar and style as the key to unlocking the essence of an author. Their philosophy, that grammar and literature are best understood when learned together, led to the formation of Grammardog.com, a means of sharing knowledge about the structure and patterns of language unique to specific authors. These patterns are what make a great book a great book. The arduous task of analyzing works for grammar and style has yielded a unique product, guaranteed to enlighten the reader of literary classics. Grammardog’s strategy is to put the author’s words under the microscope. The result yields an increased appreciation of the art of writing and awareness of the importance and power of language. Grammardog.com L.L.C. P.O. Box 299 Christoval, Texas 76935 Phone: 325-896-2479 Fax: 325-896-2676 fifi@grammardog.com…

    • 1739 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Week 1 Homework

    • 843 Words
    • 5 Pages

    Machine code is the language which the computer hardware understands and executes. Instructions in a high-level language are closer to a natural language, such as English and therefore are easier to understand and learn than machine language.…

    • 843 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Copyright © 2012 Pearson Education, Inc. 0-5 Terminology • Machine instruction: An instruction (or command) encoded as a bit pattern d) d d tt recognizable by the CPU • Machine language: The set of all instructions recognized by a machine Copyright © 2012 Pearson Education, Inc. 0-6 3 Machine Language Philosophies • Reduced Instruction Set Computing (RISC) – Few, simple, efficient, and fast instructions – Examples: PowerPC from Apple/IBM/Motorola and ARM • Complex Instruction Set Computing (CISC) –…

    • 783 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Concrete Language

    • 718 Words
    • 3 Pages

    On February 1, 1902 Langston was born in Joplin Missouri. He lived with his grandmother for the first thirteen years of his life in Mexico. He also spent a year at Columbia University, were he served as a merchant seaman and worked at a nightclub called Paris. Langston showed a couple of his poems to Dr. Alain Locke who was a pleader for African-American literature. Twenty-Four years later is when Langston published his first book which started off his career as a writer. Langston Hughes is a poet, writer and novelist. “Theme for English B” was published in 1926. The autobiographical work “Salvation” was written in 1940. Langston uses a lot of concrete and descriptive language in his work.…

    • 718 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Lattice Term Structure Model

    • 2837 Words
    • 12 Pages

    r3,3 ¨¨ ¨ ¨ ¨ ¨ ¨¨ ¨¨ r2,2 ¨¨ r3,2 ¨¨ ¨ ¨ ¨¨ ¨¨ ¨ ¨¨ ¨ ¨ ¨ ¨ ¨ r1,1 ¨¨ r2,1 ¨¨ r3,1 ¨¨ ¨ ¨¨ ¨¨ ¨¨ ¨ ¨¨ ¨¨ ¨¨ ¨¨ r0,0 ¨¨ r1,0 ¨¨ r2,0 ¨¨ r3,0 ¨¨ ¨ ¨ ¨ ¨…

    • 2837 Words
    • 12 Pages
    Better Essays
  • Satisfactory Essays

    Natural Language

    • 377 Words
    • 1 Page

    Natural language and Standard English can differ largely for obvious reasons. I grew up in a small town with a population of just 2,000 people. Most of the members of this small community were farmers and/or small business owners. For the most part, not many residents of this town have college degrees or an education past a high school diploma. Many would consider this part of the country “rednecks”. Though not necessarily from the south, we are Midwesterners and though Kansas City is close, my hometown is about an hour northeast. I grew up in more of rural/suburban community, much different than Kansas City which has become a very urban environment. I have had a lot of people have say I have a “twang” to my accent. I don’t necessarily hear it in my own voice, but when I visit home, I do recognize it in others, primarily when walking through the local grocery store or at the filling station.…

    • 377 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Module1 - Number systems and code. Number systems - Efficiency of number system, Decimal, Binary, Octal, Hexadecimalconversion from one to another- Binary addition, subtraction, multiplication and division, representation of signed numbers, addition and subtraction using 2’s complement and I’s complement. Binary codes - BCD code, Excess 3 code, Gray code, Alphanumeric code, Error detection codes, Error correcting code. Module II - Logic Gates and Boolean Algebra. Logic Gates - Basic logic gates- AND, OR, NOT, NAND, NOR, Exclusive OR, Exclusive NOR gates- Logic symbols, truth table and timing diagrams. Boolean Algebra - Basic laws and theorems , Boolean functions, truth table, minimization of boolean function using K map method, Realization using logic gates and universal gates. Module III - Combinational and Sequential Logic Circuits. Combinational circuits - Half adder, Full Adder, Parallel binary adder, Subtracter, Magnitude Comparator, Decoders, Encoders, Multiplexers, Demultiplexers, Parity bit generator, PLA. Sequential circuits - Flip Flops – RS, JK, T and D Flip Flops, Edge triggered Flip Flops, Master slave Flip Flops. Module IV - Registers and counters. Registers - Serial in serial out, Serial in Parallel out, Parallel in serial out, Parallel in Parallel out registers, Bidirectional shift registers, universal shift registers. Counters - Synchronous and asynchronous counters, UP/DOWN counters, Modulo-N Counters, Cascaded counter, Programmable counter, Counters using shift registers, application of counters. Module V - Introduction to computers. Basic components of a computer , I/O devices - Input and output devices, printers, Display devices, Scanners. Mother Board - components of mother board. Secondary storage devices Hard disk- components of hard disk, data storage in hard disk, disk geometry.CD Family, DVD.…

    • 325 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Natural Language Automation

    • 4920 Words
    • 25 Pages

    However, confusion still exists about what NLP is and what it can and cannot do, so it…

    • 4920 Words
    • 25 Pages
    Powerful Essays
  • Good Essays

    Introductions to Prolog

    • 2151 Words
    • 9 Pages

    Created around 1972 by Alain Colmerauer with Philippe Roussel, based on Robert Kowalski’s procedural interpretation of Horn clauses. decidable subset: Datalog, a query and rule language for deductive databases its failure as a mainstream language traditionally due to the following: Prolog usage in Fifth Generation Computer Systems project (FGCS) FCGS was an initiative by Japan’s Ministry of International Trade and Industry, begun in 1982, to create a "fifth generation computer"…

    • 2151 Words
    • 9 Pages
    Good Essays