|  | T.I.M | Toolchain Documentation
    | 
Code for calculating jump distances and assigning memory addresses to jump statements. More...
#include "asm.h"| Functions | |
| int | asm_calculate_addresses (asm_statement *statements, unsigned int base_address, asm_hash_table *labels) | 
| Assigns addresses to each statement so that jumps and calls can be calculated.  More... | |
Code for calculating jump distances and assigning memory addresses to jump statements.
| int asm_calculate_addresses | ( | asm_statement * | statements, | 
| unsigned int | base_address, | ||
| asm_hash_table * | labels | ||
| ) | 
Assigns addresses to each statement so that jumps and calls can be calculated.
| statements | - head of a linked list of asm statements. | 
| base_address | - Where the addresses of the program should start. | 
References asm_hash_table_get(), CALLI, error, JUMPI, log, NOT_EMITTED, opcode, and size.
Referenced by main().