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

Encrypting, write an assembly language program that has two subroutines : o...

write an assembly language program that has two subroutines : one for encrypting alphabates of a string and second fo decrypting the encoded string . in encryption simply converta

Dijkstra Implementation in Assembly Language x86, I am assigned to implemen...

I am assigned to implement dijkstra algorithm in assembly language. I am not a novice in assembly. I need help implementing it.Kindly if anyone then please.

Whle loop, program to accept 23 students name using while loop let your var...

program to accept 23 students name using while loop let your variable control the value negative 4

Introduction to microprocessor, Introduction to Microprocessor: Micropr...

Introduction to Microprocessor: Microprocessor works like a CPU in a microcomputer. It's present as a single IC chip in a microcomputer. Microprocessor is the soul of the machi

Intel 8259 interrupt controller-microprocessor, Intel 8259 interrupt contro...

Intel 8259 interrupt controller :  The 8088 processor has only two interrupt control inputs, and interrupt request (INTR) and non mask able interrupt (NMI). NMI are interrupts t

Motorola 68000 series, Motorola 68000 Series : 68000microprocessor is a...

Motorola 68000 Series : 68000microprocessor is a 16 bit processor that has addressing space of 65536 locations, each of which holds a 64-bits word; In order to address those lo

Dq-dt-assemblers directive-microprocessor, DQ:   Define  Quad word:-  Th...

DQ:   Define  Quad word:-  This directive is taken in use to direct the assembler to reserve 4 words (8 bytes) of memory for the specified variable and can initialise it having

Introduction to 80 x 86 assembly language, Using the windows32 framework, w...

Using the windows32 framework, write a complete 80x86 program for Programming Exercises 4.3 number 3, on pages 130-131 of the textbook. Follow all coding conventions mentioned in

ADDITION-SUBTRACTION, HELLO I AM TRYING TO ADD AND SUBTRACT BUT I SEEM CAN'...

HELLO I AM TRYING TO ADD AND SUBTRACT BUT I SEEM CAN''T FIND THE CORRECT REGISTER TO PUT IN

8088 timing system diagram-Microprocessor, 8088  Timing System Diagram ...

8088  Timing System Diagram The 8088 address/data  bus is divided  in 3 parts (a) the lower 8 address/data  bits, (b) the middle 8 address bits, and (c) the upper 4 status/

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