Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 12

1

Lahore Garrison University


CSC346-Computer Organization and
assembly language
Week- 5 Lecture-1
Semester-# Fall 2020
Prepared by:

Muhammad Daniyal baig

MSCS
2
Previous lecture summary

 Representing and manipulating Information:


 information storage

Lahore Garrison University


3
Current Lecture Summary

 Representing and manipulating Information:

Lahore Garrison University


2.2 : Conversion b/w Number Systems
Converting Binary and Hex to Decimal:
 Hex in to Decimal:
1.

2.

 Binary in to Decimal:
1.
2.2 : Conversion b/w Number Systems
Examples:
Ex: 2.1. Convert 11101b to decimal.

Ex: 2.2. Convert 2BD4h to decimal.


2.2 : Conversion b/w Number Systems

Converting Decimal to Binary and Hex :


 Decimal in to Hex:
Answer: 2BA4h

 Decimal in to Binary:
2.2 : Conversion b/w Number Systems

 Conversion b/w Hex and Binary :


2.3 : Addition & Subtraction

Addition:
o Decimal:

o Hexadecimal:

o Binary:
2.3 : Addition & Subtraction
2.3 : Addition & Subtraction

Subtraction:
o Decimal:

o Hexadecimal:

o Binary:
11

Q &A

Lahore Garrison University


12
References

These lecture notes were taken from following source:

 Computer Systems: A Programmer's Perspective, 3/E (CS:APP3e), Randal E.


Bryant and David R.O' Hallaron, Carnegie Mellon University

Lahore Garrison University

You might also like