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

📄 font.bak

📁 日本FAMILY按摩椅W-1用的配套操作器程序。带VFD显示
💻 BAK
字号:
/********************************************************/
/*                                                      */
/*		Display Hander Program                          */
/*                                                      */
/*                                                      */
/********************************************************/
/*			Get Font process                            
/********************************************************/

#include	<stdio.h>
#include	<ctype.h>
extern  unsigned char fetch_dot_no ;
	typedef	union{										// font data type
		          	unsigned int	wcode ;

					struct {
								unsigned	char	high ;
								unsigned	char	low ;
						   } scode ;
				  } TCODE ;
	
	typedef	struct{
						unsigned	char	str;
						unsigned int		*font;
						
				  }SFTABLE;

extern	const SFTABLE		f81xx[] ;
extern	const SFTABLE		f82xx[] ;
extern	const SFTABLE		f83xx[] ;
//extern	const SFTABLE		f84xx[] ;
extern	const SFTABLE		f87xx[] ;			
extern	const SFTABLE		f88xx[] ;
extern	const SFTABLE		f89xx[] ;
extern	const SFTABLE		f8Axx[] ;
extern	const SFTABLE		f8Bxx[] ;
extern	const SFTABLE		f8Cxx[] ;
extern	const SFTABLE		f8Dxx[] ;
extern	const SFTABLE		f8Exx[] ;
extern	const SFTABLE		f8Fxx[] ;
extern	const SFTABLE		f90xx[] ;
extern	const SFTABLE		f91xx[] ;
extern	const SFTABLE		f92xx[] ;
extern	const SFTABLE		f93xx[] ;
extern	const SFTABLE		f94xx[] ;
extern	const SFTABLE		f95xx[] ;
extern	const SFTABLE		f96xx[] ;
extern	const SFTABLE		f97xx[] ;
extern	const SFTABLE		f98xx[] ;
extern	const SFTABLE		f99xx[] ;
extern	const SFTABLE		f9Axx[] ;
extern	const SFTABLE		f9Bxx[] ;
extern	const SFTABLE		f9Cxx[] ;
extern	const SFTABLE		f9Dxx[] ;    //       typedefb struct
                                         //          {     unsigned char str;
extern	const SFTABLE		f9Exx[] ;    
extern	const SFTABLE		f9Fxx[] ;    //                   int    *font;
extern	const SFTABLE		fE0xx[] ;    //          }SFTABLE;
extern	const SFTABLE		fE1xx[] ;
extern	const SFTABLE		fE2xx[] ;
extern	const SFTABLE		fE3xx[] ;
extern	const SFTABLE		fE4xx[] ;
extern	const SFTABLE		fE5xx[] ;
extern	const SFTABLE		fE6xx[] ;						

extern  const SFTABLE       ff0xx[] ;
extern  const unsigned char ASCII_CODE[][16];
extern  const unsigned char HALF_JAPAN[][16] ;

/********************************************************/
/*			Get Font address process					*/
/********************************************************/

unsigned int		*DFontadr(unsigned int code )
{

	    
	TCODE	dt ;      
	unsigned int		n ;       
                      
	dt.wcode = code ;
 
    fetch_dot_no=16 ;
	switch(dt.scode.high)
	{
		case  0x00 :	
		            fetch_dot_no=8;							      /* Ascii Code */
					if((dt.scode.low >='!') && (dt.scode.low < (unsigned char)'~'))
					{
					   
						return ((int *) &ASCII_CODE[dt.scode.low -(unsigned char)0x21][0]) ;     
					}
				
					else if((dt.scode.low > 0xa0 )&&(dt.scode.low < 0xe0 ))       /*JAPANESE FONT HALF */
					{
						return ((int *) &HALF_JAPAN[dt.scode.low -(unsigned char)0xa1][0]) ;     
					    
					}
					 return((int *)f81xx[0].font);
        
        
        
        case 0x81:
                    for(n=0;f81xx[n].font!=NULL;++n)
                    {
						if (dt.scode.low == f81xx[n].str)
								
						{
							return((int *) f81xx[n].font) ;
							
						}
                    }	
                     return((int *)f81xx[0].font);
		case 0x82 :
					for( n = 0 ; f82xx[n].font != NULL ; ++n )   //font 幨幥幹幐幷 

⌨️ 快捷键说明

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