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

📄 graphic_vram.h

📁 一个在华邦W55VA75 ARM芯片平台做的简易的简体电子书程序.
💻 H
字号:
#ifndef __GRAPHIC_H__
#define __GRAPHIC_H__

//ASIC version declaration
#define _W55VA75_VERSION_	0x00FC5991

extern unsigned long $$VROM_BASE$$;

#define BG_VROM_BASE	($$VROM_BASE$$ >> 8)
#define SP_VROM_BASE	($$VROM_BASE$$ >> 8)

//Image Bg1 originanl offset (x,y) = (0,0)
#define Bg1_X 	0
#define Bg1_Y 	0


//Image Bg1 dimension:320 x 240
#define Bg1_XBC	40
#define Bg1_YBC	30


//Image Bg1 BGx Control Register value: 0x600
#define Bg1_BGxCTL	0x600

extern const unsigned short lib0_BG0_Palette[];

//Image trans originanl offset (x,y) = (0,0)
#define trans_X 	0
#define trans_Y 	0


//Image trans dimension:320 x 240
#define trans_XBC	40
#define trans_YBC	30


//Image trans BGx Control Register value: 0x2
#define trans_BGxCTL	0x2

extern const unsigned short trans_BAT[];

//Pattern Base for BGs and Sprites

#define lib0_BG0_PatternBase		(BG_VROM_BASE + 0x000000)
#define Bg1_PatternBase		(BG_VROM_BASE + 0x000001)

//SAT RAM external declarations


#endif

⌨️ 快捷键说明

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