]> Shamusworld >> Repos - rmac/blob - listing.h
Implement ^^FILESIZE unary operator that returns the file size of a given file. Minor...
[rmac] / listing.h
1 //
2 // RMAC - Reboot's Macro Assembler for all Atari computers
3 // LISTING.H - Listing Output
4 // Copyright (C) 199x Landon Dyer, 2011-2019 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
9 #ifndef __LISTING_H__
10 #define __LISTING_H__
11
12 #include <time.h>
13 #include "rmac.h"
14
15 #define BOT_MAR         1                               // #blank lines on bottom of page
16 #define IMAGESIZ        1024                    // Max size of a line of text
17 #define TITLESIZ        1024                    // Max size of a title
18 #define LN_COL          0                               // Column for line numbers
19 #define LOC_COL         7                               // Location ptr
20 #define DATA_COL        17                              // Data start (for 20 chars, usually 16)
21 #define DATA_END        (DATA_COL+20)   // End+1th data column
22 #define TAG_COL         38                              // Tag character
23 #define SRC_COL         40                              // Source start
24
25 // Exported variables
26 extern char * list_fname;
27 extern int listing;
28 extern int pagelen;
29 extern int nlines;
30 extern LONG lsloc;
31 extern uint8_t subttl[];
32
33 // Exported functions
34 int eject(void);
35 uint32_t dos_date(void);
36 uint32_t dos_time(void);
37 void taglist(char);
38 void println(const char *);
39 void ship_ln(const char *);
40 void InitListing(void);
41 void listeol(void);
42 void lstout(char);
43 int listvalue(uint32_t);
44 int d_subttl(void);
45 int d_title(void);
46
47 #endif // __LISTING_H__
48