root/as8085/ldax_85.hpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. strcmp

// $Log: ldax_85.hpp,v $
// Revision 1.2  2011/03/25 22:47:07  doug
// add log and trim gpl stuff
////

char ldax_85[] = "$Id: ldax_85.hpp,v 1.2 2011/03/25 22:47:07 doug Exp $";

// Copyright(c)2011 Douglas W. Goodall, United States.

if(0 == strcmp(strupr(g_szOpcode),"LDAX")) {
        fprintf(g_flog,"Processing 8085 LDAX g_szOpcode\n");
        g_iLineType = TYPE_8085;
        g_iErrorNo ^= ERROR_UNKOP;
        if(0 < strlen(g_szParms)) {
                int bDone = FALSE;
                if(0 == strcmp(strupr(g_szParms),"BC")) {
                        g_ucBytes[g_iBytesIndex++] = 0x0A;
                        bDone = TRUE;
                }
                if(0 == strcmp(strupr(g_szParms),"DE")) {
                        g_ucBytes[g_iBytesIndex++] = 0x1A;
                        bDone = TRUE;
                }
                if(0 == strcmp(strupr(g_szParms),"B")) {
                        g_ucBytes[g_iBytesIndex++] = 0x0A;
                        bDone = TRUE;
                }
                if(0 == strcmp(strupr(g_szParms),"D")) {
                        g_ucBytes[g_iBytesIndex++] = 0x1A;
                        bDone = TRUE;
                }
                if(FALSE == bDone) {
                        g_iErrorNo |= ERROR_NOREG;
                }
        } else {
                g_iErrorNo |= ERROR_NOPARM;
        }
}

////////////////////
// eof - ldax.hpp //
////////////////////



/* [<][>][^][v][top][bottom][index][help] */