]> Shamusworld >> Repos - rmac/blob - listing.h
329ea9373d32636aa896c2f412049c43fa646a4c
[rmac] / listing.h
1 ////////////////////////////////////////////////////////////////////////////////////////////////////
2 // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
3 // LISTING.H - Listing Output
4 // Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends
5 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
6 // Source Utilised with the Kind Permission of Landon Dyer
7
8 #ifndef __LISTING_H__
9 #define __LISTING_H__
10
11 #include <time.h>
12 #include "rmac.h"
13
14 #define BOT_MAR         1                                   // #blank lines on bottom of page
15 #define IMAGESIZ        200                                 // Max size of a line of text
16 #define TITLESIZ        200                                 // Max size of a title
17 #define LN_COL          0                                   // Column for line numbers
18 #define LOC_COL         7                                   // Location ptr
19 #define DATA_COL        17                                  // Data start (for 20 chars, usually 16)
20 #define DATA_END        (DATA_COL+20)                       // End+1th data column
21 #define TAG_COL         38                                  // Tag character
22 #define SRC_COL         40                                  // Source start
23
24 // Globals, externals etc
25 extern char *list_fname;
26 extern int listing;
27 extern int pagelen;
28 extern int nlines;
29 extern LONG lsloc;
30
31 // Prototypes
32 void init_list(void);
33 void ship_ln(char *);
34 void taglist(char);
35 void println(char *);
36 void listeol(void);
37 VALUE dos_date(void);
38 VALUE dos_time(void);
39 void lstout(char);
40 int listvalue(VALUE);
41 int d_subttl(void);
42 int d_title(void);
43
44 #endif // __LISTING_H__