Defining data definition, Computer Engineering

Assignment Help:

Defining Types of Data ?

The subsequent format is used for defining data definition: 

Format for data definition: 

{Name} 

Name -   a program references the data item through the name though it is non-compulsory.

Directive: Specifying data type of assembly.

Expression: Signify a value or evaluated to value.

All directives are listed below:

Directive                      Description                 Number of Bytes

 

DB                              Define byte                             1 

DW                             Define word                            2 

DD                              Define double word                4 

DQ                              Define Quad word                  8 

DT                              Define 10 bytes                       10 

DUP Directive is used to duplicate the fundamental data definition to 'n' number of times.

ARRAY                                  DB                              10 DUP (0)

In the above statement ARRAY is the name of data item that is of byte type (DB). This array comprises 10 duplicate zero values which is 10 zero values.

EQU Directive is used to define a name to a constant

  CONST                                 EQU                            20

Kinds of number employed in data statements can be Binary, octal, decimal, Hexadecimal and ASCII. Above statement states a name CONST to a value 20. 

Some other instances of employing these directives are:

TEMP                           DB                 0111001B                   ; Binary value in byte operand 

                                                                                                 ; named temp

VALI                                      DW                 7341Q                         ; Octal value assigned to word 

                                                                                     ; variable

Decimal                       DB                  49                                ; Decimal value 49 contained in 

                                                                                    ;  byte variable

HEX                            DW                 03B2AH                     ; Hex decimal value in word

                                                                                                ; operand

ASCII                                     DB                  'EXAMPLE'              ; ASCII array of values.


Related Discussions:- Defining data definition

Collision free network, Hello Sir/Mam, Actually i am trying to implement th...

Hello Sir/Mam, Actually i am trying to implement the concept of MAC layer protocols in NS2..... But unfortunately i am not able to do that.... and not even able to get the code fo

Identifying constraints between objects, Identifying Constraints between Ob...

Identifying Constraints between Objects In a system, there are few boundaries to work on. Boundaries or Constraints are functional dependencies among objects which are not con

Buses - computer architecture, Buses: Execution of 1 instruction ne...

Buses: Execution of 1 instruction need the following 3 steps to be performed by the CPU: I.  Fetch the contents of the memory location pointed at by the computer syst

What is a null object in c++, It is an object of a number of classes whose ...

It is an object of a number of classes whose purpose is to indicate that a real object of that class does not exist. One common use for a null object is a return value from a membe

Define dma, Define DMA. The transfer of data among a fast storage devic...

Define DMA. The transfer of data among a fast storage device such as magnetic disk and memory if often limited by the speed of the CPU. Removing the CPU from the path and letti

Polymorphism and inheritance in lingo programming, Question : (a) What...

Question : (a) What are parent scripts and child objects in Lingo object oriented programming (OOP)? What are the equivalent terms used in C++ OOP? (b) Differentiate b

What is common control switching system, What is common control switching s...

What is common control switching system? Explain. Common Control Switching System: It is a functional block diagram of a common control switching system is demonstrated in figu

What are the 2 other types of views, What are the 2 other types of Views, w...

What are the 2 other types of Views, which are not allowed in Release 3.0? The two views are:- Structure Views. Entity Views.

Public key infrastructure solutions, Public Key Infrastructure solutions ...

Public Key Infrastructure solutions The use of public-key based security systems requires great attention and due care in design and management of security features. The secur

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd