/*------------------------------------------------------------ HotC51汇编数组寄存器定义头文件(HotRegx52.h V1.02) 最初建立时间: 2009.2.18 最近修改时间: 2009.2.27 (正在添加之中,最终将彻底替代嵌入汇编) 增 添原 因: 为全面支持裸奔式实时操作系统HotTask51做准备 并替代年代久远的HotIns.h/c(不在HotTask51下使用) 应 用: 可以用COM接口技术对HotC51汇编数组进行封装 实现比嵌入汇编更为灵活和更非典之用,“汇编数组”的 出现,将程序战场蔓延至整个代码和数据区~~~ -------------------------------------------------------------*/
#ifndef __HotASM_Regx52_H__ #define __HotASM_Regx52_H__
#ifdef __cplusplus extern "C" { #endif
#include "hottask51.h"//裸奔之OS系统链接头文件 /*-------------------------------------------- 汇编数组通用寄存器组定义 --------------------------------------------*/ #define HotASM_Rn(Rn) (HotASM_REG)(Rn)
#define HotASM_R0 (HotASM_REG)0x00 #define HotASM_R1 (HotASM_REG)0x01 #define HotASM_R2 (HotASM_REG)0x02 #define HotASM_R3 (HotASM_REG)0x03 #define HotASM_R4 (HotASM_REG)0x04 #define HotASM_R5 (HotASM_REG)0x05 #define HotASM_R6 (HotASM_REG)0x06 #define HotASM_R7 (HotASM_REG)0x07
#define HotASM_RGn(group, Rn) (HotASM_REG)((group * 8) + (Rn % 8))
#define HotASM_R00 (HotASM_REG)0x00 #define HotASM_R01 (HotASM_REG)0x01 #define HotASM_R02 (HotASM_REG)0x02 #define HotASM_R03 (HotASM_REG)0x03 #define HotASM_R04 (HotASM_REG)0x04 #define HotASM_R05 (HotASM_REG)0x05 #define HotASM_R06 (HotASM_REG)0x06 #define HotASM_R07 (HotASM_REG)0x07
#define HotASM_R10 (HotASM_REG)0x08 #define HotASM_R11 (HotASM_REG)0x09 #define HotASM_R12 (HotASM_REG)0x0a #define HotASM_R13 (HotASM_REG)0x0b #define HotASM_R14 (HotASM_REG)0x0c #define HotASM_R15 (HotASM_REG)0x0d #define HotASM_R16 (HotASM_REG)0x0e #define HotASM_R17 (HotASM_REG)0x0f
#define HotASM_R20 (HotASM_REG)0x10 #define HotASM_R21 (HotASM_REG)0x11 #define HotASM_R22 (HotASM_REG)0x12 #define HotASM_R23 (HotASM_REG)0x13 #define HotASM_R24 (HotASM_REG)0x14 #define HotASM_R25 (HotASM_REG)0x15 #define HotASM_R26 (HotASM_REG)0x16 #define HotASM_R27 (HotASM_REG)0x17
#define HotASM_R30 (HotASM_REG)0x18 #define HotASM_R31 (HotASM_REG)0x19 #define HotASM_R32 (HotASM_REG)0x1a #define HotASM_R33 (HotASM_REG)0x1b #define HotASM_R34 (HotASM_REG)0x1c #define HotASM_R35 (HotASM_REG)0x1d #define HotASM_R36 (HotASM_REG)0x1e #define HotASM_R37 (HotASM_REG)0x1f /*-------------------------------------------- 汇编数组位寄存器位定义 --------------------------------------------*/ #define HotASM_20H (HotASM_REG)0x20 #define HotASM_20H_X(bit) (HotASM_REG)bit #define HotASM_20H_0 (HotASM_REG)0x00 #define HotASM_20H_1 (HotASM_REG)0x01 #define HotASM_20H_2 (HotASM_REG)0x02 #define HotASM_20H_3 (HotASM_REG)0x03 #define HotASM_20H_4 (HotASM_REG)0x04 #define HotASM_20H_5 (HotASM_REG)0x05 #define HotASM_20H_6 (HotASM_REG)0x06 #define HotASM_20H_7 (HotASM_REG)0x07 #define HotASM_21H (HotASM_REG)0x21 #define HotASM_21H_X(bit) (HotASM_REG)(0x08 + bit) #define HotASM_21H_0 (HotASM_REG)0x08 #define HotASM_21H_1 (HotASM_REG)0x09 #define HotASM_21H_2 (HotASM_REG)0x0a #define HotASM_21H_3 (HotASM_REG)0x0b #define HotASM_21H_4 (HotASM_REG)0x0c #define HotASM_21H_5 (HotASM_REG)0x0d #define HotASM_21H_6 (HotASM_REG)0x0e #define HotASM_21H_7 (HotASM_REG)0x0f #define HotASM_22H (HotASM_REG)0x22 #define HotASM_22H_X(bit) (HotASM_REG)(0x10 + bit) #define HotASM_22H_0 (HotASM_REG)0x10 #define HotASM_22H_1 (HotASM_REG)0x11 #define HotASM_22H_2 (HotASM_REG)0x12 #define HotASM_22H_3 (HotASM_REG)0x13 #define HotASM_22H_4 (HotASM_REG)0x14 #define HotASM_22H_5 (HotASM_REG)0x15 #define HotASM_22H_6 (HotASM_REG)0x16 #define HotASM_22H_7 (HotASM_REG)0x17 #define HotASM_23H (HotASM_REG)0x21 #define HotASM_23H_X(bit) (HotASM_REG)(0x18 + bit) #define HotASM_23H_0 (HotASM_REG)0x18 #define HotASM_23H_1 (HotASM_REG)0x19 #define HotASM_23H_2 (HotASM_REG)0x1a #define HotASM_23H_3 (HotASM_REG)0x1b #define HotASM_23H_4 (HotASM_REG)0x1c #define HotASM_23H_5 (HotASM_REG)0x1d #define HotASM_23H_6 (HotASM_REG)0x1e #define HotASM_23H_7 (HotASM_REG)0x1f #define HotASM_24H (HotASM_REG)0x24 #define HotASM_24H_X(bit) (HotASM_REG)(0x20 + bit) #define HotASM_24H_0 (HotASM_REG)0x20 #define HotASM_24H_1 (HotASM_REG)0x21 #define HotASM_24H_2 (HotASM_REG)0x22 #define HotASM_24H_3 (HotASM_REG)0x23 #define HotASM_24H_4 (HotASM_REG)0x24 #define HotASM_24H_5 (HotASM_REG)0x25 #define HotASM_24H_6 (HotASM_REG)0x26 #define HotASM_24H_7 (HotASM_REG)0x27 #define HotASM_25H (HotASM_REG)0x25 #define HotASM_25H_X(bit) (HotASM_REG)(0x28 + bit) #define HotASM_25H_0 (HotASM_REG)0x28 #define HotASM_25H_1 (HotASM_REG)0x29 #define HotASM_25H_2 (HotASM_REG)0x2a #define HotASM_25H_3 (HotASM_REG)0x2b #define HotASM_25H_4 (HotASM_REG)0x2c #define HotASM_25H_5 (HotASM_REG)0x2d #define HotASM_25H_6 (HotASM_REG)0x2e #define HotASM_25H_7 (HotASM_REG)0x2f #define HotASM_26H (HotASM_REG)0x26 #define HotASM_26H_X(bit) (HotASM_REG)(0x30 + bit) #define HotASM_26H_0 (HotASM_REG)0x30 #define HotASM_26H_1 (HotASM_REG)0x31 #define HotASM_26H_2 (HotASM_REG)0x32 #define HotASM_26H_3 (HotASM_REG)0x33 #define HotASM_26H_4 (HotASM_REG)0x34 #define HotASM_26H_5 (HotASM_REG)0x35 #define HotASM_26H_6 (HotASM_REG)0x36 #define HotASM_26H_7 (HotASM_REG)0x37 #define HotASM_27H (HotASM_REG)0x27 #define HotASM_27H_X(bit) (HotASM_REG)(0x38 + bit) #define HotASM_27H_0 (HotASM_REG)0x38 #define HotASM_27H_1 (HotASM_REG)0x39 #define HotASM_27H_2 (HotASM_REG)0x3a #define HotASM_27H_3 (HotASM_REG)0x3b #define HotASM_27H_4 (HotASM_REG)0x3c #define HotASM_27H_5 (HotASM_REG)0x3d #define HotASM_27H_6 (HotASM_REG)0x3e #define HotASM_27H_7 (HotASM_REG)0x3f #define HotASM_28H (HotASM_REG)0x28 #define HotASM_28H_X(bit) (HotASM_REG)(0x40 + bit) #define HotASM_28H_0 (HotASM_REG)0x40 #define HotASM_28H_1 (HotASM_REG)0x41 #define HotASM_28H_2 (HotASM_REG)0x42 #define HotASM_28H_3 (HotASM_REG)0x43 #define HotASM_28H_4 (HotASM_REG)0x44 #define HotASM_28H_5 (HotASM_REG)0x45 #define HotASM_28H_6 (HotASM_REG)0x46 #define HotASM_28H_7 (HotASM_REG)0x47 #define HotASM_29H (HotASM_REG)0x29 #define HotASM_29H_X(bit) (HotASM_REG)(0x48 + bit) #define HotASM_29H_0 (HotASM_REG)0x48 #define HotASM_29H_1 (HotASM_REG)0x49 #define HotASM_29H_2 (HotASM_REG)0x4a #define HotASM_29H_3 (HotASM_REG)0x4b #define HotASM_29H_4 (HotASM_REG)0x4c #define HotASM_29H_5 (HotASM_REG)0x4d #define HotASM_29H_6 (HotASM_REG)0x4e #define HotASM_29H_7 (HotASM_REG)0x4f #define HotASM_2AH (HotASM_REG)0x2A #define HotASM_2AH_X(bit) (HotASM_REG)(0x50 + bit) #define HotASM_2AH_0 (HotASM_REG)0x50 #define HotASM_2AH_1 (HotASM_REG)0x51 #define HotASM_2AH_2 (HotASM_REG)0x52 #define HotASM_2AH_3 (HotASM_REG)0x53 #define HotASM_2AH_4 (HotASM_REG)0x54 #define HotASM_2AH_5 (HotASM_REG)0x55 #define HotASM_2AH_6 (HotASM_REG)0x56 #define HotASM_2AH_7 (HotASM_REG)0x57 #define HotASM_2BH (HotASM_REG)0x2B #define HotASM_2BH_X(bit) (HotASM_REG)(0x58 + bit) #define HotASM_2BH_0 (HotASM_REG)0x58 #define HotASM_2BH_1 (HotASM_REG)0x59 #define HotASM_2BH_2 (HotASM_REG)0x5a #define HotASM_2BH_3 (HotASM_REG)0x5b #define HotASM_2BH_4 (HotASM_REG)0x5c #define HotASM_2BH_5 (HotASM_REG)0x5d #define HotASM_2BH_6 (HotASM_REG)0x5e #define HotASM_2BH_7 (HotASM_REG)0x5f #define HotASM_2CH (HotASM_REG)0x2C #define HotASM_2CH_X(bit) (HotASM_REG)(0x60 + bit) #define HotASM_2AH_0 (HotASM_REG)0x50 #define HotASM_2AH_1 (HotASM_REG)0x51 #define HotASM_2AH_2 (HotASM_REG)0x52 #define HotASM_2AH_3 (HotASM_REG)0x53 #define HotASM_2AH_4 (HotASM_REG)0x54 #define HotASM_2AH_5 (HotASM_REG)0x55 #define HotASM_2AH_6 (HotASM_REG)0x56 #define HotASM_2AH_7 (HotASM_REG)0x57 #define HotASM_2DH (HotASM_REG)0x2F #define HotASM_2DH_X(bit) (HotASM_REG)(0x68 + bit) #define HotASM_2DH_0 (HotASM_REG)0x68 #define HotASM_2DH_1 (HotASM_REG)0x69 #define HotASM_2DH_2 (HotASM_REG)0x6a #define HotASM_2DH_3 (HotASM_REG)0x6b #define HotASM_2DH_4 (HotASM_REG)0x6c #define HotASM_2DH_5 (HotASM_REG)0x6d #define HotASM_2DH_6 (HotASM_REG)0x6e #define HotASM_2DH_7 (HotASM_REG)0x6f #define HotASM_2EH (HotASM_REG)0x2E #define HotASM_2EH_X(bit) (HotASM_REG)(0x70 + bit) #define HotASM_2EH_0 (HotASM_REG)0x70 #define HotASM_2EH_1 (HotASM_REG)0x71 #define HotASM_2EH_2 (HotASM_REG)0x72 #define HotASM_2EH_3 (HotASM_REG)0x73 #define HotASM_2EH_4 (HotASM_REG)0x74 #define HotASM_2EH_5 (HotASM_REG)0x75 #define HotASM_2EH_6 (HotASM_REG)0x76 #define HotASM_2EH_7 (HotASM_REG)0x77 #define HotASM_2FH (HotASM_REG)0x2F #define HotASM_2FH_X(bit) (HotASM_REG)(0x78 + bit) #define HotASM_2FH_0 (HotASM_REG)0x78 #define HotASM_2FH_1 (HotASM_REG)0x79 #define HotASM_2FH_2 (HotASM_REG)0x7a #define HotASM_2FH_3 (HotASM_REG)0x7b #define HotASM_2FH_4 (HotASM_REG)0x7c #define HotASM_2FH_5 (HotASM_REG)0x7d #define HotASM_2FH_6 (HotASM_REG)0x7e #define HotASM_2FH_7 (HotASM_REG)0x7f /*----------------------------------------------------------- 汇编数组PX寄存器位定义(HotC51宏扩展接口) 寄存器名:Pn(Pn) Pn=0~3(可能还有更多的) ------------------------------------------------------------*/ #define HotASM_Pn(Pn) (HotASM_REG)(0x80 + Pn * 0x10) #define HotASM_Pn_X(Pn, bit) (HotASM_REG)(0x80 + Pn * 0x10 + bit) /*-------------------------------------------- 汇编数组51寄存器定义 --------------------------------------------*/ #define HotASM_P0 (HotASM_REG)0x80 /*-------------------------------------------- 汇编数组P0寄存器位定义 --------------------------------------------*/ #define HotASM_P0_X(bit) (HotASM_REG)(0x80 + bit)
#define HotASM_P0_0 (HotASM_REG)0x80 #define HotASM_P0_1 (HotASM_REG)0x81 #define HotASM_P0_2 (HotASM_REG)0x82 #define HotASM_P0_3 (HotASM_REG)0x83 #define HotASM_P0_4 (HotASM_REG)0x84 #define HotASM_P0_5 (HotASM_REG)0x85 #define HotASM_P0_6 (HotASM_REG)0x86 #define HotASM_P0_7 (HotASM_REG)0x87 #define HotASM_SP (HotASM_REG)0x81 #define HotASM_DPL (HotASM_REG)0x82 #define HotASM_DPH (HotASM_REG)0x83 #define HotASM_PCON (HotASM_REG)0x87 /*-------------------------------------------- 汇编数组PCON寄存器位定义(不能位寻址) --------------------------------------------*/ #define HotASM_PCON_IDL (HotASM_REG)0x01 #define HotASM_PCON_STOP (HotASM_REG)0x02 #define HotASM_PCON_PD (HotASM_REG)0x03 /* Alternate definition */ #define HotASM_PCON_GF0 (HotASM_REG)0x08 #define HotASM_PCON_GF1 (HotASM_REG)0x04
#define HotASM_PCON_SMOD (HotASM_REG)0x80 #define HotASM_TCON (HotASM_REG)0x88 /*-------------------------------------------- 汇编数组TCON寄存器位定义 --------------------------------------------*/ #define HotASM_TCON_X(bit) (HotASM_REG)(0x88 + bit)
#define HotASM_TCON_0 (HotASM_REG)0x88 #define HotASM_TCON_1 (HotASM_REG)0x89 #define HotASM_TCON_2 (HotASM_REG)0x8A #define HotASM_TCON_3 (HotASM_REG)0x8B #define HotASM_TCON_4 (HotASM_REG)0x8C #define HotASM_TCON_5 (HotASM_REG)0x8D #define HotASM_TCON_6 (HotASM_REG)0x8E #define HotASM_TCON_7 (HotASM_REG)0x8F
#define HotASM_TCON_IT0 (HotASM_REG)0x88 #define HotASM_TCON_IE0 (HotASM_REG)0x89 #define HotASM_TCON_IT1 (HotASM_REG)0x8A #define HotASM_TCON_IE1 (HotASM_REG)0x8B #define HotASM_TCON_TR0 (HotASM_REG)0x8C #define HotASM_TCON_TF0 (HotASM_REG)0x8D #define HotASM_TCON_TR1 (HotASM_REG)0x8E #define HotASM_TCON_TF1 (HotASM_REG)0x8F #define HotASM_TMOD (HotASM_REG)0x89 /*-------------------------------------------- 汇编数组TMOD寄存器位定义(不能位寻址) --------------------------------------------*/ #define HotASM_TMOD_0 (HotASM_REG)0x01 #define HotASM_TMOD_1 (HotASM_REG)0x02 #define HotASM_TMOD_2 (HotASM_REG)0x04 #define HotASM_TMOD_3 (HotASM_REG)0x08 #define HotASM_TMOD_4 (HotASM_REG)0x10 #define HotASM_TMOD_5 (HotASM_REG)0x20 #define HotASM_TMOD_6 (HotASM_REG)0x40 #define HotASM_TMOD_7 (HotASM_REG)0x80
#define HotASM_TL0 (HotASM_REG)0x8a #define HotASM_TH0 (HotASM_REG)0x8c #define HotASM_TL1 (HotASM_REG)0x8b #define HotASM_TH1 (HotASM_REG)0x8d #define HotASM_P1 (HotASM_REG)0x90 /*-------------------------------------------- 汇编数组P1寄存器位定义 --------------------------------------------*/ #define HotASM_P1_X(bit) (HotASM_REG)(0x90 + bit)
#define HotASM_P1_0 (HotASM_REG)0x90 #define HotASM_P1_1 (HotASM_REG)0x91 #define HotASM_P1_2 (HotASM_REG)0x92 #define HotASM_P1_3 (HotASM_REG)0x93 #define HotASM_P1_4 (HotASM_REG)0x94 #define HotASM_P1_5 (HotASM_REG)0x95 #define HotASM_P1_6 (HotASM_REG)0x96 #define HotASM_P1_7 (HotASM_REG)0x97 #define HotASM_SCON (HotASM_REG)0x98 /*-------------------------------------------- 汇编数组SCON寄存器位定义 --------------------------------------------*/ #define HotASM_SCON_X(bit) (HotASM_REG)(0x98 + bit)
#define HotASM_SCON_0 (HotASM_REG)0x98 #define HotASM_SCON_1 (HotASM_REG)0x99 #define HotASM_SCON_2 (HotASM_REG)0x9A #define HotASM_SCON_3 (HotASM_REG)0x9B #define HotASM_SCON_4 (HotASM_REG)0x9C #define HotASM_SCON_5 (HotASM_REG)0x9D #define HotASM_SCON_6 (HotASM_REG)0x9E #define HotASM_SCON_7 (HotASM_REG)0x9F
#define HotASM_SCON_RI (HotASM_REG)0x98 #define HotASM_SCON_TI (HotASM_REG)0x99 #define HotASM_SCON_RB8 (HotASM_REG)0x9A #define HotASM_SCON_TB8 (HotASM_REG)0x9B #define HotASM_SCON_REN (HotASM_REG)0x9C #define HotASM_SCON_SM2 (HotASM_REG)0x9D #define HotASM_SCON_SM1 (HotASM_REG)0x9E #define HotASM_SCON_SM0 (HotASM_REG)0x9F #define HotASM_SBUF (HotASM_REG)0x99 #define HotASM_P2 (HotASM_REG)0xa0 /*-------------------------------------------- 汇编数组P2寄存器位定义 --------------------------------------------*/ #define HotASM_P2_X(bit) (HotASM_REG)(0xa0 + bit)
#define HotASM_P2_0 (HotASM_REG)0xa0 #define HotASM_P2_1 (HotASM_REG)0xa1 #define HotASM_P2_2 (HotASM_REG)0xa2 #define HotASM_P2_3 (HotASM_REG)0xa3 #define HotASM_P2_4 (HotASM_REG)0xa4 #define HotASM_P2_5 (HotASM_REG)0xa5 #define HotASM_P2_6 (HotASM_REG)0xa6 #define HotASM_P2_7 (HotASM_REG)0xa7 #define HotASM_IE (HotASM_REG)0xa8 /*-------------------------------------------- 汇编数组IE寄存器位定义 --------------------------------------------*/ #define HotASM_IE_X(bit) (HotASM_REG)(0xa8 + bit)
#define HotASM_IE0 (HotASM_REG)0xa8 #define HotASM_IE1 (HotASM_REG)0xa9 #define HotASM_IE2 (HotASM_REG)0xaa #define HotASM_IE3 (HotASM_REG)0xab #define HotASM_IE4 (HotASM_REG)0xac #define HotASM_IE5 (HotASM_REG)0xad #define HotASM_IE6 (HotASM_REG)0xae #define HotASM_IE7 (HotASM_REG)0xaf
#define HotASM_EX0 (HotASM_REG)0xa8 #define HotASM_ET0 (HotASM_REG)0xa9 #define HotASM_EX1 (HotASM_REG)0xaa #define HotASM_ET1 (HotASM_REG)0xab #define HotASM_ES (HotASM_REG)0xac #define HotASM_ET2 (HotASM_REG)0xad // #define HotASM_IE6 (HotASM_REG)0xae #define HotASM_EA (HotASM_REG)0xaf #define HotASM_P3 (HotASM_REG)0xb0 /*-------------------------------------------- 汇编数组P3寄存器位定义 --------------------------------------------*/ #define HotASM_P3_X(bit) (HotASM_REG)(0xb0 + bit)
#define HotASM_P3_0 (HotASM_REG)0xb0 #define HotASM_P3_1 (HotASM_REG)0xb1 #define HotASM_P3_2 (HotASM_REG)0xb2 #define HotASM_P3_3 (HotASM_REG)0xb3 #define HotASM_P3_4 (HotASM_REG)0xb4 #define HotASM_P3_5 (HotASM_REG)0xb5 #define HotASM_P3_6 (HotASM_REG)0xb6 #define HotASM_P3_7 (HotASM_REG)0xb7 #define HotASM_IP (HotASM_REG)0xb8 /*-------------------------------------------- 汇编数组IP寄存器位定义 --------------------------------------------*/ #define HotASM_IP_X(bit) (HotASM_REG)(0xb8 + bit)
#define HotASM_IP_0 (HotASM_REG)0xb8 #define HotASM_IP_1 (HotASM_REG)0xb9 #define HotASM_IP_2 (HotASM_REG)0xba #define HotASM_IP_3 (HotASM_REG)0xbb #define HotASM_IP_4 (HotASM_REG)0xbc #define HotASM_IP_5 (HotASM_REG)0xbd #define HotASM_IP_6 (HotASM_REG)0xbe #define HotASM_IP_7 (HotASM_REG)0xbf #define HotASM_PSW (HotASM_REG)0xd0 /*-------------------------------------------- 汇编数组PSW寄存器位定义 --------------------------------------------*/ #define HotASM_PSW_X(bit) (HotASM_REG)(0xd0 + bit)
#define HotASM_PSW_0 (HotASM_REG)0xd0 #define HotASM_PSW_1 (HotASM_REG)0xd1 #define HotASM_PSW_2 (HotASM_REG)0xd2 #define HotASM_PSW_3 (HotASM_REG)0xd3 #define HotASM_PSW_4 (HotASM_REG)0xd4 #define HotASM_PSW_5 (HotASM_REG)0xd5 #define HotASM_PSW_6 (HotASM_REG)0xd6 #define HotASM_PSW_7 (HotASM_REG)0xd7
#define HotASM_PSW_PX0 (HotASM_REG)0xd0 #define HotASM_PSW_PT0 (HotASM_REG)0xd1 #define HotASM_PSW_PX1 (HotASM_REG)0xd2 #define HotASM_PSW_PT1 (HotASM_REG)0xd3 #define HotASM_PSW_PS (HotASM_REG)0xd4 #define HotASM_PSW_PT2 (HotASM_REG)0xd5 // #define HotASM_PSW_6 (HotASM_REG)0xd6 // #define HotASM_PSW_7 (HotASM_REG)0xd7
#define HotASM_PSW_P (HotASM_REG)0xd0 #define HotASM_PSW_F1 (HotASM_REG)0xd1 #define HotASM_PSW_OV (HotASM_REG)0xd2 #define HotASM_PSW_RS0 (HotASM_REG)0xd3 #define HotASM_PSW_RS1 (HotASM_REG)0xd4 #define HotASM_PSW_F0 (HotASM_REG)0xd5 #define HotASM_PSW_AC (HotASM_REG)0xd6 #define HotASM_PSW_C (HotASM_REG)0xd7 #define HotASM_T2CON (HotASM_REG)0xc8 /*-------------------------------------------- 汇编数组T2CON寄存器位定义 --------------------------------------------*/ #define HotASM_T2CON_X(bit) (HotASM_REG)(0xc8 + bit)
#define HotASM_T2CON_0 (HotASM_REG)0xc8 #define HotASM_T2CON_1 (HotASM_REG)0xc9 #define HotASM_T2CON_2 (HotASM_REG)0xca #define HotASM_T2CON_3 (HotASM_REG)0xcb #define HotASM_T2CON_4 (HotASM_REG)0xcc #define HotASM_T2CON_5 (HotASM_REG)0xcd #define HotASM_T2CON_6 (HotASM_REG)0xce #define HotASM_T2CON_7 (HotASM_REG)0xcf
#define HotASM_TH2 (HotASM_REG)0xcd #define HotASM_TL2 (HotASM_REG)0xcc #define HotASM_RCAP2H (HotASM_REG)0xcb #define HotASM_RCAP2L (HotASM_REG)0xca #define HotASM_ACC (HotASM_REG)0xe0 /*-------------------------------------------- 汇编数组ACC寄存器位定义 --------------------------------------------*/ #define HotASM_ACC_X(bit) (HotASM_REG)(0xe0 + bit)
#define HotASM_ACC_0 (HotASM_REG)0xe0 #define HotASM_ACC_1 (HotASM_REG)0xe1 #define HotASM_ACC_2 (HotASM_REG)0xe2 #define HotASM_ACC_3 (HotASM_REG)0xe3 #define HotASM_ACC_4 (HotASM_REG)0xe4 #define HotASM_ACC_5 (HotASM_REG)0xe5 #define HotASM_ACC_6 (HotASM_REG)0xe6 #define HotASM_ACC_7 (HotASM_REG)0xe7 #define HotASM_B (HotASM_REG)0xf0 /*-------------------------------------------- 汇编数组B寄存器位定义 --------------------------------------------*/ #define HotASM_B_X(bit) (HotASM_REG)(0xf0 + bit)
#define HotASM_B_0 (HotASM_REG)0xf0 #define HotASM_B_1 (HotASM_REG)0xf1 #define HotASM_B_2 (HotASM_REG)0xf2 #define HotASM_B_3 (HotASM_REG)0xf3 #define HotASM_B_4 (HotASM_REG)0xf4 #define HotASM_B_5 (HotASM_REG)0xf5 #define HotASM_B_6 (HotASM_REG)0xf6 #define HotASM_B_7 (HotASM_REG)0xf7
#ifdef __cplusplus } #endif #endif//__HotASM_Regx52_H__
|
|
文章评论(0条评论)
登录后参与讨论