ack/util/ceg/ce_back/obj_back/label.c

31 lines
621 B
C
Raw Normal View History

1987-11-20 10:41:03 +00:00
#include <out.h>
#include "header.h"
#include "back.h"
int Label, label_waiting;
save_label( lab)
char *lab;
1987-11-25 13:54:01 +00:00
/* It is now not possible to tell where the label belongs to, so store
* the string and remember the returned index to store the missing
* information later on (see dump_label()). Two labels at one address
* is not allowed.
*/
1987-11-20 10:41:03 +00:00
{
Label = find_sym( lab, SYMBOL_DEFINITION);
label_waiting = 1;
}
dump_label()
{
if ( label_waiting) {
align_word();
symbol_table[ Label].on_valu = cur_value();
symbol_table[ Label].on_type |= ( S_MIN + conv_seg( cur_seg));
label_waiting = 0;
}
}