2004/04/05 (月) 00:31:14 ◆ ▼ ◇ [mirai]/* $Header: ENVIRON.Hv 3.6 04/03/26 19:17:01 Exp $ */
/************************************************************************
** μITRON4.01 仕様リアルタイムOS **
** Copyright(c) 2004/03/21 NTT-Docomo **
************************************************************************/
#ifndef ENVIRON_H
#define ENVIRON_H
/*******************************************
** アセンブリ言語によるdefineマクロ **
*******************************************/
unsigned _asm_i( );
#define enable( ) _asm_i("\tSTI")
#define disable( ) _asm_i("\tCLI")
#define vset_ims( ) _asm_i("\tPUSHF"), \
_asm_i("\tCLI")
#define vret_ims( ) popf()
#define def_inthdr( ) *(FP far*)(0x064)=(FP)int_hdr, \
*(FP far*)(0x068)=(FP)int_hdr, \
*(FP far*)(0x06c)=(FP)int_hdr, \
*(FP far*)(0x070)=(FP)int_hdr, \
*(FP far*)(0x074)=(FP)int_hdr, \
*(FP far*)(0x078)=(FP)int_hdr, \
*(FP far*)(0x07c)=(FP)int_hdr