...Binary Decimal Octal and Hexadecimal number systems A number can be represented with different base values. We are familiar with the numbers in the base 10 (known as decimal numbers), with digits taking values 0,1,2,…,8,9. A computer uses a Binary number system which has a base 2 and digits can have only TWO values: 0 and 1. A decimal number with a few digits can be expressed in binary form using a large number of digits. Thus the number 65 can be expressed in binary form as 1000001. The binary form can be expressed more compactly by grouping 3 binary digits together to form an octal number. An octal number with base 8 makes use of the EIGHT digits 0,1,2,3,4,5,6 and 7. A more compact representation is used by Hexadecimal representation which groups 4 binary digits together. It can make use of 16 digits, but since we have only 10 digits, the remaining 6 digits are made up of first 6 letters of the alphabet. Thus the hexadecimal base uses 0,1,2,….8,9,A,B,C,D,E,F as digits. To summarize Decimal : base 10 Binary : base 2 Octal: base 8 Hexadecimal : base 16 Decimal, Binary, Octal, and Hex Numbers Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Octal 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F Conversion of binary to decimal ( base 2 to base 10) Each position of binary digit can be replaced by an equivalent power of 2 as shown below...
Words: 1665 - Pages: 7
...system are used in the computer field. Digital computers internally use the binary (base 2) number system to represent data and perform arithmetic calculations. The binary number system is very efficient for computers, but not for humans. Representing even relatively small numbers with the binary system requires working with long strings of ones and zeroes. The hexadecimal (base 16) number system (often called "hex" for short) provides us with a shorthand method of working with binary numbers. One digit in hex corresponds to four binary digits (bits), so the internal representation of one byte can be represented either by eight binary digits or two hexadecimal digits. Less commonly used is the octal (base 8) number system, where one digit in octal corresponds to three binary digits (bits). In the event that a computer user (programmer, operator, end user, etc.) needs to examine a display of the internal representation of computer data (such a display is called a "dump"), viewing the data in a "shorthand" representation (such as hex or octal) is less tedious than viewing the data in binary representation. The binary, hexadecimal , and octal number systems will be looked at in the following pages. The decimal number system that we are all familiar with is a positional number system. The actual number of symbols used in a positional number system depends on its base (also called the radix). The highest numerical symbol always has a value of one less than the base. The decimal number system...
Words: 8000 - Pages: 32
...COIS 1010 Final Exam Review Short Answer Questions: 1. What is the difference between a class and an object. Use an example. Class: A template for creating an object, a general category. Ex// Animals or Buildings Object: A specific thing that encompasses the functions of the class it belongs to, but is individualized. Ex// Rocky (my dog) or My house 2. Differentiate between a sequential and simultaneous (concurrent) action block in Alice. Give an Example. Sequential: In order Ex// Do in Order function - rabbit moves, then turtle moves, then hamster moves. Simultaneous: At the same time/Together Ex// Do Together function - the rabbit, turtle and hamster move. 3. When creating programs (Worlds) in Alice, it was suggested that you use an Incremental Development Process (IDP). What does that mean and what is its primary advantage? IDP: Working on one thing at a time. Advantage: One can text functions/expressions as they are implemented to make sure that have the desired affect. 4. Describe four types of Control Structures available in Alice. i) Do in order - actions occur in sequential order. ii) Do together - actions occur simultaneously. iii) If/Else - if a certain action occurs another action will be done, if a certain action does not occur then a different action will result. iv) Loop - an action will occur continuously for a certain number of times or infinitely. 5. Describe the differences between wired and...
Words: 2735 - Pages: 11
...turn the decimal number ‘125’ into a binary number. 125/2=62 R1 62/2=31 R0 31/2=15 R1 15/2=7 R1 7/2=3 R1 3/2=1 R1 2/1=1 R1 Binary number = 1111101 Task 2: Add correlating weights together to gain decimal value from binary number. 1-2-4-8-16-32-64< Weights 1-1-1-1-1-0-1<Bits 64+32+16+8+4+1=125 Task 3 on next page Gian Ciannavei; Lab 2 Task 3: Below is an example on how to turn the decimal ‘210’ into a hexadecimal using the division by 16 methods. 210/16=13 R2 13 (lsd) 2 (msd) 16-1 <weights 13-2 <Digits=D2 Next is an example of how to turn a hexadecimal into a decimal, in this case, back to ‘210’. 16*13=208 1*2=2 2+208=210 Note: You can also convert the decimal number into binary and turn the binary number into a hexadecimal. 210/2=105 R0 105/2= 52 R1 52/2=26 R0 26/2=13 R0 13/2=6 R1 6/2=3 R0 3/2=1 R1 ½=1 R1 210=11010010 1101=13 0010=2 13(LSD) 2(MSD) =D2 Task 4: Convert hexadecimal number E7 into a decimal. 14(LSD) 7(MSD) =E7 14*16=224 7*1=7 224+7=231 Gian Ciannavei; Lab2 Convert hexadecimal E7 into binary, and then back to decimal to check answers. 14(LSD) 7(MSD) =E7 14*16=224 7*1=7 224+7=231 231/2=115 R1 115/2=57 R1 57/2=28 R1 28/2=14 R0 14/2=7 R0 7/2=3 R1 3/2=1 R1 ½=1 R1 Binary =...
Words: 317 - Pages: 2
...1. The objective of digital forensics is to provide evidence in a court of law by utilizing the following actions, except: Discovery Recovery Analysis Presentation 2. Forensics evidence must undergo the following broad tests, except: Authenticity Reliability Completeness Fairness 3. Spoliation covers all the areas, except: Withholding Authenticating Alteration Destruction 4. Searching memory in real time is an example of what type of forensics? Network Live Software Operating System 5. Which of the following is a type of intellectual property theft? Piracy Extortion Identity Theft Phishing 6. Which of the following is a form of fraud? Spamming Hacking Phishing Money Laundering 7. Key factors provide good opportunities to commit cybercrimes, except: Acceptable risk Attractiveness Authorization Availability 8. The following laws address cybercrimes, except: Computer Fraud and Abuse Act Spyware Security Act CAN-SPAM Act UIGEA Act 9. Courts deal with four types of evidence. Which is not a type of evidence? Real Testimonial Actual Demonstrative 10. Which is not an anti-forensic activity? Data hiding Data fabrication Data transformation Data redundancy 11. Three types of forces act on evidence. Which type does not? Human Mechanical Natural Incidental 12. A search warrant allows collection of equipment. Prior notice is a requirement...
Words: 948 - Pages: 4
...in September of 2000. Illustrations reworked in standard graphic (eps and jpeg) format. Source files translated to Texinfo format for easy online and printed publication. • Third Edition: Printed in February 2001. Source files translated to SubML format. SubML is a simple markup language designed to easily convert to other markups like A LTEX, HTML, or DocBook using nothing but search-and-replace substitutions. • Fourth Edition: Printed in March 2002. Additions and improvements to 3rd edition. ii Contents 1 NUMERATION SYSTEMS 1.1 Numbers and symbols . . . . . . . . . . . . . . 1.2 Systems of numeration . . . . . . . . . . . . . . 1.3 Decimal versus binary numeration . . . . . . . 1.4 Octal and hexadecimal numeration . . . . . . 1.5 Octal and hexadecimal to decimal conversion . 1.6 Conversion from decimal numeration . . . . . ....
Words: 29763 - Pages: 120
...About the Tutorial Assembly language is a low-level programming language for a computer or other programmable device specific to a particular computer architecture in contrast to most high-level programming languages, which are generally portable across multiple systems. Assembly language is converted into executable machine code by a utility program referred to as an assembler like NASM, MASM, etc. Audience This tutorial has been designed for those who want to learn the basics of assembly programming from scratch. This tutorial will give you enough understanding on assembly programming from where you can take yourself to higher levels of expertise. Prerequisites Before proceeding with this tutorial, you should have a basic understanding of Computer Programming terminologies. A basic understanding of any of the programming languages will help you in understanding the Assembly programming concepts and move fast on the learning track. Copyright & Disclaimer Copyright 2014 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt...
Words: 16458 - Pages: 66
...ENGLISH DISPLAY • Floating point system ←Symbol SCIENTIFIC CALCULATOR MODEL EL-501W • Scientific notation system OPERATION MANUAL PRINTED IN CHINA / IMPRIMÉ EN CHINE / IMPRESO EN CHINA 04AGK (TINSE0496THZZ) Mantissa Exponent (During actual use not all symbols are displayed at the same time.) If the value of mantissa does not fit within the range ±0.000000001 – ±9999999999, the display changes to scientific notation. The display mode can be changed according to the purpose of the calculation. 2ndF HYP : Appears when @ is pressed, indicating that the functions shown in orange are enabled. : Indicates that h has been pressed and the hyperbolic functions are enabled. If @ H are pressed, the symbols “2ndF HYP” appear, indicating that inverse hyperbolic functions are enabled. INTRODUCTION Thank you for purchasing the SHARP Scientific Calculator Model EL-501W. About the calculation examples (including some formulas and tables), refer to the reverse side of this English manual. Refer to the number on the right of each title on the manual for use. After reading this manual, store it in a convenient location for future reference. Operational Notes • Do not carry the calculator around in your back pocket, as it may break when you sit down. The display is made of glass and is particularly fragile. • Keep the calculator away from extreme heat such as on a car dashboard or near a heater, and avoid exposing it to excessively humid or dusty environments. • Since this product...
Words: 3773 - Pages: 16
...The Binary Number System Robert B. Heckendorn University of Idaho August 25, 2015 Numbers are said to be represented by a place value system. Where the value of a symbol depends on where it is... its place. For instance an 8 in right most position in a number means 8 but in the third place from the right means 800. That is, each position from the right side of the number has an associated value. Base 10 or decimal Each position to the left is worth 10 more than the next position to the right. For numbers example: in the number 7654, the rightmost place is worth 1, the next to the right most position is worth 10, next position is worth 100 and the left most is worth 1000. The number 7654 is therefore: 7 ∗ 1000 + 6 ∗ 100 + 5 ∗ 10 + 4 ∗ 1 which is 7654 in decimal. The base 10 number system, numbers are represented by a list of symbols of which there are 10 kinds of symblos: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. The position or place values are powers of 10: 100 , 101 , 102 , 103 , ... or 1, 10, 100, 1000, ... Long ago computing machines used mechanical mechanisms and decimal represention but now with fast electricity based computing devices a new way to encode numbers and data in general is needed. 1 Binary In binary, the base of the number system is 2. Base 2 or binary numEach position to the left is worth 2 more than the next position to the right. bers For example: in the number 1101, the rightmost position is worth 1, the next to the right most position...
Words: 2464 - Pages: 10
...* Decimal * Base 10 (represented by 10 symbols; that is, 0-9) * Humans like this because of our 10 fingers * Binary * Base 2 (represented by tow symbols, 0 and 1) * Computers like this because they only understand voltage on or off (0 or 1) * Hexadecimal * Base 16 (represented by 16 symbols, 0-9 and a-f) * Programmers like this because it make them feel smarter than everyone else.. Hexadecimal (Base 16) Hex | Decimal | Binary | 0 | 0 | 0 | 1 | 1 | 01 | 2 | 2 | 10 | 3 | 3 | 11 | 4 | 4 | 100 | 5 | 5 | 0101 | 6 | 6 | 0110 | 7 | 7 | 0111 | 8 | 8 | 1000 | 9 | 9 | 1001 | A | 10 | 1010 | B | 11 | 1011 | C | 12 | 1100 | D | 13 | 1101 | E | 14 | 1110 | F | 15 | 1111 | 256 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | | | | | | | | | | I/O Ports USB Network Video sound Keyboard SD Card Driver Controller serial Parallel farmwives 3 most important things in built computer 1. Processor – Brain 2. Motherboard – Central Nervous System 3. Video card 4. RAM 5. Coolins 6. Power supply 7. Hard drive 8. Blue-Ray DVD Drive 9. SSD (faster) 10. Keyboard, Mouse, Monitor 11. Blivg, case, 12. Sound system 7/24/14 RAM - (Volatile) Random Access Memory 2 Difference kind of RAM 1. Static 1 b.t (6-11 Transmission) better 2. Dynamic (1 transistor) CACHE – so fast ROM (permanent) Read Only Memory PROM – Program Read Only Memory ...
Words: 370 - Pages: 2
...Discrete Inputs Discrete Information Processing System Discrete Outputs System State Data Types The data types stored in digital computers may be classified as being one of the following categories: 1. 2. 3. numbers used in arithmetic computations, letters of the alphabet used in data processing, and other discrete symbols used for specific purposes. All types of data are represented in computers in binarycoded form. Numbers in Different Bases Good idea to memorize! Decimal (Base 10) 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 Binary (Base 2) 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 Octal (Base 8) 00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17 20 Hexadecimal (Base 16) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 Summary Decimal Numbers The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal numbers is ten, because only ten symbols (0 through 9) are used to represent any number. The column weights of decimal numbers are powers of ten that increase from right to left beginning with 100 =1: …105 104 103 102 101 100. For fractional decimal numbers, the column weights are negative powers of ten that decrease from left to right: 102 101 100. 10-1 10-2 10-3 10-4 … Summary Decimal Numbers Decimal numbers can be expressed as the sum of the products of each digit times the column value for that digit...
Words: 2939 - Pages: 12
...8086 assembler tutorial for beginners (part 2) Memory Access to access memory we can use these four registers: BX, SI, DI, BP. combining these registers inside [ ] symbols, we can get different memory locations. these combinations are supported (addressing modes): [BX + SI] [BX + DI] [BP + SI] [BP + DI] | [SI] [DI] d16 (variable offset only) [BX] | [BX + SI + d8] [BX + DI + d8] [BP + SI + d8] [BP + DI + d8] | [SI + d8] [DI + d8] [BP + d8] [BX + d8] | [BX + SI + d16] [BX + DI + d16] [BP + SI + d16] [BP + DI + d16] | [SI + d16] [DI + d16] [BP + d16] [BX + d16] | d8 - stays for 8 bit signed immediate displacement (for example: 22, 55h, -1, etc...) d16 - stays for 16 bit signed immediate displacement (for example: 300, 5517h, -259, etc...). displacement can be a immediate value or offset of a variable, or even both. if there are several values, assembler evaluates all values and calculates a single immediate value.. displacement can be inside or outside of the [ ] symbols, assembler generates the same machine code for both ways. displacement is a signed value, so it can be both positive or negative. generally the compiler takes care about difference between d8 and d16, and generates the required machine code. for example, let's assume that DS = 100, BX = 30, SI = 70. The following addressing mode: [BX + SI] + 25 is calculated by processor to this physical address: 100 * 16 + 30 + 70 + 25 = 1725. by default DS segment register is used for all modes except those...
Words: 2749 - Pages: 11
...1 2 Acknowledgements p.1 tr ©iStockphoto.com/Dennys Bisogno, etc t = top, b = bottom, l = left, r = right, c = centre Computer hardware and software brand names mentioned in this book are protected by their respective trademarks and are acknowledged. Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu Every effort has been made to trace all copyright holders, but if any have been inadvertently overlooked the publishers will be pleased to make the necessary arrangements at the first opportunity. Although every effort has been made to ensure that website addresses are correct at time of going to press, Hodder Education cannot be held responsible for the content of any website mentioned in this book. It is sometimes possible to find a relocated web page by typing in the address of the home page for a website in the URL window of your browser. Photo credits p.1 © peno – Fotolia; p.15 © Dmitrydesigner/Fotolia; p.16 ©iStockphoto.com/Karl Yamashita; p.57 © Romanchuck – Fotolia; p.58 t © C Squared Studios/Photodisc/Getty Images, m ©Dmitriy Melnikov - Fotolia.com, b © Popova Olga/Fotolia; p.59 © picsfive – Fotolia; p.65 © Manfred Schmidt – Fotolia.com; p.67 © dja65 – Fotolia; p.68 © Konstantin Shevtsov – Fotolia; p.69 t © Miguel Navarro/Stone/Getty Images, b © Piero Cruciatti/Alamy; p.73 © Jamdesign/Fotolia; p.78 and 79 © adisa – Fotolia; p.81 © Mykola Mazuryk – Fotolia; p.82 t © Mauro Rodrigues/Fotolia...
Words: 49691 - Pages: 199
...Concurrency in C+ + 1 Assignment 1 These questions requires the use of C+ which means compiling the program with the u++ command, including +, uC++.h as the first include file in each translation unit, and replacing routine main with member uMain::main . 1. Write a semi-coroutine with the following public interface (you may only add a public destructor and private members): _Coroutine FloatConstant { public: enum status { MORE, GOOD, BAD }; // possible status private: status stat; // current status of match char ch; // character passed by cocaller void main(); // coroutine main public: status next( char c ) { ch = c; // communication in resume(); // activate return stat; // communication out } }; which verifies a string of characters corresponds to a C+ floating-point constant described by: + floating-constant : signÓÔØ fractional-constant exponent-part ÓÔØ floating-suffixÓÔØ signÓÔØ digit-sequence exponent-part floating-suffixÓÔØ fractional-constant : digit-sequenceÓÔØ “.” digit-sequence digit-sequence “.” “e” “E” signÓÔØ digit-sequence exponent-part : sign : “+” “-” digit-sequence : digit digit-sequence digit floating-suffix : “f” “l” “F” “L” digit : “0” “1” “2” “3” “4” “5” “6” “7” “8” “9” (Where XÓÔØ means X ¯ and ¯ means empty.) In addition, there is a maximum of 16 digits for the mantissa (non-exponent digits) and 3 digits for the characteristic (exponent digits). For example, the following are valid C/C+ floating-point constants: + 123.456 -.099 +555. 2.7E+1 -3.555E-12 After creation...
Words: 1986 - Pages: 8
...The 8051 Microcontroller and Embedded Systems Using Assembly and C Second Edition Muhammad Ali Mazidi Janice Gillispie Mazidi Rolin D. McKinlay CONTENTS Introduction to Computing The 8051 Microcontrollers 8051 Assembly Language Programming Branch Instructions I/O Port Programming 8051 Addressing Modes Arithmetic & Logic Instructions And Programs 8051 Programming in C 8051 Hardware Connection and Hex File 8051 Timer/Counter Programming in Assembly and C 8051 Serial Port Programming in Assembly and C Interrupts Programming in Assembly and C 8051 Interfacing to External Memory 8051 Real World Interfacing I: LCD,ADC AND SENSORS LCD and Keyboard Interfacing 8051 Interfacing with 8255 INTRODUCTION TO COMPUTING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer Science and Information Engineering National Cheng Kung University, TAIWAN OUTLINES Numbering and coding systems Digital primer Inside the computer HANEL Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 2 NUMBERING AND CODING SYSTEMS Decimal and Binary Number Systems Human beings use base 10 (decimal) arithmetic There are 10 distinct symbols, 0, 1, 2, …, 9 Computers use base 2 (binary) system There are only 0 and 1 These two binary digits are commonly referred to as bits HANEL Department of Computer...
Words: 26702 - Pages: 107