graphic_vram.h
来自「一个在华邦W55VA75 ARM芯片平台做的简易的简体电子书程序.」· C头文件 代码 · 共 51 行
H
51 行
#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 + =
减小字号Ctrl + -
显示快捷键?