FictionTools/z88dk/src/sccz80/codegen.c
/* Put out assembler info before any code is generated */
Put out assembler info before any code is generated
Put out assembler info before any code is generated
void header(void)
{
    time_t tim;
    char* timestr;
    char* assembler = "z80 Module Assembler";
    outfmt(";%s\n",Banner);
    outfmt(";%s\n",Version);
    outfmt(";\n");
    if (ISASM(ASM_ASXX)) {
        assembler = "asxx";
    } else if (ISASM(ASM_VASM)) {
        assembler = "vasm";
    } else if (ISASM(ASM_GNU)) {
        assembler = "binutils";
    }
    outfmt(";\tReconstructed for %s\n", assembler);
    donelibheader = 0;
    if ((tim = time(NULL)) != -1) {
        timestr = ctime(&tim);
        outfmt(";\n");
        outfmt(";\tModule compile time: %s\n",timestr);
    }
    nl();
}
void header ( void ) { time_t tim ; char * timestr ; char * assembler = " " ; outfmt ( " \n " , Banner ) ; outfmt ( " \n " , Version ) ; outfmt ( " \n " ) ; if ( ISASM ( ASM_ASXX ) ) { assembler = " " ; } else if ( ISASM ( ASM_VASM ) ) { assembler = " " ; } else if ( ISASM ( ASM_GNU ) ) { assembler = " " ; } outfmt ( " \t \n " , assembler ) ; donelibheader = 0 ; if ( ( tim = time ( NULL ) ) != -1 ) { timestr = ctime ( & tim ) ; outfmt ( " \n " ) ; outfmt ( " \t \n " , timestr ) ; } nl ( ) ; }
Put out assembler info before any code is generated
Put out assembler info before any code is generated