Preview

Ththhd Dffj Fnejf Fjefe F Efifme

Good Essays
Open Document
Open Document
1020 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Ththhd Dffj Fnejf Fjefe F Efifme
QUESTION 1:

Convert 111001101110112 to Hexadecimal

They are 14 digits altogether, Grouping them into four's

we have:

00112 / 10012 / 10112 / 10112

Table: A-1010, B-1011, C-1100, D-1101, E-1110, F-1111

00112 --- 3 (Conversion to Hex)
10012 --- 9 (Conversion to Hex)

111001101110112 = 3 9 B B h

Conversion of the above: 11100110111011
Conversion to Base 10
1*2 13 + 1*2 12 + 1*2 11+ 0*2 10 + 0*2 9+ 1*2 8+ 1*2 7+ 0*2 6+ 1*2 5+ 1*2 4+ 1*2 3+ 0*2 2+ 1*2 1
+ 1*20 = 1 4 7 7 910

Conversion to Base 16 , Hexadecimal

1 4 7 7 9 | 1 6 | Remainder | 9 2 3 | 16 | 11 | 57 | 16 | 11 | 3 | 16 | 9 | | 0 | 3 | = 3 9 11 11 16 OR 3 9 B B h

QUESTION 2: Write a short note on record representation and array representation :

An array: is a collection of data types whose members are all the same type. The base addresses of the first element on the array and always appears in the lowest memory location.

The second array element directly follows the first in memory; and so on. However, it is not important that the indices start at zero; they may start with any number as long as they may start with any number as long as they are contiguous.

Record representation:
Just like record representation in other programming language like Pascal which support the use of different sized field item.
The same record is implemented in assembly language by first defining its composition then creates the record which has the composition of the previous record definition.
Each field of record is accessed by a similar method as to that of any other language like Pascal access the left field of the record.

QUESTION 3: How will you assemble your code in MASM?

Steps: Install the MASM software on your pc Use notepad as text editor Type your assembly code on the text editor and save it in the “\bin” directory of the *.asm. For

You May Also Find These Documents Helpful

  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    computation are stored in registers R1 and R2, and the result of the computation is stored…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Good Essays

    Arrays store items that have the same type of data type like a group of employees’ names and social security numbers for a team of 2000 personal. Pointer is a variable that greatly extends the power and flexibility of a program, each memory location that is used to store data value has an address. The address provides the means for a PC hardware to reference a particular data item.…

    • 485 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Array Structure Paper

    • 833 Words
    • 4 Pages

    “An array is a collective name given to a group of similar quantities. These similar quantities could be percentage marks of 100 students, number of chairs in home, or salaries of 300 employees or ages of 25 students. Thus an array is a collection of similar elements. These similar elements could be all integers or all characters, and so on” (Thompson, 2007). Building an array can be confusing for the Bug Blasters can be very confusing for a programmer who does not fully understand how they work.…

    • 833 Words
    • 4 Pages
    Good Essays
  • Good Essays

    7 and Array

    • 500 Words
    • 2 Pages

    7. When a single array element, such as myArray[2], is passed to a method, the method receives _____.…

    • 500 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Dbm 381 Week 1paper

    • 885 Words
    • 4 Pages

    A database consists of one or more tables; each containing data stored as individual records. Different database architectures determine how the tables and records are organized or related…

    • 885 Words
    • 4 Pages
    Good Essays
  • Good Essays

    The mystery behind Jay Gatsby allows for him to become one of the most intriguing members of the upper class. As Gatsby’s background unravels, it becomes clear that Fitzgerald chose Jay Gatsby as the main character because he defies every social normality in the 1920’s. By Fitzgerald’s writing, the reader realizes that Gatsby’s mindset separates him from others. Everything Gatsby has accomplished in the past five years is because of his dedication, ambition, and integrity in following in his dreams which Fitzgerald greatly admires. The social class one is born into is the one they belong to their entire life, unless you are Jay Gatsby. Although Gatsby attempts to convince people that his entire life has consisted of lavish and wealthy things,…

    • 257 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    It 210

    • 2960 Words
    • 12 Pages

    Although the value of a variable may change during execution of a program, in all our programs so far, a single value has been associated with each variable name at any given time. In this chapter, we will discuss the concept of an array—a collection of variables of the same type and referenced by the same name. We will discuss one-dimensional arrays (lists) at length and focus briefly on twodimensional arrays (tables). You will learn how to set up and use arrays to accomplish various tasks.…

    • 2960 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    Mike Tuersley "Data structures: VB and VBA offer two options: arrays and collections". CADalyst. August 2004. FindArticles.com. 30 Oct. 2007. http://findarticles.com/p/articles/mi_m0BLL/is_8_21/ai_n9537860Continued from page 1. Previous - 1 - 2…

    • 877 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Parallel Arrays

    • 427 Words
    • 2 Pages

    In contrast, many array data structures allow access to any element with a constant number of operations,…

    • 427 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Arduino Parking Lot

    • 340 Words
    • 3 Pages

    Here is the code: /*ParkingL02.pde Arduining.com 08 JUL 2012 Code used in the production of the Youtube material. */ #include < Servo.h> Servo myservo; // create servo object to control a servo #define ServoM 12 //Connected to the servo motor.…

    • 340 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Suppose a machine has 20GB of storage space available on a hard disk and receives data over a…

    • 424 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    guide to tut

    • 832 Words
    • 6 Pages

    there? How does one refer to the initial array element? To the final array element?…

    • 832 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    Data editing routines may be applied to each of the basic data structures. Character Records Fields Files…

    • 1527 Words
    • 7 Pages
    Powerful Essays
  • Better Essays

    c++ balaguruswamy

    • 1703 Words
    • 22 Pages

    Top of Form Technical Interview Questions Google Search C++ Interview Questions C# Interview Questions C Interview Questions ......... More pub-7003540323 ISO-8859-1 active GALT:#008000;G C ++ Aptitude Questions C Aptitude Questions 2 ......... More 3422992112 ISO-8859-1 Aptitude Interview Questions 1 en Bottom of Form Tutorials C Tutorial C++ Tutorial C Aptitude Questions and Answers…

    • 1703 Words
    • 22 Pages
    Better Essays