{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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 Document Right 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 Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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 bookmark
Ask a homework question - tutors are online