Pointer(ptr)-assemblers directive-microprocessor, Assembly Language

PTR : Pointer:-

The pointer operator which is used to declare the type of a variable, label or memory operand. The operator PTR is prefixed by either WORD or BYTE. If the prefix is BYTE, then thespecific label, variable or memory operand is treated as an 8-bit quantity, whereas if WORD is the prefix, then it is treated as a 16-bit quantity.  In other terms, the PTR operator is used to mention the data type - byte or word. The examples of the PTR operator are following:

Example :

57_ptr.jpg

In particular case of JMP instructions, the PTR operator is used to mention the type of the jump, for example near or far, as describe in the examples given below.

JMP     WORD PTR [BX]-NEAR Jump

JMP     WORD PTR [BX]-FAR Jump

PUBLIC  As  already described,  the PUBLIC directive which is used along with the EXTRN  directive. This give information to the assembler that the variables, labels, constants, or procedures declared PUBLIC can be accessed  by other assembly modules to form their codes, but when using the PUBLIC declared variables, labels ,constants or procedures the user ought to declare them externals  by using the EXTRN directive. Instead, the data types declared EXTRN in a module of the program, can be declared PUBLIC in at least any one of the other modules of the similar program. (Refer to the explanation on EXTRN directive to get the clear idea of PUBLIC.)

Posted Date: 10/12/2012 6:02:33 AM | Location : United States







Related Discussions:- Pointer(ptr)-assemblers directive-microprocessor, Assignment Help, Ask Question on Pointer(ptr)-assemblers directive-microprocessor, Get Answer, Expert's Help, Pointer(ptr)-assemblers directive-microprocessor Discussions

Write discussion on Pointer(ptr)-assemblers directive-microprocessor
Your posts are moderated
Related Questions
END : END of Program:- The END directive marks the ending of the assembly language program. When the assembler comes across this END directive, it avoided the source lines avai

How do i convert a asci number to numerals?

Any small project which can implement on any software. No need any external hardware approach.

use">http://www.raritanval.edu/uploadedFiles/faculty/cs/full-time/Brower/CISY256/2013Spring/CISY256%20Assembly%20Project.pdf use microsoft visual 2010 and http://www.asmirvine.c

Write an assembly language program that will: accept keyboard input of a positive integer value N; compute the sum S= 1+ 2 + 3 + ... + N; print (output) the computed su

Write an 8086 program to find out the number of positive numbers and negative numbers from a given series of signed numbers include flow chart ..

Data copy/transfer Instructions MOV: This data transfer instruction transfers data from one register or memory location to another register or memory location. The source can

CAN U GIVE BRIEF THEORY

As an instance of the normal priority mode, imagine that initially AEOI is equal to 0 and all the ISR and IMR bits are clear. Also consider that, as shown in given figure, requests

Overview of Intel Pro-Pentium : The 2 chief players in the PC CPU market are Motorola and Intel.  Intel has enjoyed incredible success with its processors since the early 1980