answersLogoWhite

0

  • Computer Programming
  • Java Programming
  • C Programming

What is the meaning of near and far definition in microprocessor programming using C?

User Avatar

Wiki User

βˆ™ 2005-05-04 06:47:48

Best Answer
Copy

Fundamentally any pointer in C is a reference to a memory location somewhere in system memory. While this seems simple in theory, in practice this is more complex when the microprocessor architecture is considered. Two considerations in computer programs are code size and speed. For this reason microprocessors have some additional modes which help reduce code and speed up code execution. Microprocessors fetch instructions from memory and then act on them. Included in these instructions are the addresses of the memory on which they will act. Modern microprocessors can access 2^32 memory locations (or more.) Thus a full memory location would take 32 bits to encode. The instruction may get quite large and take some moderate time to load from memory. To improve this situation the microprocessor manufacturers create instructions with "short" memory locations where part of the address is stored internally in a register in the microprocessor and the rest is held in this shortened address. These registers are called segment registers (in Intel processors) and the memory references are called relative addressing modes. This background finally brings us to the meaning of near and far. A near pointer reference is quick for the processor to handle but can only reference 64k bytes of memory. A far reference contains the entire memory location specified and can therefore specify memory anywhere in the microprocessor, it is however quite a bit slower to execute. This is less of an issue in modern processors but the choice becomes near and fast but only access 64k or far and slower but the entire memory map.

2005-05-04 06:47:48
This answer is:
πŸ€“
🀯
πŸ€”
User Avatar

Your Answer

Loading...

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)


What is microprocessor and explain the parts of microprocessor using block diagram?

microprocessor is a programmable,clock-drive device.


How many ic's used in the microprocessor?

we are using just one ic in a microprocessor


What is the definition of symbolic speech?

using a symbol or gesture to convey meaning


What is C plus plus programming?

It is high-level programming using the C++ programming language.


What does boobedoo mean?

There is no recorded definition for boobedoo. The meaning would have to be defined by the person using the slang.


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.


Contextual guessing strategies?

Contextual guessing strategies are used to guess, or speculate, the meaning of unfamiliar words. The techniques used include using context to get clues on the meaning of words. The ways to guess the meaning of a word include definition and using a dictionary, using surrounding words, and using pictures.


What is programming with c plus plus?

Programming with C++ is writing computer programs using the C++ programming language.


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)


Where can someone find the meaning to the term 'Alvor'?

There are various ways someone can find the meaning to the term 'Alvor', the definition of 'Alvor' can be found by using the internet, using the Elder Scrolls website or using the Elder Scrolls manual.


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.


What is sequential programming and modular programming and structured programming?

Sequential programming is programming that follows procedural steps. Modular programming on the other hand is a process of creating a software using interchangeable modules and finally structured programming is considered to be a precursor programming method.


What is the definition of economy in poetry?

Using as few words as possible to convey the meaning desired.


What is programming software used for?

Programming software is used to write computer programs using one or more computer programming languages.


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

How is control flow used to solve problems using computer programming


What is the method of programming when using C plus plus?

C++ allows any combination of structured programming, procedural programming, object-oriented programming and template metaprogramming.


How do you make a sentence using the word mire?

Depending on the definition you are using, an example would be "I played in the mire mud with my friend." Mire meaning slushy; soft.


What are the advantages of using segment registers in the 8085 microprocessor?

The 8085 does not have segment registers.


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.


Does software testing involves programming or coding?

No. Testing involves using. Debugging involves programming. Coding is just another word for programming.


How Convert decimal to binary using stack?

using C programming language


What programming language was MySQL written in?

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


What is structured programming in generally?

It means using only three structure when programming: sequence, selection, repetition.