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

How does bus arbitration typically work, How does bus arbitration typically...

How does bus arbitration typically work? i.  A bus master waiting to use the bus asserts by  the bus request. ii.  A bus master cannot be the bus until it's request is grant

Define checkbox in html, Q. Define Checkbox in html? Checkboxes are use...

Q. Define Checkbox in html? Checkboxes are used when one or more out of the group of options is to be chosen. Building Check boxes is very similar to radio buttons. Figure expl

An example subroutine call, Create your own Subprogram that does *not* use ...

Create your own Subprogram that does *not* use any input parameters. You decide the theme. You should give the pseudocode and an example Subroutine call. Be sure to give an overvie

What is error detection code, What is Error detection code? It is a bin...

What is Error detection code? It is a binary code that notice digital errors during transmission. The detected errors cannot be correct but the presence is shown.

What is internet service providers, Q. What is Internet Service Providers? ...

Q. What is Internet Service Providers? Nobody truly owns the Internet however it is maintained by a group of volunteers interested in supporting this mode of information interc

Explain design of adder, Q. Explain Design of adder? Adders play one of...

Q. Explain Design of adder? Adders play one of the most significant roles in binary arithmetic. As a matter of fact fixed point addition is frequently used as a simple measure

Define a structure, Define a structure. A structure having an ordered g...

Define a structure. A structure having an ordered group of data objects. Unlike the elements of an array, the data objects within a structure can have varied data types. Every

What is the main reason to encrypt a file, The main reason to encrypt a fil...

The main reason to encrypt a file is to ? Ans. The main purpose to encrypt a file is to secure that for transmission.

Explain their characteristics and limitations of grammar, Identify the diff...

Identify the different classes of grammar. Explain their characteristics and limitations. As proposed through Noam Chomsky that Chomsky hierarchy contains the subsequent level

Flynns categorization, Normal 0 false false false EN-US...

Normal 0 false false false EN-US X-NONE X-NONE

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