asmsym.h
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 106 行
H
106 行
/****************************************************************************
*
* Open Watcom Project
*
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
*
* This file contains Original Code and/or Modifications of Original
* Code as defined in and that are subject to the Sybase Open Watcom
* Public License version 1.0 (the 'License'). You may not use this file
* except in compliance with the License. BY USING THIS FILE YOU AGREE TO
* ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
* provided with the Original Code and Modifications, and is also
* available at www.sybase.com/developer/opensource.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
* ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
* NON-INFRINGEMENT. Please see the License for the specific language
* governing rights and limitations under the License.
*
* ========================================================================
*
* Description: Assmebler symbols internal structures and definitions.
*
****************************************************************************/
#ifndef _ASMSYM_H_
#define _ASMSYM_H_
#include "asminlin.h"
#include "asmops2.h"
typedef enum {
MT_BYTE,
MT_WORD,
MT_DWORD,
MT_QWORD,
MT_FWORD,
MT_TBYTE,
MT_OWORD,
MT_SHORT,
MT_NEAR,
MT_FAR,
MT_PTR,
#if defined( _STANDALONE_ )
MT_SBYTE,
MT_SWORD,
MT_SDWORD,
MT_STRUCT,
MT_PROC,
MT_ABS,
#endif
MT_ERROR,
MT_EMPTY
} memtype;
typedef struct asm_sym {
struct asm_sym *next;
char *name;
#if defined( _STANDALONE_ )
struct asm_sym *segment;
uint_32 offset;
uint_32 first_size; /* size of 1st initializer in bytes */
uint_32 first_length; /* size of 1st initializer--elts. dup'd */
uint_32 total_size; /* total number of bytes (sizeof) */
uint_32 total_length; /* total number of elements (lengthof) */
uint_32 count;
char *(*mangler)( struct asm_sym *sym, char *buffer );
unsigned public:1;
unsigned langtype:3;
#else
long addr;
#endif
memtype mem_type;
enum sym_state state;
struct asmfixup *fixup;
} asm_sym;
extern struct asm_sym *AsmLookup( const char *name );
extern struct asm_sym *AsmGetSymbol( const char *name );
#if defined( _STANDALONE_ )
extern void AsmTakeOut( const char *name );
extern int AsmChangeName( const char *old, const char *new );
extern void WriteListing( void );
extern struct asm_sym *AllocDSym( const char *, int );
#define IS_SYM_COUNTER( x ) ( ( x[0] == '$' ) && ( x[1] == 0 ) )
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?