⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 store.c

📁 坦尼保姆
💻 C
字号:
#define EXTERN extern#include "88.h"#include "macro.h"#define	SLOP		(80 * 2)wstore(x)register word	x;{    register reg	t;    register char	*sav_eapc = eapc;#ifdef LITTLE_ENDIAN    *eapc++ = x;    *eapc = x>>8;#else    t.w = x;    /*     * XXX WATCH OUT HERE!!     *     * This is special depending on the type of machine you have and     * whether the registers fall below memory or above memory in the     * final link map     */    if (eapc >= M && eapc < M + MEMBYTES) {		/* memory store is different from register */	    *eapc++ = t.b.lo;	    *eapc = t.b.hi;    }    else {	*eapc++ = t.b.hi;	*eapc = t.b.lo;    }#endif}xstore(x)register char	*x;{    register reg t;    register char	*sav_eapc = eapc;#ifdef LITTLE_ENDIAN    *eapc= *x;    *(eapc+1)= *(x+1);#else    t.w = *(word *)x;    /*     * XXX WATCH OUT HERE!!     *     * This is special depending on the type of machine you have and     * whether the registers fall below memory or above memory in the     * final link map     */    if (eapc <= M + MEMBYTES) {	/* memory store is different from register */	    *eapc = t.b.hi;	    *(eapc+1) = t.b.lo;    }    else {	*eapc = t.b.lo;	*(eapc+1) = t.b.hi;    }#endif /*!LITTLE_ENDIAN*/}rapwstore(w)register word	w;{    register reg	t;    register char	*ptr = (char *)rapw;#ifdef LITTLE_ENDIAN    *rapw = w;#else    t.w = w;    /*     * XXX WATCH OUT HERE!!     *     * This is special depending on the type of machine you have and     * whether the registers fall below memory or above memory in the     * final link map     */    if (ptr <= M + MEMBYTES) {	/* memory store is different from register */	    *ptr++ = t.b.lo;	    *ptr = t.b.hi;    }    else {	*ptr++ = t.b.hi;	*ptr = t.b.lo;    }#endif}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -