??? 08/25/10 23:05 Read: times |
#178320 - Instructions can't always store full target address Responding to: ???'s previous message |
The processor instruction has a fixed number of bits allocated for specifying where to jump.
Some instructions may store an absolute address and some may store a relative address. Not all instructions can perform a full jump to anywhere in the code space. Then you either need to rearrange the code to get the target label closer, or do a two-step jump. Maybe a conditonal jump with reversed logic to skip the following instruction and continue down in the code and directly after the conditonal jump you have an unconditional jump that supports jumping all the way. By the way - you are not compiling anything. A compiler converts source code (C, Pascal, Fortran, ...) into machine instructions. An assembler don't compile anything. It just changes from mnemonics (text format) to the numeric format used by the processor. |
Topic | Author | Date |
help in Assembly compiling please | 01/01/70 00:00 | |
Instructions can't always store full target address | 01/01/70 00:00 | |
Dear Per Westermark | 01/01/70 00:00 | |
Code is horrific | 01/01/70 00:00 | |
hi Michael![]() | 01/01/70 00:00 |