mirror of
https://github.com/open-simh/simtools.git
synced 2026-02-03 07:11:29 +00:00
Import J Hoppe's 20090427 release from http://retrocmp.com/tools/macro-11-on-windows
This commit is contained in:
65
listing.h
Normal file
65
listing.h
Normal file
@@ -0,0 +1,65 @@
|
||||
|
||||
#ifndef LISTING__H
|
||||
#define LISTING__H
|
||||
|
||||
#include "stream2.h"
|
||||
|
||||
/*
|
||||
format of a listing line
|
||||
Interestingly, no instances of this struct are ever created.
|
||||
It lives to be a way to layout the format of a list line.
|
||||
I wonder if I should have bothered.
|
||||
*/
|
||||
|
||||
typedef struct lstformat {
|
||||
char flag[2]; /* Error flags */
|
||||
char line_number[6]; /* Line number */
|
||||
char pc[8]; /* Location */
|
||||
char words[8][3]; /* three instruction words */
|
||||
char source[1]; /* source line */
|
||||
} LSTFORMAT;
|
||||
|
||||
|
||||
/* GLOBAL VARIABLES */
|
||||
#ifndef LISTING__C
|
||||
extern int list_md; /* option to list macro/rept definition = yes */
|
||||
|
||||
extern int list_me; /* option to list macro/rept expansion = yes */
|
||||
|
||||
extern int list_bex; /* option to show binary */
|
||||
|
||||
extern int list_level; /* Listing control level. .LIST
|
||||
increments; .NLIST decrements */
|
||||
|
||||
//extern char *listline; /* Source lines */
|
||||
|
||||
extern FILE *lstfile;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
void list_word(
|
||||
STREAM *str,
|
||||
unsigned addr,
|
||||
unsigned value,
|
||||
int size,
|
||||
char *flags);
|
||||
|
||||
void list_value(
|
||||
STREAM *str,
|
||||
unsigned word);
|
||||
|
||||
void list_source(
|
||||
STREAM *str,
|
||||
char *cp);
|
||||
|
||||
void list_flush(
|
||||
void);
|
||||
|
||||
void report(
|
||||
STREAM *str,
|
||||
char *fmt,
|
||||
...);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user