EECC250 - Shaaban #1 lec #13 Winter99 1-17-2000 HEX DEC CHR Ctrl 00 0NUL 01 1 SOH ^A 02 2STX ^B 03 3ETX ^C 04 4EOT ^D 05 5ENQ ^E 06 6ACK ^F 07 7BEL.

Slides:



Advertisements
Similar presentations
ASCII stands for American Standard Code for Information Interchange
Advertisements

EECC250 - Shaaban #1 lec #14 Winter Binary Coded Decimal (BCD) Arithmetic Binary Coded Decimal (BCD) is a way to store decimal numbers.
EECC250 - Shaaban #1 Lec # 6 Winter Stack-Related Instructions PEA Push Effective Address Calculates an effective address and pushes it.
Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA encodings using a physical phenomenon Encode.
Craig Schock, 2003 Binary Numbers Numbering Systems Counting Symbolic Bases Common Bases (10, 2, 8, 16) Representing Information Binary to Decimal Conversions.
EECC341 - Shaaban #1 Lec # 3 Winter Binary Multiplication Multiplication is achieved by adding a list of shifted multiplicands according.
EECC250 - Shaaban #1 lec #12 Winter Serial Communication ASCII Character Parity BitFrom68000 ASCII Character Parity Bit Transmitter Buffer.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Representing Information Digitally Bits and the “Why” of Bytes lawrence snyder.
9/14/2004Comp 120 Fall September 2004 First Exam next Tuesday 21 September Programming Questions? All of Chapter 3 and Appendix A are relevant.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Digital Text Primer Prepared for: AIEA Roundtable on Digitization of Armenian Documents Saturday 7 October 2006, University of Geneva, Switzerland Roland.
Characters & Strings Lesson 1 CS1313 Spring Characters & Strings Lesson 1 Outline 1.Characters & Strings Lesson 1 Outline 2.Numeric Encoding of.
1 Data Representation Computer Organization Prof. H. Yoon DATA REPRESENTATION Data Types Complements Fixed Point Representations Floating Point Representations.
Agenda Data Representation – Characters Encoding Schemes ASCII
The character data type char
BIOS1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.
Digital Design: From Gates to Intelligent Machines
Decimal Binary Octal Hex
BIOS1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.
PHY281Variables operators and math functions Slide 1 More On Variables and Operators, And Maths Functions In this section we will learn more about variables.
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 DATA REPRESENTATION Dept. of Computer Science Engineering Islamic Azad University.
Informatics I101 February 25, 2003 John C. Paolillo, Instructor.
Postacademic Interuniversity Course in Information Technology – Module C1p1 Chapter 1 Evolution of Communication Networks.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Representing Information Digitally Bits and the “Why” of Bytes lawrence snyder.
Lecture 4: Number Systems (Chapter 3) (1) Data TypesSection3-1 (2) ComplementsSection3-2 (3) Fixed Point RepresentationsSection3-3 (4) Floating Point RepresentationsSection3-4.
Regular Expression JavaScript Web Technology Derived from:
Review Spatial Filters – Smooth – Blur – Low Pass Filter – Sharpen – High Pass Filter – Edge detection – Erosion – Dilation Other Pixel Filters – Thresholding.
1 Information Representation in Computer Lecture Nine.
CS 2130 Lecture 23 Data Types.
Systems Architecture, Fourth Edition 1 Data Representation Chapter 3.
Simple Data Types in C Alan L. Cox Objectives Be able to explain to others what a data type is Be able to use basic data types in C programs.
Programming for GCSE Topic 2.2: Binary Representation T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science.
PRIMITIVE TYPES IN JAVA Primitive Types Operations on Primitive Types.
Pale Blue Dot is a photograph of planet Earth taken on February 14, 1990, by the Voyager 1 space probe from a record distance of about 6 billion kilometers,
4th Edition, Irv Englander
Bits, Data Types, and Operations
Chapter 2 Bits, Data Types, and Operations
Machine level representation of data Character representation
C Programming Language Review and Dissection
Chapter 3 Data Representation Text Characters
Digitizing Discrete Information
Characters Lesson Outline
EKT150 INTRODUCTION TO COMPUTER PROGRAMMING
Binary (Base-2) Numbers
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Chapter 2 Data Types and Representations
Javascript, Loops, and Encryption
Chapter 2 Bits, Data Types, and Operations
Chapter 5: ARM Assembly Directives and the use of stack
Chapter 2 Bits, Data Types, and Operations
ASCII Character Codes nul soh stx etx eot 1 lf vt ff cr so
Introduction to Computer Engineering
October 1 Programming Questions?
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Cosc 2P12 Week 2.
An introduction to UML 2 for modelling communications
Part II Instruction-Set Architecture
Number Systems Lecture 2.
Text Encoding.
School of Computer Science and Technology
Characters Lesson Outline
Introduction to Computer Engineering
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Rayat Shikshan Sanstha’s S. M. Joshi College, Hadapsar
RS-232 Port Discussion D12.1.
Text Representation ASCII Collating Sequence
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Cosc 2P12 Week 2.
X-Plane Commands and Datarefs TCP vs. UDP
Chapter 2 Bits, Data Types, and Operations
Presentation transcript:

