Byte Addressability Bytes are always 8 bits Word length typically ranges from 16 to 64 bits. Memory location assignments refer to successive byte locations.

Slides:



Advertisements
Similar presentations
1 Lecture 3: Instruction Set Architecture ISA types, register usage, memory addressing, endian and alignment, quantitative evaluation.
Advertisements

INSTRUCTION SET ARCHITECTURES
ICS312 Set 2 Representation of Numbers and Characters.
Microprocessors General Features To be Examined For Each Chip Jan 24 th, 2002.
Chapter 2 Microprocessor Bus Transfers. Big- and Little-Endian Ordering Bit-endian processor architecture –High-order-byte-first (H-O-B-F) map the highest-order.
Lecture - 2 Number systems and computer data formats
CMPUT Computer Organization and Architecture I
Outline Learning Assembly by an Example.  Program Formats  Some Simple Instructions  Assemble and Execute Learning Another Example  Data Definition.
What is an instruction set?
Microprocessor Systems Design I
1 Instructions and Addressing
Data Representation Prepared by Dr P Marais (Modified by D Burford)
1 Real-World File Structures by Tom Davis Asst. Professor, Computer Science St. Edward's University 3001 South Congress Avenue Austin, Texas 78704
Fundamental of Computer Architecture By Panyayot Chaikan November 01, 2003.
Data Representation - Part I. Representing Numbers Choosing an appropriate representation is a critical decision a computer designer has to make The chosen.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: October 29, 2004 Lecture Number: 26.
ICS312 Set 1 Representation of Numbers and Characters.
Bobby Bodenheimer CS 258 Introduction to Graphics Fall 2003 The Tiff Image Specification.
Comp Sci vars & expns 1 Ch. 4 Variables and Expressions.
Memory and Addressing How and Where Information is Stored.
C programming or Fun with pointers Tutorial #2 CPSC 261.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
(a) Parameter passing in a local procedure call: the stack before the call (b) The stack while the called procedure is active. count =
Primitive Variables.
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Computer Foundations Dr. John P. Abraham Professor UTPA.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Computer Architecture and Organization
PIC – ch. 2c. 2.5 PIC Data formats Numbers can be – Hex – Binary – Decimal – ASCII formats.
Computer Architecture EKT 422
Memory Smallest unit of storage is a Bit
CDP ECE Spring 2000 ECE 291 Spring 2000 Lecture 2: Number Systems & x86 Instructions Constantine D. Polychronopoulos Professor, ECE Office: 463.
Big Endian vs. Little Endian Storage of Numeric Data Noah Mendelsohn Tufts University Web:
Info stored in computer (memory) Numbers All in binaray – can be converted to octal, hex Characters ASCII – 1-byte/char Unicode – 2-byte/char Unicode-table.com/en.
Chapter 10 Instruction Sets: Characteristics and Functions Felipe Navarro Luis Gomez Collin Brown.
Information Storage.
 Socket class ◦ provides a rich set of methods and properties for network communications. The Socket class allows you to perform both synchronous and.
Pointers in C++. Topics Covered  Introduction to Pointers  Pointers and arrays  Character Pointers, Arrays and Strings  Examples.
What is a program? A sequence of steps
Group # 3 Jorge Chavez Henry Diaz Janty Ghazi German Montenegro.
Home Assignment 5 Assigned. Deadline 2016 March 2, Wednesday.
Computer Data Formats Microprocessor Course Electrical Engineering Department University of Indonesia.
Instruction Sets: Characteristics and Functions  Software and Hardware interface Machine Instruction Characteristics Types of Operands Types of Operations.
Address alignment When a word (4-bytes) is loaded or stored the memory address must be a multiple of four. This is called an alignment restriction. Addresses.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
1 A more complex example Write a program that sums a sequence of integers and displays the result. Assume that the first integer read specifies the number.
Memory, Bits, & Bytes. Memory Part of the computer where programs and data are stored. Read and written (changed). Bit – Binary digit – Basic unit of.
Memory Access Instructions Load and Store Addressing Modes Memory Addressing. Base addressing mode. Load byte and store byte: lb, lbu, sb Address alignment.
1 CSCI 2510 Computer Organization Memory Addressing and Assembly Instruction Basics.
Computer Architecture & Operations I
Big-Endians Little-Endians and Bi-Endians
A Closer Look at Instruction Set Architectures
Computer Organization and Assembly Language (COAL)
COMP3221: Microprocessors and Embedded Systems
Instruction Formats Each instruction consists of two parts:
Architecture CH006.
Presenting information as bit patterns
Storing Information Each memory cell stores a set number of bits (usually 8 bits, or one byte) (byte addressable)
ECEG-3202 Computer Architecture and Organization
Bits and Bytes Topics Representing information as bits
A Closer Look at Instruction Set Architectures Chapter 5
ECEG-3202 Computer Architecture and Organization
Presentation transcript:

Byte Addressability Bytes are always 8 bits Word length typically ranges from 16 to 64 bits. Memory location assignments refer to successive byte locations in memory Memory is byte-accessible. For 8086, a Word is 16-bits (2 bytes)

Word Length For the 8086, a Word is 16-bits (2 bytes) A Signed Integer b 15 b 14 …………b1b1 b0b0 2 Characters 8 bits

Little-Endian Formatting There are two ways that byte addresses can be assigned across words. –Big-Endian – higher byte addresses are used for the less significant bytes of a word –Little-Endian – lower byte addresses are used for the less significant bytes of a word –The Intel Architecture uses Little Endian

Little-Endian Assignments.data List BYTE 10, 20, 30, 40, 50, 60 OffsetValue *note that with byte size data, there is no difference between Big-Endian and Little-Endian

Big-Endian Assignments.data List BYTE 10, 20, 30, 40, 50, 60 OffsetValue *note that with byte size data, there is no difference between Big-Endian and Little-Endian

Little-Endian Assignments.data List WORD 1020h, 3040h, 5060h OffsetValue *note that with word size data, the low-order byte is stored in a lower address

Big-Endian Assignments.data List WORD 1020h, 3040h, 5060h OffsetValue *note that with word size data, the low-order byte is stored in a higher address

Little-Endian Assignments.data List DWORD h, h OffsetValue *note that with word size data, the low-order byte is stored in a lower address

Big-Endian Assignments.data List DWORD h, h OffsetValue *note that with word size data, the low-order byte is stored in a higher address

Big-Endian Assignments.data List DWORD h OffsetValue 0005XX 0004 XX *note that with word size data, the low-order byte is stored in a higher address

Little-Endian Assignments.data List DWORD h OffsetValue 0005XX 0004 XX *note that with word size data, the low-order byte is stored in a higher address

Big-Endian Assignments.data List BYTE “This is a string”,0 OffsetValue *note: These are the ASCII values ‘T’=54H, ‘h’=68H, ‘ i’= 69H …

Little-Endian Assignments.data List BYTE “This is a string”,0 OffsetValue *note: Strings are saved as byte data