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

Assignment Help:

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.)


Related Discussions:- Pointer(ptr)-assemblers directive-microprocessor

Avr, how to code

how to code

8086 microprocessors, program to find negative and positive integers from g...

program to find negative and positive integers from given signed numbers with output and explanation of every instructions.

Imul-arithmetic instruction-microprocessor, IMUL: Signed Multiplication: T...

IMUL: Signed Multiplication: This instruction multiplies a signed byte by a signed bit in source operand e in the register AL or signed word in source operand by signed word in th

Pc bus and interrupt system-microprocessor, PC Bus and Interrupt System ...

PC Bus and Interrupt System The PC Bus utilized a bus controller, address latches, and data transceivers (bidirectional data buffers). 1) Bus controller : ( Intel 8288 Bus

Instructions, Difference between div and idiv

Difference between div and idiv

Copy a string backwards, I can get it to copy the string but can''t get it ...

I can get it to copy the string but can''t get it to reverse it.

Any project ideas plz, can any one help me in my project by using assembly ...

can any one help me in my project by using assembly language

Login system, a pseudo-code to add username and password combination up to ...

a pseudo-code to add username and password combination up to a limit of 10

Program, Write a program to separate out positive and negative numbers from...

Write a program to separate out positive and negative numbers from a given series of 16-bit hexadecimal numbers.

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