EECC250 - Shaaban #1 lec #13 Winter HEX DEC CHR Ctrl 00 0NUL 01 1 SOH ^A 02 2STX ^B 03 3ETX ^C 04 4EOT ^D 05 5ENQ ^E 06 6ACK ^F 07 7BEL ^G 08 8BS ^H 09 9HT ^I 0A 10LF ^J 0B 11VT ^K 0C 12FF ^L 0D 13CR ^M 0E 14SO ^N 0F 15SI ^O 10 16DLE ^P 11 17DC1 ^Q 12 18DC2 ^R 13 19DC3 ^S 14 20DC4 ^T 15 21NAK ^U 16 22SYN ^V 17 23ETB ^W 18 24CAN ^X 19 25EM ^Y 1A 26SUB ^Z 1B 27ESC 1C 28FS 1D 29GS 1E 30RS 1F 31US HEX DEC CHR 20 32SP 21 33! 22 34” 23 35# 24 36$ 25 37% 26 38& 27 39’ 28 40( 29 41) 2A 42* 2B 43+ 2C 44, 2D 45- 2E 46. 2F 47/ A 58 : 3B 59 ; 3C 60 < 3D 61 = 3E 62 > 3F 63 ? HEX DEC CHR A B C 44 68D 45 69E F 47 71G 48 72H I 4A 74 J 4B 75 K 4C 76L 4D 77M 4E 78N 4F 79O 50 80P 51 81Q 52 82R 53 83S 54 84T 55 85U 56 86V 57 87W 58 88X 59 89Y 5A 90Z 5B 91[ 5C 92\ 5D 93] 5E 94^ 5F 95_ HEX DEC CHR 60 96` 61 97a 62 98b 63 99c d e f g h I 6A 106j 6B 107k 6C 108 l 6D 109m 6E 100n 6F 111o p q r s t u v w x y 7A 122 z 7B 123 { 7C 124| 7D 125 } 7E 126 ~ 7F 127DEL ASCII Code Table

EECC250 - Shaaban #2 lec #13 Winter ASCII-Encoded Decimal To Binary Conversion Subroutine DECBIN, assumes A0 to point at the highest character of a valid five character ASCII-encoded decimal number with a maximum value The decimal number is converted to a one word binary value stored in the low word of D0 ORG$1000 DECBIN CLR.L D0 MOVEQ#5,D6Initialize loop counter to get five digits NEXTD CLR.LD1Clear new digit holding register MOVE.B(A0)+,D1Get one ASCII digit from memory SUBI.B#$30,D1Subtract ASCII bias $30 MULU#10,D0Multiply D0 by 10 ADD.WD1,D0Add new digit to binary value in D0 SUBI.B#1,D6Decrement counter BNENEXTDIf not done get next digit RTS

EECC250 - Shaaban #3 lec #13 Winter Binary To ASCII-Coded Decimal Conversion Subroutine BINDEC, converts binary value in the lower word of register D0 into an ASCII- coded decimal string. Address where resulting ASCII string should be stored is given in A0 This routine does not eliminate leading zeroes when the value is less than ORG$1000 BINDEC MOVE.WD0,D6 Make a copy of input number MOVE.W#10000,D5 Get 10000s digit BSRDIGIT MOVE.W#1000,D5Get 1000s digit BSRDIGIT MOVE.W#100,D5Get 100s digit BSRDIGIT MOVE.W#10,D5Get 10s digit BSRDIGIT MOVE.BD6,D1Get 1s digit ADDI.B#$30,D1Add ASCII bias MOVE.BD1,(A0)+Store 1s ASCII digit in memory RTS DIGIT ANDI.L#$0FFFF,D6Clear upper word of D6 DIVUD5,D6Divide D6 by D5 MOVE.BD6,D1Load result digit in D1 ADDI.B#$30,D1Add ASCII bias MOVE.BD1,(A0)+Store ASCII digit in memory SWAPD6Get remainder RTS