2 - Introduction to Computers and Programming Prof. I. K....

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Computers and Programming Prof. I. K. Lundqvist Recitation 2 Sept 18 2003 Some suggestions … C5, C6, C7 • Binary, Decimal, Hex, ASCII • Negative numbers / 2’s complement Floating point numbers –Excess The Brookshear Machine – The Brookshear Instruction Format – Brookshear Machine Instructions Bit-wise Logical Operations –Mask ing • The Simple Simulator SimpleSim examples – Add three numbers together
Background image of page 1

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

View Full DocumentRight Arrow Icon
Assembly programs Example : Add three numbers together. The values to added should be placed in memory locations 10h, 11h and 12h. The sum should be placed in memory position 13h. Example : Write a program that converts lowercase to uppercase ASCII character stored in a memory. The Brookshear Machine and SimpSim Assembly • 16 General purpose registers – Numbered 0-F (0-15) • 256 8-bit-size memory cells – Numbered 00-FF (0-255) • 15 simple instructions – Encoded using 2 bytes per instruction – Hex notation: 4 hex digits per instruction • MSB hex for the opcode • The other three hex digits for the operands
Background image of page 2
Brookshear Instruction Format
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/28/2012 for the course AERO 16.01 taught by Professor Markdrela during the Fall '05 term at MIT.

Page1 / 7

2 - Introduction to Computers and Programming Prof. I. K....

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online