00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "htdebug.h"
00022 #include "out_map.h"
00023
00024 #define STREAM_WRITE_STR(s, str) s->write((void*)str, strlen(str))
00025
00026 bool output_map_file(ht_stream *s, Analyser *analy)
00027 {
00028 assert(s);
00029 assert(analy);
00030
00031
00032 char c=' ';
00033 s->write(&c, 1);
00034 STREAM_WRITE_STR(s, analy->get_name());
00035 c='\n';
00036 s->write(&c, 1);
00037 s->write(&c, 1);
00038 STREAM_WRITE_STR(s, " Start Length Name\n");
00039 STREAM_WRITE_STR(s, " 0000:00000000 00004800H CODE\n\n");
00040
00041 tlabel *sym = analy->enum_labels(NULL);
00042 STREAM_WRITE_STR(s, " Address Publics by Value\n");
00043
00044 }
00045