2011-12-27 01:54:45 +02:00
|
|
|
//
|
2021-03-08 00:43:25 +02:00
|
|
|
// RMAC - Renamed Macro Assembler for all Atari computers
|
2011-12-27 00:50:27 +02:00
|
|
|
// LISTING.H - Listing Output
|
2021-03-08 00:43:25 +02:00
|
|
|
// Copyright (C) 199x Landon Dyer, 2011-2021 Reboot and Friends
|
2011-12-27 00:50:27 +02:00
|
|
|
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
|
2015-02-19 16:56:14 +02:00
|
|
|
// Source utilised with the kind permission of Landon Dyer
|
2011-12-27 01:54:45 +02:00
|
|
|
//
|
2011-12-27 00:50:27 +02:00
|
|
|
|
|
|
|
#ifndef __LISTING_H__
|
|
|
|
#define __LISTING_H__
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
#include "rmac.h"
|
|
|
|
|
2014-02-23 05:46:01 +02:00
|
|
|
#define BOT_MAR 1 // #blank lines on bottom of page
|
2017-05-06 18:00:34 +03:00
|
|
|
#define IMAGESIZ 1024 // Max size of a line of text
|
|
|
|
#define TITLESIZ 1024 // Max size of a title
|
2014-02-23 05:46:01 +02:00
|
|
|
#define LN_COL 0 // Column for line numbers
|
|
|
|
#define LOC_COL 7 // Location ptr
|
|
|
|
#define DATA_COL 17 // Data start (for 20 chars, usually 16)
|
|
|
|
#define DATA_END (DATA_COL+20) // End+1th data column
|
|
|
|
#define TAG_COL 38 // Tag character
|
|
|
|
#define SRC_COL 40 // Source start
|
2011-12-27 00:50:27 +02:00
|
|
|
|
2017-04-20 22:29:31 +03:00
|
|
|
// Exported variables
|
2014-02-23 05:46:01 +02:00
|
|
|
extern char * list_fname;
|
2011-12-27 00:50:27 +02:00
|
|
|
extern int listing;
|
|
|
|
extern int pagelen;
|
|
|
|
extern int nlines;
|
|
|
|
extern LONG lsloc;
|
2017-04-20 22:29:31 +03:00
|
|
|
extern uint8_t subttl[];
|
2011-12-27 00:50:27 +02:00
|
|
|
|
2017-04-20 22:29:31 +03:00
|
|
|
// Exported functions
|
2017-04-14 23:52:31 +03:00
|
|
|
int eject(void);
|
2017-08-29 20:20:17 +03:00
|
|
|
uint32_t dos_date(void);
|
|
|
|
uint32_t dos_time(void);
|
2011-12-27 00:50:27 +02:00
|
|
|
void taglist(char);
|
2012-11-24 21:48:52 +02:00
|
|
|
void println(const char *);
|
2017-04-20 22:29:31 +03:00
|
|
|
void ship_ln(const char *);
|
|
|
|
void InitListing(void);
|
2011-12-27 00:50:27 +02:00
|
|
|
void listeol(void);
|
|
|
|
void lstout(char);
|
2017-08-29 20:20:17 +03:00
|
|
|
int listvalue(uint32_t);
|
2011-12-27 00:50:27 +02:00
|
|
|
int d_subttl(void);
|
|
|
|
int d_title(void);
|
|
|
|
|
2011-12-27 01:54:45 +02:00
|
|
|
#endif // __LISTING_H__
|
2017-04-20 22:29:31 +03:00
|
|
|
|