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

📄 maths.c

📁 使用picc开发的基于pic16f87x的与上位机进行串行通信的源程序
💻 C
字号:
/*

KeyGhost

Designed by Shane Tolmie Apr 99.

Microprocessor: see mainkg.c

Compiled with:	see mainkg.c

Overall goal: 	maths routines

*/

#include	<pic.h>
#include	"always.h"
#include	"maths.h"

unsigned char maths_temp;
/*
unsigned char rotate_left(unsigned char bitrotate)
{
	maths_temp=bitrotate;	//change local to global variable
	CARRY=0;

	asm("RLF _maths_temp,f");												//rotate left through carry
	if (maths_temp==0) asm("RLF _maths_temp,f");		//as it goes through carry it must be rotated twice if at end
	return maths_temp;
}
*/
/*
unsigned char rotate_right(unsigned char bitrotate)
{
	maths_temp=bitrotate;	//change local to global variable
	CARRY=0;

	asm("RRF _maths_temp,f");											//rotate right through carry
	if (maths_temp==0) asm("RRF _maths_temp,f");	//as it goes through carry it must be rotated twice if at end
	return maths_temp;
}
*/

		
		

⌨️ 快捷键说明

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