answersLogoWhite

0


Best Answer

Programs that are loaded into memory typically have several segments associated with them: the Code Segment (CS), the Stack Segment (SS), the Data Segment (DS), sometimes an Extended Segment (ES), and almost always a Block Started by Symbol (BSS) segment. This question requires that we focus only on the Code Segment (CS). The CS is a segment of memory that contains some of the instructions that are required for the program to execute. If this segment is not large enough to contain the whole program then the program can be loaded into different segments. Such a segment may be 64Kb in size (although the size may differ). Instructions located in these segments are referred to by their offset from the start of the segment, and not by their absolute location in memory. Thus, in order to locate a certain instruction, we need the segment's starting address, and the offset of the instruction in that segment. Whenever a branch (jump, goto) takes place which refers to an instruction that is located in another segment, it is known as a far jump, conversely whenever a jump refers to an instruction that is located in the same segment, it is known as a near jump. The difference referring to the modication of the CS register which contains the address of the current Code Segment for the current running program.

User Avatar

Wiki User

18y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the meaning of near and far declaration in microprocessor programming using C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What has the author James Coffron written?

James Coffron has written: 'Using and troubleshooting the MC68000' -- subject(s): Motorola 68000 (Microprocessor) 'The Commodore 64 connection' -- subject(s): Commodore 64 (Computer), Computer interfaces 'Programming the 8086/8088' -- subject(s): IBM Personal Computer, Intel 8086 (Microprocessor), Intel 8088 (Microprocessor), Programming 'Microprocessor programming, troubleshooting, and interfacing the Z80, 8080, and 8085' -- subject(s): Intel 8080 (Microprocessor), Intel 8085 (Microprocessor), Zilog Z-80 (Microprocessor) 'The VIC-20 connection' -- subject(s): Computer interfaces, VIC 20 (Computer) 'Using and Troubleshooting the Z-8000' -- subject(s): Zilog Z8000 (Microprocessor) 'Proven techniques for troubleshooting the microprocessor and home computer systems' -- subject(s): Maintenance and repair, Microprocessors 'The Apple connection' -- subject(s): Apple computer, Computer interfaces 'Practical hardware details for 8080, 8085, Z80, and 6800 microprocessor systems' -- subject(s): Intel 8080 (Microprocessor), Intel 8085 (Microprocessor), Motorola 6800 (Microprocessor), Zilog Z-80 (Microprocessor)


How many ic's used in the microprocessor?

we are using just one ic in a microprocessor


What is optional for python programming?

One optional part of python programming is the declaration of variables before use. In many languages, you must declare your variables before using them, but in python, you can simply set a variable equal to something and it will handle the type without your help.


What has the author Andrew C Staugaard written?

Andrew C. Staugaard has written: 'Structured and object-oriented techniques' -- subject(s): C++ (Computer program language), C 'How to program and interface the 6800' -- subject(s): Motorola 6800 (Microprocessor), Programming 'Structured and object-oriented problem solving using C++' -- subject(s): Accessible book, C++ (Computer program language), Object-oriented programming (Computer science), Structured programming '6809 microcomputer programming & interfacing, with experiments' -- subject(s): Programming, Motorola 6809 (Computer) 'Robotics and AI' -- subject(s): Artificial intelligence, Industrial Robots, Robotics, Robots, Industrial '6809 microprocessor programming' -- subject(s): Laboratory manuals, Motorola 6809 (Computer)


What is step involve is using data file in c plus plus programming?

Declaration of file pointer opening of file in desired mode. performing the desired operation. closing the file


What is the first microprocessor of PC having 8 bit databus?

The Intel 8080 was the first microprocessor using an 8 bit databus.


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


How do you add and subtract 16 bit numbers using 8051 microprocessor?

The 8051 is a microcontroller, not a microprocessor. To add or subtract, use the ADD or SUBB opcodes.


How do you write Ascending order program using 8086 microprocessor?

One many find this answer on YouTube. One also may find out how to write ascending order programs using an 8086 microprocessor by looking at the owners manual.


How was Minecraft made?

Notch wrote Minecraft using the Java programming language.


How is control flow used to solve problems using computer programming?

How is control flow used to solve problems using computer programming


Is MySQL a programming language?

MySQL was written and developed using the C and C++ programming languages.