COS126_Lecture9-10_Von_NeumannMachine notes

COS126_Lecture9-10_Von_NeumannMachine notes - Lecture 9 Von...

Info icon This preview shows pages 1–2. Sign up to view the full content.

Lecture 9 -... Audio recording started: 10:03 AM Tuesday, March 05, 2013 TOY machine - like a simple computer Helps us to know how computers work/hardware, etc… We need to be able to convert from base 10 to base 2 number systems (add powers of 2 represented by the numbers of 1s or 0s percent). Find the biggest power of 2 less than the number and subtract that then repeat. ALTERNATIVELY: divide the numbers continuously and add up the remainders (not add but concatenate). Use hexadecimal encoding to convert between decimals and binary (utilize letters to represent numbers from 10 to 15). Hex looks like decimals, but it's not really: 8 + 3 = B Hexadecimal is base 16; it involves the usage of letters Machines create these when they crash. Machine "Core" dump: Sample program in machine code: add )008 to 0005 to get 000D. TOY is kind of like java (another language to learn about). Opcode + destination + address - format of a given execution Each instruction is done line by line in TOY (separate lines of code). Note: program counter advances after each line of code Loading and storing doesn’t delete any values. 1 is an add operator - see table (0 is halt) Same bit pattern - cant tell what it is (depends on how it is interpreted).
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '08
  • Von Neumann Machine, general computer science

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern