omega kernel 1.03

This commit is contained in:
ezflash 2018-07-05 16:17:52 +08:00
parent ab2d11058b
commit 2f81314dcc
62 changed files with 103518 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
build/
ezkernel.bin
ezkernel.elf
ezkernel.gba
copy.bat

167
Makefile Normal file
View File

@ -0,0 +1,167 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
include $(DEVKITARM)/gba_rules
#---------------------------------------------------------------------------------
# TARGET is the name of the output
# BUILD is the directory where object files & intermediate files will be placed
# SOURCES is a list of directories containing source code
# INCLUDES is a list of directories containing extra header files
# DATA is a list of directories containing binary data
# GRAPHICS is a list of directories containing files to be processed by grit
#
# All directories are specified relative to the project directory where
# the makefile is found
#
#---------------------------------------------------------------------------------
TARGET := $(notdir $(CURDIR))
BUILD := build
SOURCES := source source/ff13b
INCLUDES := include source/ff13b
DATA := font
MUSIC :=
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
ARCH := -mthumb -mthumb-interwork
CFLAGS := -g -Wall -Os\
-mcpu=arm7tdmi -mtune=arm7tdmi\
-fomit-frame-pointer\
-ffast-math \
$(ARCH)
CFLAGS += $(INCLUDE)
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
ASFLAGS := -g $(ARCH)
LDFLAGS = -g $(ARCH) -Wl,-Map,$(notdir $*.map)
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lgba
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(LIBGBA)
#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions
#---------------------------------------------------------------------------------
ifneq ($(BUILDDIR), $(CURDIR))
#---------------------------------------------------------------------------------
export OUTPUT := $(CURDIR)/$(TARGET)
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir)) \
$(foreach dir,$(GRAPHICS),$(CURDIR)/$(dir))
export DEPSDIR := $(CURDIR)/$(BUILD)
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
ifneq ($(strip $(MUSIC)),)
export AUDIOFILES := $(foreach dir,$(notdir $(wildcard $(MUSIC)/*.*)),$(CURDIR)/$(MUSIC)/$(dir))
BINFILES += soundbank.bin
endif
#---------------------------------------------------------------------------------
# use CXX for linking C++ projects, CC for standard C
#---------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
#---------------------------------------------------------------------------------
export LD := $(CC)
#---------------------------------------------------------------------------------
else
#---------------------------------------------------------------------------------
export LD := $(CXX)
#---------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------
export OFILES_BIN := $(addsuffix .o,$(BINFILES))
export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
export OFILES := $(OFILES_BIN) $(OFILES_SOURCES)
export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES)))
export INCLUDE := $(foreach dir,$(INCLUDES),-iquote $(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(CURDIR)/$(BUILD)
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
.PHONY: $(BUILD) clean
#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@$(MAKE) BUILDDIR=`cd $(BUILD) && pwd` --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).elf $(TARGET).gba
#---------------------------------------------------------------------------------
else
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
$(OUTPUT).gba : $(OUTPUT).elf
$(OUTPUT).elf : $(OFILES)
$(OFILES_SOURCES) : $(HFILES)
#---------------------------------------------------------------------------------
# The bin2o rule should be copied and modified
# for each extension used in the data directories
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
# rule to build soundbank from music files
#---------------------------------------------------------------------------------
soundbank.bin soundbank.h : $(AUDIOFILES)
#---------------------------------------------------------------------------------
@mmutil $^ -osoundbank.bin -hsoundbank.h
#---------------------------------------------------------------------------------
# This rule links in binary data with the .bin extension
#---------------------------------------------------------------------------------
%.bin.o %_bin.h : %.bin
#---------------------------------------------------------------------------------
@echo $(notdir $<)
@$(bin2o)
-include $(DEPSDIR)/*.d
#---------------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------------

9
build.bat Normal file
View File

@ -0,0 +1,9 @@
set PATH=C:\devkitPro\msys\bin;C:\devkitPro\devkitARM_r47\bin;%PATH%
set DEVKITARM=/c/devkitPro/devkitARM_r47
set DEVKITPRO=/c/devkitPro
set LIBGBA=/c/devkitPro/libgba
make
rem >error.txt 2>&1
pause
build.bat

Binary file not shown.

590
source/Ezcard_OP.c Normal file
View File

@ -0,0 +1,590 @@
#include <gba_video.h>
#include <gba_interrupt.h>
#include <gba_systemcalls.h>
#include <gba_input.h>
#include <stdio.h>
#include <stdlib.h>
#include <gba_base.h>
#include <gba_dma.h>
#include <string.h>
#include "ezkernel.h"
#include "draw.h"
#include "Newest_FW_ver.h"
extern u32 FAT_table_buffer[FAT_table_size/4]EWRAM_BSS;
u32 crc32(unsigned char *buf, u32 size);
extern FIL gfile;
// --------------------------------------------------------------------
#define FlashBase_S71 0x08000000
#define NOR_info_offset 0x7A0000
#define SET_info_offset 0x7B0000
// --------------------------------------------------------------------
void IWRAM_CODE SetSDControl(u16 control)
{
*(u16 *)0x9fe0000 = 0xd200;
*(u16 *)0x8000000 = 0x1500;
*(u16 *)0x8020000 = 0xd200;
*(u16 *)0x8040000 = 0x1500;
*(u16 *)0x9400000 = control;
*(u16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
void IWRAM_CODE SD_Enable(void)
{
SetSDControl(1);
}
// --------------------------------------------------------------------
void IWRAM_CODE SD_Read_state(void)
{
SetSDControl(3);
}
// --------------------------------------------------------------------
void IWRAM_CODE SD_Disable(void)
{
SetSDControl(0);
}
// --------------------------------------------------------------------
u16 IWRAM_CODE SD_Response(void)
{
return *(vu16 *)0x9E00000;
}
// --------------------------------------------------------------------
u32 IWRAM_CODE Wait_SD_Response()
{
vu16 res;
u32 count=0;
while(1)
{
res = SD_Response();
if(res != 0xEEE1)
{
return 0;
}
count++;
if(count>0x100000)
{
//DEBUG_printf("time out %x",res);
//wait_btn();
return 1;
}
}
}
// --------------------------------------------------------------------
u32 IWRAM_CODE Read_SD_sectors(u32 address,u16 count,u8* SDbuffer)
{
SD_Enable();
u16 i;
u16 blocks;
u32 res;
u32 times=2;
for(i=0;i<count;i+=4)
{
blocks = (count-i>4)?4:(count-i);
read_again:
*(vu16 *)0x9fe0000 = 0xd200;
*(vu16 *)0x8000000 = 0x1500;
*(vu16 *)0x8020000 = 0xd200;
*(vu16 *)0x8040000 = 0x1500;
*(vu16 *)0x9600000 = ((address+i)&0x0000FFFF) ;
*(vu16 *)0x9620000 = ((address+i)&0xFFFF0000) >>16;
*(vu16 *)0x9640000 = blocks;
*(vu16 *)0x9fc0000 = 0x1500;
SD_Read_state();
res = Wait_SD_Response();
SD_Enable();
if(res==1)
{
times--;
if(times)
{
delay(5000);
goto read_again;
}
}
dmaCopy((void*)0x9E00000, SDbuffer+i*512, blocks*512);
}
SD_Disable();
return 0;
}
// --------------------------------------------------------------------
u32 IWRAM_CODE Write_SD_sectors(u32 address,u16 count, u8* SDbuffer)
{
SD_Enable();
SD_Read_state();
u16 i;
u16 blocks;
u32 res;
for(i=0;i<count;i+=4)
{
blocks = (count-i>4)?4:(count-i);
dmaCopy( SDbuffer+i*512,(void*)0x9E00000, blocks*512);
*(vu16 *)0x9fe0000 = 0xd200;
*(vu16 *)0x8000000 = 0x1500;
*(vu16 *)0x8020000 = 0xd200;
*(vu16 *)0x8040000 = 0x1500;
*(vu16 *)0x9600000 = ((address+i)&0x0000FFFF);
*(vu16 *)0x9620000 = ((address+i)&0xFFFF0000) >>16;
*(vu16 *)0x9640000 = 0x8000+blocks;
*(vu16 *)0x9fc0000 = 0x1500;
res = Wait_SD_Response();
}
delay(3000);
SD_Disable();
return 0;
}
// --------------------------------------------------------------------
u16 IWRAM_CODE Read_S71NOR_ID()
{
u16 ID1;
*((vu16 *)(FlashBase_S71)) = 0xF0;
*((vu16 *)(FlashBase_S71+0x555*2)) = 0xAA;
*((vu16 *)(FlashBase_S71+0x2AA*2)) = 0x55;
*((vu16 *)(FlashBase_S71+0x555*2)) = 0x90;
ID1 = *((vu16 *)(FlashBase_S71+0xE*2));
*((vu16 *)(FlashBase_S71)) = 0xF0;
return ID1;
}
// --------------------------------------------------------------------
u16 Read_S98NOR_ID()
{
u16 ID1;
*((vu16 *)(FlashBase_S98)) = 0xF0 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0x90;
ID1 = *((vu16 *)(FlashBase_S98+0xE*2));
return ID1;
}
// --------------------------------------------------------------------
void IWRAM_CODE SetRompage(u16 page)
{
*(vu16 *)0x9fe0000 = 0xd200;
*(vu16 *)0x8000000 = 0x1500;
*(vu16 *)0x8020000 = 0xd200;
*(vu16 *)0x8040000 = 0x1500;
*(vu16 *)0x9880000 = page;//C4
*(vu16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
void IWRAM_CODE SetbufferControl(u16 control)
{
*(u16 *)0x9fe0000 = 0xd200;
*(u16 *)0x8000000 = 0x1500;
*(u16 *)0x8020000 = 0xd200;
*(u16 *)0x8040000 = 0x1500;
*(u16 *)0x9420000 = control;//A1
*(u16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
void IWRAM_CODE SetPSRampage(u16 page)
{
*(vu16 *)0x9fe0000 = 0xd200;
*(vu16 *)0x8000000 = 0x1500;
*(vu16 *)0x8020000 = 0xd200;
*(vu16 *)0x8040000 = 0x1500;
*(vu16 *)0x9860000 = page;//C3
*(vu16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
void IWRAM_CODE SetRampage(u16 page)
{
*(vu16 *)0x9fe0000 = 0xd200;
*(vu16 *)0x8000000 = 0x1500;
*(vu16 *)0x8020000 = 0xd200;
*(vu16 *)0x8040000 = 0x1500;
*(vu16 *)0x9c00000 = page;//E0
*(vu16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
// --------------------------------------------------------------------
void IWRAM_CODE Send_FATbuffer(u32*buffer,u32 mode)
{
SetbufferControl(1);
dmaCopy(buffer,(void*)0x9E00000, 0x400);
if(mode==2)
{
SetbufferControl(0);
return;
}
SetbufferControl(3);
if(mode==1)
{
SetbufferControl(0);
return;
}
u16 res;
while(1)
{
res = SD_Response();
if(res != 0x0000)
break;
}
while(1)
{
res = SD_Response();
if(res != 0x0001)
break;
}
SetbufferControl(0);
}
// --------------------------------------------------------------------
#define RESET_EWRAM (1<<0) /*!< Clear 256K on-board WRAM */
#define RESET_IWRAM (1<<1) /*!< Clear 32K in-chip WRAM */
#define RESET_PALETTE (1<<2) /*!< Clear Palette */
#define RESET_VRAM (1<<3) /*!< Clear VRAM */
#define RESET_OAM (1<<4) /*!< Clear OAM */
#define RESET_SIO (1<<5) /*!< Switches to general purpose mode */
#define RESET_SOUND (1<<6) /*!< Reset Sound registers */
#define RESET_OTHER (1<<7) /*!< all other registers */
// --------------------------------------------------------------------
extern u16 gl_ingame_RTC_open_status;
void IWRAM_CODE SetRompageWithHardReset(u16 page,u32 bootmode)
{
Set_RTC_status(gl_ingame_RTC_open_status);
SetRompage(page);
RegisterRamReset(RESET_EWRAM|RESET_PALETTE| RESET_VRAM|RESET_OAM |RESET_SIO | RESET_SOUND | RESET_OTHER);
if(bootmode==1){
HardReset();
}
else{
SoftReset_now();
}
}
// --------------------------------------------------------------------
void IWRAM_CODE ReadSram(u32 address, u8* data , u32 size )
{
register int i ;
for(i=0;i<size;i++)
{
data[i]=*(u8*)(address+i);
}
}
// --------------------------------------------------------------------
void IWRAM_CODE WriteSram(u32 address, u8* data , u32 size )
{
register int i ;
for(i=0;i<size;i++)
*(vu8*)(address+i)=data[i];
}
// --------------------------------------------------------------------
void IWRAM_CODE Bank_Switching(u8 bank)
{
*((vu8 *)(SAVE_sram_base+0x5555)) = 0xAA ;
*((vu8 *)(SAVE_sram_base+0x2AAA)) = 0x55 ;
*((vu8 *)(SAVE_sram_base+0x5555)) = 0xB0 ;
*((vu8 *)(SAVE_sram_base+0x0000)) = bank ;
}
// --------------------------------------------------------------------
void IWRAM_CODE Save_info(u32 info_offset, u8 * info_buffer,u32 buffersize)
{
u32 offset;
vu16* buf = (vu16*)info_buffer ;
register u32 loopwrite ;
vu16 v1,v2;
*((vu16 *)(FlashBase_S71)) = 0xF0 ;
offset= info_offset;//0x7A0000/0x7B0000 ;
*((vu16 *)(FlashBase_S71+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S71+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S71+0x555*2)) = 0x80 ;
*((vu16 *)(FlashBase_S71+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S71+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S71+offset)) = 0x30 ;//erase
do
{
v1 = *((vu16 *)(FlashBase_S71+offset)) ;
v2 = *((vu16 *)(FlashBase_S71+offset)) ;
}while(v1!=v2);
//erase finish
u32 i;
for(loopwrite=0;loopwrite<(buffersize/32);loopwrite++)
{
*((vu16 *)(FlashBase_S71+0x555*2)) = 0xAA;
*((vu16 *)(FlashBase_S71+0x2AA*2)) = 0x55;
*((vu16 *)(FlashBase_S71+offset+loopwrite*32)) = 0x25;
*((vu16 *)(FlashBase_S71+offset+loopwrite*32)) = 15;
for(i=0;i<=15;i++)
{
*((vu16 *)(FlashBase_S71+offset+loopwrite*32 +2*i )) = buf[loopwrite*16+i];
}
*((vu16 *)(FlashBase_S71+offset+loopwrite*32)) = 0x29;
do
{
v1 = *((vu16 *)(FlashBase_S71+offset+loopwrite*32));
v2 = *((vu16 *)(FlashBase_S71+offset+loopwrite*32));
}while(v1!=v2);
}
*((vu16 *)(FlashBase_S71)) = 0xF0;
}
// --------------------------------------------------------------------
void IWRAM_CODE Save_NOR_info(u8 * NOR_info_buffer,u32 buffersize)
{
Save_info(NOR_info_offset, NOR_info_buffer,buffersize);
}
// --------------------------------------------------------------------
void IWRAM_CODE Save_SET_info(u16 * SET_info_buffer,u32 buffersize)
{
Save_info(SET_info_offset, SET_info_buffer,buffersize);
}
// --------------------------------------------------------------------
void IWRAM_CODE Read_NOR_info()
{
register u32 loopwrite ;
for(loopwrite=0;loopwrite<sizeof(FM_NOR_FS)*0x40;loopwrite++)
{
((u16*)pNorFS)[loopwrite] = *((vu16 *)(FlashBase_S71+NOR_info_offset+loopwrite*2));
}
}
// --------------------------------------------------------------------
u16 IWRAM_CODE Read_SET_info(u32 offset)
{
return *((vu16 *)(FlashBase_S71+SET_info_offset+offset*2));
}
// --------------------------------------------------------------------
void IWRAM_CODE SetSPIControl(u16 control)
{
*(u16 *)0x9fe0000 = 0xd200;
*(u16 *)0x8000000 = 0x1500;
*(u16 *)0x8020000 = 0xd200;
*(u16 *)0x8040000 = 0x1500;
*(u16 *)0x9660000 = control;
*(u16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
void IWRAM_CODE SPI_Enable(void)
{
SetSPIControl(1);
}
// --------------------------------------------------------------------
void IWRAM_CODE SPI_Disable(void)
{
SetSPIControl(0);
}
// --------------------------------------------------------------------
u16 IWRAM_CODE Read_FPGA_ver(void)
{
u16 Read_SPI;
SPI_Enable();
Read_SPI = *(vu16 *)0x9E00000;
SPI_Disable();
return Read_SPI;
}
// --------------------------------------------------------------------
void IWRAM_CODE SetSPIWrite(u16 control)
{
*(u16 *)0x9fe0000 = 0xd200;
*(u16 *)0x8000000 = 0x1500;
*(u16 *)0x8020000 = 0xd200;
*(u16 *)0x8040000 = 0x1500;
*(u16 *)0x9680000 = control;
*(u16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
void IWRAM_CODE SPI_Write_Enable(void)
{
SetSPIWrite(1);
}
// --------------------------------------------------------------------
void IWRAM_CODE SPI_Write_Disable(void)
{
SetSPIWrite(0);
}
// --------------------------------------------------------------------
void IWRAM_CODE Set_RTC_status(u16 status)
{
*(u16 *)0x9fe0000 = 0xd200;
*(u16 *)0x8000000 = 0x1500;
*(u16 *)0x8020000 = 0xd200;
*(u16 *)0x8040000 = 0x1500;
*(u16 *)0x96A0000 = status;
*(u16 *)0x9fc0000 = 0x1500;
}
// --------------------------------------------------------------------
void IWRAM_CODE Check_FW_update(u16 Current_FW_ver,u16 Built_in_ver)
{
vu16 busy;
vu32 offset;
u32 offset_Y = 5;
u32 line_x = 17;
char msg[100];
//DEBUG_printf("Current_FW_ver %x ",Current_FW_ver);
Clear(0, 0, 240, 160, RGB(0,18,24), 1);
u32 get_crc32 = crc32( newomega_top_bin, newomega_top_bin_size);
//DEBUG_printf("get_crc32 %x ",get_crc32);
//if( get_crc32 != 0x22475DDC) //fw3
//if( get_crc32 != 0xEE2DACE7) //fw4
if( get_crc32 != 0x5B6B5129) //fw5
{
sprintf(msg,"check crc32 error!");
DrawHZText12(msg,0,2,offset_Y+0*line_x, RGB(31,00,00),1);
sprintf(msg,"press [B] to return");
DrawHZText12(msg,0,2,offset_Y+2*line_x, 0x7FFF,1);
while(1)
{
VBlankIntrWait();
scanKeys();
u16 keys = keysDown();
if (keys & KEY_B) {
return;
}
}
}
sprintf(msg,"current firmware version: V%02d",Current_FW_ver);
DrawHZText12(msg,0,2,offset_Y+1*line_x, 0x7FFF,1);
sprintf(msg,"will be updated to version: V%02d",Built_in_ver);
DrawHZText12(msg,0,2,offset_Y+2*line_x, 0x7FFF,1);
sprintf(msg,"press [A] to update");
DrawHZText12(msg,0,2,offset_Y+4*line_x, 0x7FFF,1);
sprintf(msg,"press [B] to cancel");
DrawHZText12(msg,0,2,offset_Y+5*line_x, 0x7FFF,1);
while(1)
{
VBlankIntrWait();
scanKeys();
u16 keys = keysDown();
if (keys & KEY_A) {
SPI_Write_Disable();
Clear(2, offset_Y+4*line_x,220,15,RGB(0,18,24),1);
Clear(2, offset_Y+5*line_x,220,15,RGB(0,18,24),1);
sprintf(msg,"progress:");
DrawHZText12(msg,0,2,offset_Y+6*line_x, 0x7FFF,1);
for(offset = 0x0000;offset<newomega_top_bin_size;offset+=256)
{
sprintf(msg," %lu%%",(offset*100/newomega_top_bin_size+1));
Clear(54, offset_Y+6*line_x,120,15,RGB(0,18,24),1);
DrawHZText12(msg,0,54,offset_Y+6*line_x, 0x7FFF,1);
FAT_table_buffer[0] = (0x40000 + offset);
dmaCopy(newomega_top_bin+offset,&FAT_table_buffer[1],256);
Send_FATbuffer(FAT_table_buffer,2);
SPI_Write_Enable();
while(1)
{
busy = SD_Response();
if(busy==0) break;
}
SPI_Write_Disable();
//DEBUG_printf("count %x ",count);
//break;
}
sprintf(msg,"update finished,power off");
DrawHZText12(msg,0,2,offset_Y+8*line_x, 0x7FFF,1);
while(1);
break;
}
else if (keys & KEY_B) {
break;
}
}
}
// --------------------------------------------------------------------
static const u32 crc32tab[] = {
0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL,
0x076dc419L, 0x706af48fL, 0xe963a535L, 0x9e6495a3L,
0x0edb8832L, 0x79dcb8a4L, 0xe0d5e91eL, 0x97d2d988L,
0x09b64c2bL, 0x7eb17cbdL, 0xe7b82d07L, 0x90bf1d91L,
0x1db71064L, 0x6ab020f2L, 0xf3b97148L, 0x84be41deL,
0x1adad47dL, 0x6ddde4ebL, 0xf4d4b551L, 0x83d385c7L,
0x136c9856L, 0x646ba8c0L, 0xfd62f97aL, 0x8a65c9ecL,
0x14015c4fL, 0x63066cd9L, 0xfa0f3d63L, 0x8d080df5L,
0x3b6e20c8L, 0x4c69105eL, 0xd56041e4L, 0xa2677172L,
0x3c03e4d1L, 0x4b04d447L, 0xd20d85fdL, 0xa50ab56bL,
0x35b5a8faL, 0x42b2986cL, 0xdbbbc9d6L, 0xacbcf940L,
0x32d86ce3L, 0x45df5c75L, 0xdcd60dcfL, 0xabd13d59L,
0x26d930acL, 0x51de003aL, 0xc8d75180L, 0xbfd06116L,
0x21b4f4b5L, 0x56b3c423L, 0xcfba9599L, 0xb8bda50fL,
0x2802b89eL, 0x5f058808L, 0xc60cd9b2L, 0xb10be924L,
0x2f6f7c87L, 0x58684c11L, 0xc1611dabL, 0xb6662d3dL,
0x76dc4190L, 0x01db7106L, 0x98d220bcL, 0xefd5102aL,
0x71b18589L, 0x06b6b51fL, 0x9fbfe4a5L, 0xe8b8d433L,
0x7807c9a2L, 0x0f00f934L, 0x9609a88eL, 0xe10e9818L,
0x7f6a0dbbL, 0x086d3d2dL, 0x91646c97L, 0xe6635c01L,
0x6b6b51f4L, 0x1c6c6162L, 0x856530d8L, 0xf262004eL,
0x6c0695edL, 0x1b01a57bL, 0x8208f4c1L, 0xf50fc457L,
0x65b0d9c6L, 0x12b7e950L, 0x8bbeb8eaL, 0xfcb9887cL,
0x62dd1ddfL, 0x15da2d49L, 0x8cd37cf3L, 0xfbd44c65L,
0x4db26158L, 0x3ab551ceL, 0xa3bc0074L, 0xd4bb30e2L,
0x4adfa541L, 0x3dd895d7L, 0xa4d1c46dL, 0xd3d6f4fbL,
0x4369e96aL, 0x346ed9fcL, 0xad678846L, 0xda60b8d0L,
0x44042d73L, 0x33031de5L, 0xaa0a4c5fL, 0xdd0d7cc9L,
0x5005713cL, 0x270241aaL, 0xbe0b1010L, 0xc90c2086L,
0x5768b525L, 0x206f85b3L, 0xb966d409L, 0xce61e49fL,
0x5edef90eL, 0x29d9c998L, 0xb0d09822L, 0xc7d7a8b4L,
0x59b33d17L, 0x2eb40d81L, 0xb7bd5c3bL, 0xc0ba6cadL,
0xedb88320L, 0x9abfb3b6L, 0x03b6e20cL, 0x74b1d29aL,
0xead54739L, 0x9dd277afL, 0x04db2615L, 0x73dc1683L,
0xe3630b12L, 0x94643b84L, 0x0d6d6a3eL, 0x7a6a5aa8L,
0xe40ecf0bL, 0x9309ff9dL, 0x0a00ae27L, 0x7d079eb1L,
0xf00f9344L, 0x8708a3d2L, 0x1e01f268L, 0x6906c2feL,
0xf762575dL, 0x806567cbL, 0x196c3671L, 0x6e6b06e7L,
0xfed41b76L, 0x89d32be0L, 0x10da7a5aL, 0x67dd4accL,
0xf9b9df6fL, 0x8ebeeff9L, 0x17b7be43L, 0x60b08ed5L,
0xd6d6a3e8L, 0xa1d1937eL, 0x38d8c2c4L, 0x4fdff252L,
0xd1bb67f1L, 0xa6bc5767L, 0x3fb506ddL, 0x48b2364bL,
0xd80d2bdaL, 0xaf0a1b4cL, 0x36034af6L, 0x41047a60L,
0xdf60efc3L, 0xa867df55L, 0x316e8eefL, 0x4669be79L,
0xcb61b38cL, 0xbc66831aL, 0x256fd2a0L, 0x5268e236L,
0xcc0c7795L, 0xbb0b4703L, 0x220216b9L, 0x5505262fL,
0xc5ba3bbeL, 0xb2bd0b28L, 0x2bb45a92L, 0x5cb36a04L,
0xc2d7ffa7L, 0xb5d0cf31L, 0x2cd99e8bL, 0x5bdeae1dL,
0x9b64c2b0L, 0xec63f226L, 0x756aa39cL, 0x026d930aL,
0x9c0906a9L, 0xeb0e363fL, 0x72076785L, 0x05005713L,
0x95bf4a82L, 0xe2b87a14L, 0x7bb12baeL, 0x0cb61b38L,
0x92d28e9bL, 0xe5d5be0dL, 0x7cdcefb7L, 0x0bdbdf21L,
0x86d3d2d4L, 0xf1d4e242L, 0x68ddb3f8L, 0x1fda836eL,
0x81be16cdL, 0xf6b9265bL, 0x6fb077e1L, 0x18b74777L,
0x88085ae6L, 0xff0f6a70L, 0x66063bcaL, 0x11010b5cL,
0x8f659effL, 0xf862ae69L, 0x616bffd3L, 0x166ccf45L,
0xa00ae278L, 0xd70dd2eeL, 0x4e048354L, 0x3903b3c2L,
0xa7672661L, 0xd06016f7L, 0x4969474dL, 0x3e6e77dbL,
0xaed16a4aL, 0xd9d65adcL, 0x40df0b66L, 0x37d83bf0L,
0xa9bcae53L, 0xdebb9ec5L, 0x47b2cf7fL, 0x30b5ffe9L,
0xbdbdf21cL, 0xcabac28aL, 0x53b39330L, 0x24b4a3a6L,
0xbad03605L, 0xcdd70693L, 0x54de5729L, 0x23d967bfL,
0xb3667a2eL, 0xc4614ab8L, 0x5d681b02L, 0x2a6f2b94L,
0xb40bbe37L, 0xc30c8ea1L, 0x5a05df1bL, 0x2d02ef8dL
};
u32 crc32(unsigned char *buf, u32 size)
{
u32 i, crc;
crc = 0xFFFFFFFF;
for (i = 0; i < size; i++)
crc = crc32tab[(crc ^ buf[i]) & 0xff] ^ (crc >> 8);
return crc^0xFFFFFFFF;
}

25
source/Ezcard_OP.h Normal file
View File

@ -0,0 +1,25 @@
#include <gba_base.h>
#include "ff.h"
void SetSDControl(u16 control);
u16 IWRAM_CODE SD_Response(void);
u32 Read_SD_sectors(u32 address,u16 count,u8* SDbuffer);
u32 Write_SD_sectors(u32 address,u16 count,const u8* SDbuffer);
u16 IWRAM_CODE Read_S71NOR_ID();
u16 Read_S98NOR_ID();
void IWRAM_CODE SetRompage(u16 page);
void IWRAM_CODE SetbufferControl(u16 control);
void SetPSRampage(u16 page);
void SetRampage(u16 page);
void IWRAM_CODE Progress(u16 x, u16 y, u16 w, u16 h, u16 c, u8 isDrawDirect);
void IWRAM_CODE Send_FATbuffer(u32*buffer,u32 mode);
void IWRAM_CODE SetRompageWithHardReset(u16 page,u32 bootmode);
void ReadSram(u32 address, u8* data , u32 size );
void WriteSram(u32 address, u8* data , u32 size );
void IWRAM_CODE Save_NOR_info(u8 * NOR_info_buffer,u32 buffersize);
void IWRAM_CODE Save_SET_info(u16 * SET_info_buffer,u32 buffersize);
void IWRAM_CODE Read_NOR_info();
u16 IWRAM_CODE Read_SET_info(u32 offset);
u32 Loadfile2PSRAM(TCHAR *filename);
u16 IWRAM_CODE Read_FPGA_ver(void);

1133
source/GBApatch.c Normal file

File diff suppressed because it is too large Load Diff

54
source/GBApatch.h Normal file
View File

@ -0,0 +1,54 @@
#include <gba_base.h>
#include "ff.h"
enum
{
EMax = 32
};
typedef struct SPatchInfo
{
u32 iOffset;
u32 iValue;
}SPatchInfo2;
extern FIL gfile;
extern void Sleep_ReplaceIRQ_start(void);
extern void Sleep_ReplaceIRQ_end(void);
extern void Return_address_L(void);
extern void Sleep_key(void);
extern void Reset_key(void);
//extern void Wakeup_key(void);
extern void RTS_ReplaceIRQ_start(void);
extern void RTS_ReplaceIRQ_end(void);
extern void RTS_Return_address_L(void);
extern void RTS_Sleep_key(void);
extern void RTS_Reset_key(void);
//extern void RTS_Wakeup_key(void);
extern void RTS_switch(void);
extern void Cheat_count(void);
extern void CHEAT(void);
extern void no_CHEAT_end(void);
extern u32 gl_cheat_count;
void GBApatch_Cleanrom(u32* address,int filesize);
void GBApatch_PSRAM(u32* address,int filesize);
void GBApatch_Cleanrom_NOR(u32* address,u32 offset);
void GBApatch_NOR(u32* address,int filesize,u32 offset);
u32 Check_pat(TCHAR* gamefilename);
void Make_pat_file(char* filename);
u32 Check_RTS(TCHAR* gamefilename);
u8 Check_mde_file(TCHAR* gamefilename);
void Make_mde_file(TCHAR* gamefilename,u8 Save_num);
void Patch_SpecialROM_sheepmode(void);
u32 use_internal_engine(u8 gamecode[]);
u32 Check_cheat_file(TCHAR *gamefilename);
void SetTrimSize(u8* buffer,u32 romsize,u32 iSize,u32 mode,BYTE saveMODE);
u32 Find_spend_address_SpecialROM(u32* Data);

4922
source/HZK12.h Normal file

File diff suppressed because it is too large Load Diff

392
source/NORflash_OP.c Normal file
View File

@ -0,0 +1,392 @@
#include <gba_interrupt.h>
#include <gba_input.h>
#include <stdio.h>
#include <stdlib.h>
#include <gba_base.h>
#include <gba_dma.h>
#include <string.h>
#include <gba_systemcalls.h>
#include "NORflash_OP.h"
#include "ezkernel.h"
#include "draw.h"
#include "lang.h"
#define DEBUG
extern FM_NOR_FS pNorFS[MAX_NOR]EWRAM_BSS;
extern u8 pReadCache [MAX_pReadCache_size]EWRAM_BSS;
extern u32 gl_currentpage;
extern u32 gl_norOffset;
extern FIL gfile;
extern u32 game_total_NOR;
extern u32 iTrimSize;
//---------------------------------------------------------------
void Chip_Reset()
{
*((vu16 *)(FlashBase_S98)) = 0xF0 ;
}
//---------------------------------------------------------------
void Block_Erase(u32 blockAdd) //0x20000 BYTE pre block
{
vu16 page,v1,v2;
u32 Address;
u32 loop;
page=gl_currentpage;
Address=blockAdd;
while(Address>=0x800000)
{
Address-=0x800000;
page+=0x1000;
}
//u8 ramdata = *((vu8 *)(0xE000000+1)) ;
SetRompage(page);
//u16 norid = Read_S98NOR_ID();
Chip_Reset();
v1=0;v2=1;
if((blockAdd==0) || (blockAdd==0x3FE0000))
{
//Address=blockAdd;
for(loop=0;loop<0x20000;loop+=0x8000)
{
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0x80 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+Address+loop)) = 0x30 ;
do
{
v1 = *((vu16 *)(FlashBase_S98+Address+loop)) ;
v2 = *((vu16 *)(FlashBase_S98+Address+loop)) ;
}while(v1!=v2);
}
}
else
{
loop=Address;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0x80 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+loop)) = 0x30 ;
do
{
v1 = *((vu16 *)(FlashBase_S98+loop)) ;
v2 = *((vu16 *)(FlashBase_S98+loop)) ;
}while(v1!=v2);
}
SetRompage(gl_currentpage);
}
//-----------------------------------------------------------
void Chip_Erase()
{
char msg[128];
u32 count=0;
vu16 v1,v2=0 ;
REG_IME = 0 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0x80 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0x10 ;
do
{
VBlankIntrWait();
VBlankIntrWait();
ShowTime(NOR_list,0);
DrawPic((u16*)(gImage_MENU+78*128*2), 56, 90+13, 128, 13, 0, 0, 1);//show menu pic
itoa(count,msg,2);
DrawHZText12(msg,0,60,90+13,gl_color_text,1);
count++;
VBlankIntrWait();
v1 = *((vu16 *)(FlashBase_S98)) ;
v2 = *((vu16 *)(FlashBase_S98)) ;
}while(v1!=v2);
REG_IME = 1 ;
}
//-----------------------------------------------------------
void FormatNor()
{
char msg[128];
sprintf(msg,"%s",gl_formatnor_info);
DrawHZText12(msg,0,60,90,gl_color_text,1);
while(1)
{
delay(500);
scanKeys();
u16 keys = keysDown();
if (keys & KEY_A) {
Chip_Erase();
memset(pNorFS,00,sizeof(FM_NOR_FS)*MAX_NOR);
return;
}
else if(keys & KEY_B) {
return;
}
}
}
//---------------------------------------------------------------
void WriteFlash(u32 address,u8 *buffer,u32 size)
{
vu16 page,v1,v2;
register u32 loopwrite ;
vu16* buf = (vu16*)buffer ;
page=gl_currentpage;
while(address>=0x800000)
{
address-=0x800000;
page+=0x1000;
}
SetRompage(page);
Chip_Reset();
v1=0;v2=1;
for(loopwrite=0;loopwrite<(size/2);loopwrite++)
{
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xA0 ;
*((vu16 *)(FlashBase_S98+address+loopwrite*2)) = buf[loopwrite];
do
{
v1 = *((vu16 *)(FlashBase_S98+address+loopwrite*2)) ;
v2 = *((vu16 *)(FlashBase_S98+address+loopwrite*2)) ;
}while(v1!=v2);
}
SetRompage(gl_currentpage);
}
//---------------------------------------------------------------
void IWRAM_CODE WriteFlash_with32word(u32 address,u8 *buffer,u32 size)
{
vu16 page,v1,v2;
register u32 loopwrite ;
vu16* buf = (vu16*)buffer ;
u32 i;
page=gl_currentpage;
while(address>=0x800000)
{
address-=0x800000;
page+=0x1000;
}
SetRompage(page);
Chip_Reset();
v1=0;v2=1;
for(loopwrite=0;loopwrite<(size/32);loopwrite++)
{
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+address+loopwrite*32)) = 0x25;
*((vu16 *)(FlashBase_S98+address+loopwrite*32)) = 15;
for(i=0;i<=15;i++)
{
*((vu16 *)(FlashBase_S98+address+loopwrite*32 +2*i )) = buf[loopwrite*16+i];
}
*((vu16 *)(FlashBase_S98+address+loopwrite*32)) = 0x29;
do
{
v1 = *((vu16 *)(FlashBase_S98+address+loopwrite*32+0xF*2)) ;
v2 = *((vu16 *)(FlashBase_S98+address+loopwrite*32+0xF*2)) ;
}while(v1!=v2);
}
SetRompage(gl_currentpage);
}
//-----------------------------------------------------------
u32 Loadfile2NOR(TCHAR *filename, u32 NORaddress,u32 have_patch)
{
u32 res;
u32 ret;
u32 filesize;
u32 fileneedsize;
u32 blocknum;
char msg[128];
FM_NOR_FS tmpNorFS ;
char temp[50];
u16 readdata;
u32 add_patch = 0;
u16 norid = Read_S98NOR_ID();
if(norid == 0x223D)//S98
{
res = f_open(&gfile, filename, FA_READ);
if(res != FR_OK)
return 0;
filesize = f_size(&gfile);
f_lseek(&gfile, 0xa0);
f_read(&gfile, temp, 0x10, (u32 *)&ret);//read game name
memcpy(tmpNorFS.gamename,temp,0x10);
tmpNorFS.rompage = NORaddress >> 17;
fileneedsize = ((((filesize+0x1FFFF)/0x20000)*0x20000));
if(have_patch)
{
if(iTrimSize>=fileneedsize)
{
fileneedsize = fileneedsize+0x20000;
add_patch = 1;
}
}
if( fileneedsize > (0x4000000-NORaddress)){
return 2; //Not enough NOR space
}
////////////////// erase all BBP
*((vu16 *)(FlashBase_S98)) = 0xF0 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xAA ;
*((vu16 *)(FlashBase_S98+0x2AA*2)) = 0x55 ;
*((vu16 *)(FlashBase_S98+0x555*2)) = 0xC0 ;
*((vu16 *)(FlashBase_S98+0x000*2)) = 0x80 ;
*((vu16 *)(FlashBase_S98+0x000*2)) = 0x30 ;
{
int polling_counter = 0x15000;
u32 v1;
do {
v1 = *((vu16 *)(FlashBase_S98+ 0x5C0000));
polling_counter--;
} while (polling_counter);
}
*((vu16 *)(FlashBase_S98+0x000*2)) = 0x90 ;
*((vu16 *)(FlashBase_S98+0x000*2)) = 0x00 ;
/////////////////
tmpNorFS.filesize = fileneedsize;
tmpNorFS.have_patch = have_patch;
tmpNorFS.have_RTS = gl_rts_on;
sprintf(tmpNorFS.filename,"%s",filename);
dmaCopy(&tmpNorFS,&pNorFS[game_total_NOR], sizeof(FM_NOR_FS));
Clear(60,160-15,120,15,gl_color_cheat_black,1);
DrawHZText12(gl_writing,0,78,160-15,gl_color_text,1);
for(blocknum=0;blocknum<filesize;blocknum+=0x20000)
{
sprintf(msg,"%luMb",(blocknum)/0x20000);
Clear(78+54,160-15,100,15,gl_color_cheat_black,1);
DrawHZText12(msg,0,78+54,160-15,gl_color_text,1);
Block_Erase(blocknum+NORaddress);
f_lseek(&gfile, blocknum);
f_read(&gfile, pReadCache, 0x20000, (u32 *)&ret);//pReadCache max 0x20000 Byte
if(have_patch){
if((gl_reset_on==1) || (gl_rts_on==1) || (gl_sleep_on==1) || (gl_cheat_on==1))
{
PatchInternal((u32*)pReadCache,0x20000,blocknum);
GBApatch_NOR((u32*)pReadCache,0x20000,blocknum);//some nes need check
}
}
else{
GBApatch_Cleanrom_NOR((u32*)pReadCache,blocknum);
}
WriteFlash_with32word(blocknum+NORaddress,pReadCache,0x20000);
//WriteFlash(blocknum+NORaddress,pReadCache,0x20000);
}
f_close(&gfile);
if(have_patch)
{
if(add_patch)
{
Block_Erase(blocknum+NORaddress);
GBApatch_NOR((u32*)pReadCache,0x20000,blocknum);
WriteFlash_with32word(blocknum+NORaddress,pReadCache,0x20000);
}
}
Save_NOR_info(pNorFS,sizeof(FM_NOR_FS)*0x40);
return 0;
}
else
{
#ifdef DEBUG
//DEBUG_printf("Bad NOR ID");
#endif
return 1;
}
}
//-----------------------------------------------------------
u32 GetFileListFromNor(void)
{
REG_IME = 0 ;
u32 page=0 ,count=0;
u32 StartAddress = FlashBase_S98;
FM_NOR_FS tmpNorFS ;
char temp[50];
vu16 Value;
Value = *(vu16 *)(StartAddress + 0xbe);
u16 x24 = *(vu16 *)(StartAddress + 0x6);
//DEBUG_printf(" %x %x %x",StartAddress,Value,x24);
while( ((Value&0xFF)==0xCE) || ((Value&0xFF)==0xCF)|| ((Value&0xFF)==0x00)|| (x24==0x51ae))
{
//DEBUG_printf(" %x %x %x",StartAddress,Value,x24);
if(*(vu8 *)(StartAddress+0xb2) == 0x96)
{
memcpy(temp,(char*)(StartAddress+0xa0),0x10);
//temp[12] = 0 ;
//DEBUG_printf(" %s VS %s",temp ,pNorFS[count].gamename);
if(memcmp(temp,pNorFS[count].gamename,0x10) ==0) //if(!strcasecmp(temp, pNorFS[count].gamename))
{
gl_norOffset += pNorFS[count].filesize;
StartAddress += pNorFS[count].filesize;
count ++ ;
}
else
{
break;
}
}
else
{
break;
}
while(StartAddress >= FlashBase_S98_end)
{
page += 0x1000 ;
if(page>0x7000)
{
SetRompage(gl_currentpage);
return count;
}
SetRompage(gl_currentpage+page);
StartAddress -= 0x800000 ;
}
if(count > MAX_NOR)
break; //max
Value = *(vu16 *)(StartAddress + 0xbe);
x24 = *(vu16 *)(StartAddress + 0x6);
}
SetRompage(gl_currentpage);
REG_IME = 1 ;
return count ;
}
//-----------------------------------------------------------

12
source/NORflash_OP.h Normal file
View File

@ -0,0 +1,12 @@
#include <gba_base.h>
#include "ff.h"
//---------------------------------------------------------------
void Chip_Reset();
void Block_Erase(u32 blockAdd);
void Chip_Erase();
void FormatNor();
void WriteFlash(u32 address,u8 *buffer,u32 size);
void IWRAM_CODE WriteFlash_with32word(u32 address,u8 *buffer,u32 size);
u32 Loadfile2NOR(TCHAR *filename, u32 NORaddress,u32 have_patch);
u32 GetFileListFromNor(void);

9351
source/Newest_FW_ver.h Normal file

File diff suppressed because it is too large Load Diff

121
source/RTC.c Normal file
View File

@ -0,0 +1,121 @@
#include <gba_video.h>
#include <gba_interrupt.h>
#include <gba_systemcalls.h>
#include <gba_input.h>
#include <stdio.h>
#include <stdlib.h>
#include <gba_base.h>
#include <gba_dma.h>
#include <string.h>
#include "RTC.h"
// --------------------------------------------------------------------
void rtc_enable(void)
{
*RTC_ENABLE = 1;
}
// --------------------------------------------------------------------
void rtc_disenable(void)
{
*RTC_ENABLE = 0;
}
// --------------------------------------------------------------------
void rtc_cmd(int v)
{
int l;
u16 b;
v = v<<1;
for(l=7; l>=0; l--)
{
b = (v>>l) & 0x2;
*RTC_DATA = b | 4;
*RTC_DATA = b | 4;
*RTC_DATA = b | 4;
*RTC_DATA = b | 5;
}
}
// --------------------------------------------------------------------
void rtc_data(int v)
{
int l;
u16 b;
v = v<<1;
for(l=0; l<8; l++)
{
b = (v>>l) & 0x2;
*RTC_DATA = b | 4;
*RTC_DATA = b | 4;
*RTC_DATA = b | 4;
*RTC_DATA = b | 5;
}
}
// --------------------------------------------------------------------
int rtc_read(void)
{
int j,l;
u16 b;
int v = 0;
for(l=0; l<8; l++)
{
for(j=0;j<5; j++)
*RTC_DATA = 4;
*RTC_DATA = 5;
b = *RTC_DATA;
v = v | ((b & 2)<<l);
}
v = v>>1;
return v;
}
// --------------------------------------------------------------------
int rtc_get(u8 *data)
{
int i;
*RTC_DATA = 1;
*RTC_RW = 7;
*RTC_DATA = 1;
*RTC_DATA = 5;
rtc_cmd(RTC_CMD_READ(2));
*RTC_RW = 5;
for(i=0; i<4; i++)
data[i] = (u8)rtc_read();
*RTC_RW = 5;
for(i=4; i<7; i++)
data[i] = (u8)rtc_read();
return 0;
}
// --------------------------------------------------------------------
int rtc_gettime(u8 *data)
{
int i;
*RTC_DATA = 1;
*RTC_RW = 7;
*RTC_DATA = 1;
*RTC_DATA = 5;
rtc_cmd(RTC_CMD_READ(3));
*RTC_RW = 5;
for(i=0; i<3; i++)
data[i] = (u8)rtc_read();
return 0;
}
// --------------------------------------------------------------------
void rtc_set(u8 *data)
{
int i;
u8 newdata[7];
for(i=0;i<7;i++) {
newdata[i] = _BCD(data[i]);
}
*RTC_ENABLE = 1;
*RTC_DATA = 1;
*RTC_DATA = 5;
*RTC_RW = 7;
rtc_cmd(RTC_CMD_WRITE(2));
for(i=0;i<4;i++) {
rtc_data(newdata[i]);
}
for(i=4;i<7;i++) {
rtc_data(newdata[i]);
}
}

20
source/RTC.h Normal file
View File

@ -0,0 +1,20 @@
#include <gba_base.h>
#define UNBCD(x) (((x) & 0xF) + (((x) >> 4) * 10))
#define _BCD(x) ((((x) / 10)<<4) + ((x) % 10))
#define RTC_DATA ((vu16 *)0x080000C4)
#define RTC_RW ((vu16 *)0x080000C6)
#define RTC_ENABLE ((vu16 *)0x080000C8)
#define CART_NAME ((vu8 *)0x080000A0)
#define RTC_CMD_READ(x) (((x)<<1) | 0x61)
#define RTC_CMD_WRITE(x) (((x)<<1) | 0x60)
// --------------------------------------------------------------------
void rtc_enable(void);
void rtc_disenable(void);
void rtc_cmd(int v);
void rtc_data(int v);
int rtc_read(void);
int rtc_get(u8 *data);
int rtc_gettime(u8 *data);
void rtc_set(u8 *data);

197
source/asc126.h Normal file
View File

@ -0,0 +1,197 @@
//字库结构 12*8 高12宽6 前6bit
const unsigned char ASC_DATA[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20,
0x20, 0x20, 0x20, 0x20, 0x00, 0x20, 0x00, 0x00,
0x00, 0x28, 0x50, 0x50, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x28,
0xFC, 0x28, 0x50, 0xFC, 0x50, 0x50, 0x00, 0x00,
0x00, 0x20, 0x78, 0xA8, 0xA0, 0x60, 0x30, 0x28,
0xA8, 0xF0, 0x20, 0x00, 0x00, 0x00, 0x48, 0xA8,
0xB0, 0x50, 0x28, 0x34, 0x54, 0x48, 0x00, 0x00,
0x00, 0x00, 0x20, 0x50, 0x50, 0x78, 0xA8, 0xA8,
0x90, 0x6C, 0x00, 0x00, 0x00, 0x40, 0x40, 0x80,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x04, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10,
0x10, 0x08, 0x04, 0x00, 0x00, 0x40, 0x20, 0x10,
0x10, 0x10, 0x10, 0x10, 0x10, 0x20, 0x40, 0x00,
0x00, 0x00, 0x00, 0x20, 0xA8, 0x70, 0x70, 0xA8,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20,
0x20, 0xF8, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x10, 0x10,
0x10, 0x20, 0x20, 0x40, 0x40, 0x40, 0x80, 0x00,
0x00, 0x00, 0x70, 0x88, 0x88, 0x88, 0x88, 0x88,
0x88, 0x70, 0x00, 0x00, 0x00, 0x00, 0x20, 0x60,
0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, 0x00,
0x00, 0x00, 0x70, 0x88, 0x88, 0x10, 0x20, 0x40,
0x80, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x70, 0x88,
0x08, 0x30, 0x08, 0x08, 0x88, 0x70, 0x00, 0x00,
0x00, 0x00, 0x10, 0x30, 0x50, 0x50, 0x90, 0x78,
0x10, 0x18, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x80,
0x80, 0xF0, 0x08, 0x08, 0x88, 0x70, 0x00, 0x00,
0x00, 0x00, 0x70, 0x90, 0x80, 0xF0, 0x88, 0x88,
0x88, 0x70, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x90,
0x10, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00,
0x00, 0x00, 0x70, 0x88, 0x88, 0x70, 0x88, 0x88,
0x88, 0x70, 0x00, 0x00, 0x00, 0x00, 0x70, 0x88,
0x88, 0x88, 0x78, 0x08, 0x48, 0x70, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00,
0x00, 0x04, 0x08, 0x10, 0x20, 0x40, 0x20, 0x10,
0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF8, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x00, 0x00,
0x00, 0x40, 0x20, 0x10, 0x08, 0x04, 0x08, 0x10,
0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x70, 0x88,
0x88, 0x10, 0x20, 0x20, 0x00, 0x20, 0x00, 0x00,
0x00, 0x00, 0x70, 0x88, 0x98, 0xA8, 0xA8, 0xB8,
0x80, 0x78, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20,
0x30, 0x50, 0x50, 0x78, 0x48, 0xCC, 0x00, 0x00,
0x00, 0x00, 0xF0, 0x48, 0x48, 0x70, 0x48, 0x48,
0x48, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x78, 0x88,
0x80, 0x80, 0x80, 0x80, 0x88, 0x70, 0x00, 0x00,
0x00, 0x00, 0xF0, 0x48, 0x48, 0x48, 0x48, 0x48,
0x48, 0xF0, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x48,
0x50, 0x70, 0x50, 0x40, 0x48, 0xF8, 0x00, 0x00,
0x00, 0x00, 0xF8, 0x48, 0x50, 0x70, 0x50, 0x40,
0x40, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x48,
0x80, 0x80, 0x9C, 0x88, 0x48, 0x30, 0x00, 0x00,
0x00, 0x00, 0xCC, 0x48, 0x48, 0x78, 0x48, 0x48,
0x48, 0xCC, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x20,
0x20, 0x20, 0x20, 0x20, 0x20, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x7C, 0x10, 0x10, 0x10, 0x10, 0x10,
0x10, 0x90, 0xE0, 0x00, 0x00, 0x00, 0xEC, 0x48,
0x50, 0x60, 0x50, 0x50, 0x48, 0xEC, 0x00, 0x00,
0x00, 0x00, 0xE0, 0x40, 0x40, 0x40, 0x40, 0x40,
0x44, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xD8, 0xD8,
0xD8, 0xD8, 0xA8, 0xA8, 0xA8, 0xA8, 0x00, 0x00,
0x00, 0x00, 0xDC, 0x48, 0x68, 0x68, 0x58, 0x58,
0x48, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x70, 0x88,
0x88, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, 0x00,
0x00, 0x00, 0xF0, 0x48, 0x48, 0x70, 0x40, 0x40,
0x40, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x70, 0x88,
0x88, 0x88, 0x88, 0xE8, 0x98, 0x70, 0x18, 0x00,
0x00, 0x00, 0xF0, 0x48, 0x48, 0x70, 0x50, 0x48,
0x48, 0xEC, 0x00, 0x00, 0x00, 0x00, 0x78, 0x88,
0x80, 0x60, 0x10, 0x08, 0x88, 0xF0, 0x00, 0x00,
0x00, 0x00, 0xF8, 0xA8, 0x20, 0x20, 0x20, 0x20,
0x20, 0x70, 0x00, 0x00, 0x00, 0x00, 0xCC, 0x48,
0x48, 0x48, 0x48, 0x48, 0x48, 0x30, 0x00, 0x00,
0x00, 0x00, 0xCC, 0x48, 0x48, 0x50, 0x50, 0x30,
0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0xA8, 0xA8,
0xA8, 0x70, 0x50, 0x50, 0x50, 0x50, 0x00, 0x00,
0x00, 0x00, 0xD8, 0x50, 0x50, 0x20, 0x20, 0x50,
0x50, 0xD8, 0x00, 0x00, 0x00, 0x00, 0xD8, 0x50,
0x50, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, 0x00,
0x00, 0x00, 0xF8, 0x90, 0x10, 0x20, 0x20, 0x40,
0x48, 0xF8, 0x00, 0x00, 0x00, 0x38, 0x20, 0x20,
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x38, 0x00,
0x00, 0x40, 0x40, 0x40, 0x20, 0x20, 0x10, 0x10,
0x10, 0x08, 0x00, 0x00, 0x00, 0x70, 0x10, 0x10,
0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x70, 0x00,
0x00, 0x20, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC,
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x30, 0x48, 0x38, 0x48, 0x3C, 0x00, 0x00,
0x00, 0x00, 0xC0, 0x40, 0x40, 0x70, 0x48, 0x48,
0x48, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x38, 0x48, 0x40, 0x40, 0x38, 0x00, 0x00,
0x00, 0x00, 0x18, 0x08, 0x08, 0x38, 0x48, 0x48,
0x48, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x30, 0x48, 0x78, 0x40, 0x38, 0x00, 0x00,
0x00, 0x00, 0x1C, 0x20, 0x20, 0x78, 0x20, 0x20,
0x20, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x3C, 0x48, 0x30, 0x40, 0x78, 0x44, 0x38,
0x00, 0x00, 0xC0, 0x40, 0x40, 0x70, 0x48, 0x48,
0x48, 0xEC, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00,
0x00, 0x60, 0x20, 0x20, 0x20, 0x70, 0x00, 0x00,
0x00, 0x00, 0x10, 0x00, 0x00, 0x30, 0x10, 0x10,
0x10, 0x10, 0x10, 0xE0, 0x00, 0x00, 0xC0, 0x40,
0x40, 0x5C, 0x50, 0x70, 0x48, 0xEC, 0x00, 0x00,
0x00, 0x00, 0xE0, 0x20, 0x20, 0x20, 0x20, 0x20,
0x20, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xF0, 0xA8, 0xA8, 0xA8, 0xA8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x48, 0x48,
0x48, 0xEC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x30, 0x48, 0x48, 0x48, 0x30, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x48, 0x48,
0x48, 0x70, 0x40, 0xE0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x38, 0x48, 0x48, 0x48, 0x38, 0x08, 0x1C,
0x00, 0x00, 0x00, 0x00, 0x00, 0xD8, 0x60, 0x40,
0x40, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x78, 0x40, 0x30, 0x08, 0x78, 0x00, 0x00,
0x00, 0x00, 0x00, 0x20, 0x20, 0x70, 0x20, 0x20,
0x20, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xD8, 0x48, 0x48, 0x48, 0x3C, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xEC, 0x48, 0x50,
0x30, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xA8, 0xA8, 0x70, 0x50, 0x50, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xD8, 0x50, 0x20,
0x50, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xEC, 0x48, 0x50, 0x30, 0x20, 0x20, 0xC0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x10, 0x20,
0x20, 0x78, 0x00, 0x00, 0x00, 0x18, 0x10, 0x10,
0x10, 0x20, 0x10, 0x10, 0x10, 0x10, 0x18, 0x00,
0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10,
0x10, 0x10, 0x10, 0x10, 0x00, 0x60, 0x20, 0x20,
0x20, 0x10, 0x20, 0x20, 0x20, 0x20, 0x60, 0x00,
0x40, 0xA4, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00,
};

2
source/bin2c.bat Normal file
View File

@ -0,0 +1,2 @@
bin2c -o Newest_FW_ver.h newomega_top.bin
pause

BIN
source/bin2c.exe Normal file

Binary file not shown.

229
source/draw.c Normal file
View File

@ -0,0 +1,229 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <gba_base.h>
#include <gba_dma.h>
#include "hzk12.h"
#include "asc126.h"
#include "ezkernel.h"
int current_y = 1;
extern u8 pReadCache [MAX_pReadCache_size]EWRAM_BSS;
//******************************************************************************
void IWRAM_CODE Clear(u16 x, u16 y, u16 w, u16 h, u16 c, u8 isDrawDirect)
{
u16 *p;
u16 yi,ww,hh;
if(isDrawDirect)
p = VideoBuffer;
else
p = Vcache;
hh = (y+h>160)?160:(y+h);
ww = (x+w>240)?(240-x):w;
//u16 tmp[240];
for(u32 i=0;i<240;i++)
((u16*)pReadCache)[i] = c;
for(yi=y; yi < hh; yi++)
dmaCopy(pReadCache,p+yi*240+x,ww*2);
}
//******************************************************************************
void IWRAM_CODE ClearWithBG(u16* pbg,u16 x, u16 y, u16 w, u16 h, u8 isDrawDirect)
{
u16 *p;
u16 yi,ww,hh;
if(isDrawDirect)
p = VideoBuffer;
else
p = Vcache;
hh = (y+h>160)?160:(y+h);
ww = (x+w>240)?(240-x):w;
for(yi=y; yi < hh; yi++)
dmaCopy(pbg+yi*240+x,p+yi*240+x,ww*2);
}
//******************************************************************************
void IWRAM_CODE DrawPic(u16 *GFX, u16 x, u16 y, u16 w, u16 h, u8 isTrans, u16 tcolor, u8 isDrawDirect)
{
u16 *p,c;
u16 xi,yi,ww,hh;
if(isDrawDirect)
p = VideoBuffer;
else
p = Vcache;
hh = (y+h>160)?160:(y+h);
ww = (x+w>240)?(240-x):w;
if(isTrans)
{
for(yi=y; yi < hh; yi++)
for(xi=x;xi<x+ww;xi++)
{
c = GFX[(yi-y)*w+(xi-x)];
if(c!=tcolor)
p[yi*240+xi] = c;
}
}
else
{
for(yi=y; yi < hh; yi++)
dmaCopy(GFX+(yi-y)*w,p+yi*240+x,w*2);
}
}
//---------------------------------------------------------------------------------
void DrawHZText12(char *str, u16 len, u16 x, u16 y, u16 c, u8 isDrawDirect)
{
u32 i,l,hi=0;
u32 location;
u8 cc,c1,c2;
u16 *v;
u16 *p1 = Vcache;
u16 *p2 = VideoBuffer;
u16 yy;
if(isDrawDirect)
v = p2;
else
v = p1;
if(len==0)
l=strlen(str);
else
if(len>strlen(str))
l=strlen(str);
else
l=len;
if((u16)(len*6)>(u16)(240-x))
len=(240-x)/6;
while(hi<l)
{
c1 = str[hi];
hi++;
if(c1<0x80) //ASCII
{
yy = 240*y;
location = c1*12;
for(i=0;i<12;i++)
{
cc = ASC_DATA[location+i];
if(cc & 0x01)
v[x+7+yy]=c;
if(cc & 0x02)
v[x+6+yy]=c;
if(cc & 0x04)
v[x+5+yy]=c;
if(cc & 0x08)
v[x+4+yy]=c;
if(cc & 0x10)
v[x+3+yy]=c;
if(cc & 0x20)
v[x+2+yy]=c;
if(cc & 0x40)
v[x+1+yy]=c;
if(cc & 0x80)
v[x+yy]=c;
yy+=240;
}
x+=6;
continue;
}
else //Double-byte
{
c2 = str[hi];
hi++;
if(c1<0xb0)
location = ((c1-0xa1)*94+(c2-0xa1))*24;
else
location = (9*94+(c1-0xb0)*94+(c2-0xa1))*24;
yy = 240*y;
for(i=0;i<12;i++)
{
cc = acHZK12[location+i*2];
if(cc & 0x01)
v[x+7+yy]=c;
if(cc & 0x02)
v[x+6+yy]=c;
if(cc & 0x04)
v[x+5+yy]=c;
if(cc & 0x08)
v[x+4+yy]=c;
if(cc & 0x10)
v[x+3+yy]=c;
if(cc & 0x20)
v[x+2+yy]=c;
if(cc & 0x40)
v[x+1+yy]=c;
if(cc & 0x80)
v[x+yy]=c;
cc = acHZK12[location+i*2+1];
if(cc & 0x01)
v[x+15+yy]=c;
if(cc & 0x02)
v[x+14+yy]=c;
if(cc & 0x04)
v[x+13+yy]=c;
if(cc & 0x08)
v[x+12+yy]=c;
if(cc & 0x10)
v[x+11+yy]=c;
if(cc & 0x20)
v[x+10+yy]=c;
if(cc & 0x40)
v[x+9+yy]=c;
if(cc & 0x80)
v[x+8+yy]=c;
yy+=240;
}
x+=12;
}
}
}
//---------------------------------------------------------------------------------
void DEBUG_printf(const char *format, ...)
{
char* str;
va_list va;
va_start(va, format);
vasprintf(&str, format, va);
va_end(va);
if(current_y==1)
{
Clear(0, 0, 240, 160, 0x0000, 1);
}
DrawHZText12(str,0,0,current_y, RGB(31,31,31),1);
free(str);
current_y += 12;
if(current_y>150)
{
wait_btn();
current_y=1;
}
}
//---------------------------------------------------------------------------------
void ShowbootProgress(char *str)
{
u8 str_len = strlen(str);
Clear(60,160-15,120,15,gl_color_cheat_black,1);
DrawHZText12(str,0,(240-str_len*6)/2,160-15,gl_color_text,1);
}

10
source/draw.h Normal file
View File

@ -0,0 +1,10 @@
#include <gba_base.h>
void Clear(u16 x, u16 y, u16 w, u16 h, u16 c, u8 isDrawDirect);
void ClearWithBG(u16* pbg,u16 x, u16 y, u16 w, u16 h, u8 isDrawDirect);
void DrawPic(u16 *GFX, u16 x, u16 y, u16 w, u16 h, u8 isTrans, u16 tcolor, u8 isDrawDirect);
void DrawHZText12(char *str, u16 len, u16 x, u16 y, u16 c, u8 isDrawDirect);
void DEBUG_printf(const char *format, ...);
void ShowbootProgress(char *str);

2530
source/ezkernel.c Normal file

File diff suppressed because it is too large Load Diff

107
source/ezkernel.h Normal file
View File

@ -0,0 +1,107 @@
//#ifndef EZKERNEL_HEADER
//#define EZKERNEL_HEADER
#include "ff.h"
#define MAX_pReadCache_size 0x20000
#define MAX_files 0x200
#define MAX_folder 0x100
#define MAX_NOR 0x40
#define MAX_path_len 0x100
#define FAT_table_size 0x400
#define FAT_table_SAV_offset 0x200
#define FAT_table_RTS_offset 0x300
#define DEBUG
#define VideoBuffer (u16*)0x6000000
#define Vcache (u16*)pReadCache
#define RGB(r,g,b) ((r)+(g<<5)+(b<<10))
#define PSRAMBase_S98 (u32)0x08800000
#define FlashBase_S98 (u32)0x09000000
#define FlashBase_S98_end (u32)0x09800000
#define SAVE_sram_base (u32)0x0E000000
#define SRAMSaver (u32)0x0E000000
#define UNBCD(x) (((x) & 0xF) + (((x) >> 4) * 10))
#define _BCD(x) ((((x) / 10)<<4) + ((x) % 10))
#define _YEAR 0
#define _MONTH 1
#define _DAY 2
#define _WKD 3
#define _HOUR 4
#define _MIN 5
#define _SEC 6
typedef struct FM_NOR_FILE_SECT{////save to nor
unsigned char filename[100];
u16 rompage ;
u16 have_patch ;
u16 have_RTS;
u16 reserved;
u32 filesize;
u32 reserved2 ;
char gamename[0x10];
} FM_NOR_FS;
typedef struct FM_Folder_SECT{
unsigned char filename[100];
} FM_Folder_FS;
typedef struct FM_FILE_SECT{
unsigned char filename[100];
u32 filesize;
} FM_FILE_FS;
typedef enum {
SD_list=0,
NOR_list=1,
SET_win=2,
HELP=3,
}PAGE_NUM ;
//----------------------------
extern DWORD Get_NextCluster( FFOBJID* obj, DWORD clst);
extern DWORD ClustToSect(FATFS* fs,DWORD clst);
extern const unsigned char __attribute__((aligned(4)))gImage_SD[76800];
extern const unsigned char __attribute__((aligned(4)))gImage_NOR[76800];
extern const unsigned char __attribute__((aligned(4)))gImage_LOGO[76800];
extern const unsigned char __attribute__((aligned(4)))gImage_icons[1344];
extern const unsigned char __attribute__((aligned(4)))gImage_MENU[28160];
extern FM_NOR_FS pNorFS[MAX_NOR]EWRAM_BSS;
extern u8 pReadCache [MAX_pReadCache_size]EWRAM_BSS;
extern u8 __attribute__((aligned(4)))GAMECODE[4];
extern u16 gl_reset_on;
extern u16 gl_rts_on;
extern u16 gl_sleep_on;
extern u16 gl_cheat_on;
extern u16 gl_color_selected;
extern u16 gl_color_text;
extern u16 gl_color_selectBG_sd;
extern u16 gl_color_selectBG_nor;
extern u16 gl_color_MENU_btn;
extern u16 gl_color_cheat_count;
extern u16 gl_color_cheat_black;
extern u16 gl_color_NORFULL;
extern u16 gl_color_btn_clean;
u32 Setting_window(void);
u32 LoadRTSfile(TCHAR *filename);
void ShowTime(u32 page_num ,u32 page_mode);
//#endif

324
source/ff13b/00history.txt Normal file
View File

@ -0,0 +1,324 @@
----------------------------------------------------------------------------
Revision history of FatFs module
----------------------------------------------------------------------------
R0.00 (February 26, 2006)
Prototype.
R0.01 (April 29, 2006)
The first release.
R0.02 (June 01, 2006)
Added FAT12 support.
Removed unbuffered mode.
Fixed a problem on small (<32M) partition.
R0.02a (June 10, 2006)
Added a configuration option (_FS_MINIMUM).
R0.03 (September 22, 2006)
Added f_rename().
Changed option _FS_MINIMUM to _FS_MINIMIZE.
R0.03a (December 11, 2006)
Improved cluster scan algorithm to write files fast.
Fixed f_mkdir() creates incorrect directory on FAT32.
R0.04 (February 04, 2007)
Added f_mkfs().
Supported multiple drive system.
Changed some interfaces for multiple drive system.
Changed f_mountdrv() to f_mount().
R0.04a (April 01, 2007)
Supported multiple partitions on a physical drive.
Added a capability of extending file size to f_lseek().
Added minimization level 3.
Fixed an endian sensitive code in f_mkfs().
R0.04b (May 05, 2007)
Added a configuration option _USE_NTFLAG.
Added FSINFO support.
Fixed DBCS name can result FR_INVALID_NAME.
Fixed short seek (<= csize) collapses the file object.
R0.05 (August 25, 2007)
Changed arguments of f_read(), f_write() and f_mkfs().
Fixed f_mkfs() on FAT32 creates incorrect FSINFO.
Fixed f_mkdir() on FAT32 creates incorrect directory.
R0.05a (February 03, 2008)
Added f_truncate() and f_utime().
Fixed off by one error at FAT sub-type determination.
Fixed btr in f_read() can be mistruncated.
Fixed cached sector is not flushed when create and close without write.
R0.06 (April 01, 2008)
Added fputc(), fputs(), fprintf() and fgets().
Improved performance of f_lseek() on moving to the same or following cluster.
R0.07 (April 01, 2009)
Merged Tiny-FatFs as a configuration option. (_FS_TINY)
Added long file name feature. (_USE_LFN)
Added multiple code page feature. (_CODE_PAGE)
Added re-entrancy for multitask operation. (_FS_REENTRANT)
Added auto cluster size selection to f_mkfs().
Added rewind option to f_readdir().
Changed result code of critical errors.
Renamed string functions to avoid name collision.
R0.07a (April 14, 2009)
Septemberarated out OS dependent code on reentrant cfg.
Added multiple sector size feature.
R0.07c (June 21, 2009)
Fixed f_unlink() can return FR_OK on error.
Fixed wrong cache control in f_lseek().
Added relative path feature.
Added f_chdir() and f_chdrive().
Added proper case conversion to extended character.
R0.07e (November 03, 2009)
Septemberarated out configuration options from ff.h to ffconf.h.
Fixed f_unlink() fails to remove a sub-directory on _FS_RPATH.
Fixed name matching error on the 13 character boundary.
Added a configuration option, _LFN_UNICODE.
Changed f_readdir() to return the SFN with always upper case on non-LFN cfg.
R0.08 (May 15, 2010)
Added a memory configuration option. (_USE_LFN = 3)
Added file lock feature. (_FS_SHARE)
Added fast seek feature. (_USE_FASTSEEK)
Changed some types on the API, XCHAR->TCHAR.
Changed .fname in the FILINFO structure on Unicode cfg.
String functions support UTF-8 encoding files on Unicode cfg.
R0.08a (August 16, 2010)
Added f_getcwd(). (_FS_RPATH = 2)
Added sector erase feature. (_USE_ERASE)
Moved file lock semaphore table from fs object to the bss.
Fixed f_mkfs() creates wrong FAT32 volume.
R0.08b (January 15, 2011)
Fast seek feature is also applied to f_read() and f_write().
f_lseek() reports required table size on creating CLMP.
Extended format syntax of f_printf().
Ignores duplicated directory separators in given path name.
R0.09 (September 06, 2011)
f_mkfs() supports multiple partition to complete the multiple partition feature.
Added f_fdisk().
R0.09a (August 27, 2012)
Changed f_open() and f_opendir() reject null object pointer to avoid crash.
Changed option name _FS_SHARE to _FS_LOCK.
Fixed assertion failure due to OS/2 EA on FAT12/16 volume.
R0.09b (January 24, 2013)
Added f_setlabel() and f_getlabel().
R0.10 (October 02, 2013)
Added selection of character encoding on the file. (_STRF_ENCODE)
Added f_closedir().
Added forced full FAT scan for f_getfree(). (_FS_NOFSINFO)
Added forced mount feature with changes of f_mount().
Improved behavior of volume auto detection.
Improved write throughput of f_puts() and f_printf().
Changed argument of f_chdrive(), f_mkfs(), disk_read() and disk_write().
Fixed f_write() can be truncated when the file size is close to 4GB.
Fixed f_open(), f_mkdir() and f_setlabel() can return incorrect value on error.
R0.10a (January 15, 2014)
Added arbitrary strings as drive number in the path name. (_STR_VOLUME_ID)
Added a configuration option of minimum sector size. (_MIN_SS)
2nd argument of f_rename() can have a drive number and it will be ignored.
Fixed f_mount() with forced mount fails when drive number is >= 1. (appeared at R0.10)
Fixed f_close() invalidates the file object without volume lock.
Fixed f_closedir() returns but the volume lock is left acquired. (appeared at R0.10)
Fixed creation of an entry with LFN fails on too many SFN collisions. (appeared at R0.07)
R0.10b (May 19, 2014)
Fixed a hard error in the disk I/O layer can collapse the directory entry.
Fixed LFN entry is not deleted when delete/rename an object with lossy converted SFN. (appeared at R0.07)
R0.10c (November 09, 2014)
Added a configuration option for the platforms without RTC. (_FS_NORTC)
Changed option name _USE_ERASE to _USE_TRIM.
Fixed volume label created by Mac OS X cannot be retrieved with f_getlabel(). (appeared at R0.09b)
Fixed a potential problem of FAT access that can appear on disk error.
Fixed null pointer dereference on attempting to delete the root direcotry. (appeared at R0.08)
R0.11 (February 09, 2015)
Added f_findfirst(), f_findnext() and f_findclose(). (_USE_FIND)
Fixed f_unlink() does not remove cluster chain of the file. (appeared at R0.10c)
Fixed _FS_NORTC option does not work properly. (appeared at R0.10c)
R0.11a (September 05, 2015)
Fixed wrong media change can lead a deadlock at thread-safe configuration.
Added code page 771, 860, 861, 863, 864, 865 and 869. (_CODE_PAGE)
Removed some code pages actually not exist on the standard systems. (_CODE_PAGE)
Fixed errors in the case conversion teble of code page 437 and 850 (ff.c).
Fixed errors in the case conversion teble of Unicode (cc*.c).
R0.12 (April 12, 2016)
Added support for exFAT file system. (_FS_EXFAT)
Added f_expand(). (_USE_EXPAND)
Changed some members in FINFO structure and behavior of f_readdir().
Added an option _USE_CHMOD.
Removed an option _WORD_ACCESS.
Fixed errors in the case conversion table of Unicode (cc*.c).
R0.12a (July 10, 2016)
Added support for creating exFAT volume with some changes of f_mkfs().
Added a file open method FA_OPEN_APPEND. An f_lseek() following f_open() is no longer needed.
f_forward() is available regardless of _FS_TINY.
Fixed f_mkfs() creates wrong volume. (appeared at R0.12)
Fixed wrong memory read in create_name(). (appeared at R0.12)
Fixed compilation fails at some configurations, _USE_FASTSEEK and _USE_FORWARD.
R0.12b (September 04, 2016)
Made f_rename() be able to rename objects with the same name but case.
Fixed an error in the case conversion teble of code page 866. (ff.c)
Fixed writing data is truncated at the file offset 4GiB on the exFAT volume. (appeared at R0.12)
Fixed creating a file in the root directory of exFAT volume can fail. (appeared at R0.12)
Fixed f_mkfs() creating exFAT volume with too small cluster size can collapse unallocated memory. (appeared at R0.12)
Fixed wrong object name can be returned when read directory at Unicode cfg. (appeared at R0.12)
Fixed large file allocation/removing on the exFAT volume collapses allocation bitmap. (appeared at R0.12)
Fixed some internal errors in f_expand() and f_lseek(). (appeared at R0.12)
R0.12c (March 04, 2017)
Improved write throughput at the fragmented file on the exFAT volume.
Made memory usage for exFAT be able to be reduced as decreasing _MAX_LFN.
Fixed successive f_getfree() can return wrong count on the FAT12/16 volume. (appeared at R0.12)
Fixed configuration option _VOLUMES cannot be set 10. (appeared at R0.10c)
R0.13 (May 21, 2017)
Changed heading character of configuration keywords "_" to "FF_".
Removed ASCII-only configuration, FF_CODE_PAGE = 1. Use FF_CODE_PAGE = 437 instead.
Added f_setcp(), run-time code page configuration. (FF_CODE_PAGE = 0)
Improved cluster allocation time on stretch a deep buried cluster chain.
Improved processing time of f_mkdir() with large cluster size by using FF_USE_LFN = 3.
Improved NoFatChain flag of the fragmented file to be set after it is truncated and got contiguous.
Fixed archive attribute is left not set when a file on the exFAT volume is renamed. (appeared at R0.12)
Fixed exFAT FAT entry can be collapsed when write or lseek operation to the existing file is done. (appeared at R0.12c)
Fixed creating a file can fail when a new cluster allocation to the exFAT directory occures. (appeared at R0.12c)
R0.13a (October 14, 2017)
Added support for UTF-8 encoding on the API. (FF_LFN_UNICODE = 2)
Added options for file name output buffer. (FF_LFN_BUF, FF_SFN_BUF).
Added dynamic memory allocation option for working buffer of f_mkfs() and f_fdisk().
Fixed f_fdisk() and f_mkfs() create the partition table with wrong CHS parameters. (appeared at R0.09)
Fixed f_unlink() can cause lost clusters at fragmented file on the exFAT volume. (appeared at R0.12c)
Fixed f_setlabel() rejects some valid characters for exFAT volume. (appeared at R0.12)
R0.13b (April 07, 2018)
Added support for UTF-32 encoding on the API. (FF_LFN_UNICODE = 3)
Added support for Unix style volume ID. (FF_STR_VOLUME_ID = 2)
Fixed accesing any object on the exFAT root directory beyond the cluster boundary can fail. (appeared at R0.12c)
Fixed f_setlabel() does not reject some invalid characters. (appeared at R0.09b)

22
source/ff13b/00readme.txt Normal file
View File

@ -0,0 +1,22 @@
FatFs Module Source Files R0.13b
FILES
00readme.txt This file.
00history.txt Revision history.
ff.c FatFs module.
ffconf.h Configuration file of FatFs module.
ff.h Common include file for FatFs and application module.
diskio.h Common include file for FatFs and disk I/O module.
diskio.c An example of glue function to attach existing disk I/O module to FatFs.
integer.h Integer type definitions for FatFs.
ffunicode.c Optional Unicode utility functions.
ffsystem.c An example of optional O/S related functions.
Low level disk I/O module is not included in this archive because the FatFs
module is only a generic file system layer and it does not depend on any specific
storage device. You need to provide a low level disk I/O module written to
control the storage device that attached to the target system.

243
source/ff13b/diskio.c Normal file
View File

@ -0,0 +1,243 @@
/*-----------------------------------------------------------------------*/
/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2016 */
/*-----------------------------------------------------------------------*/
/* If a working storage control module is available, it should be */
/* attached to the FatFs via a glue function rather than modifying it. */
/* This is an example of glue functions to attach various exsisting */
/* storage control modules to the FatFs module with a defined API. */
/*-----------------------------------------------------------------------*/
#include "diskio.h" /* FatFs lower layer API */
#include "../Ezcard_OP.h"
#include "../RTC.h"
/* Definitions of physical drive number for each drive */
//#define DEV_RAM 0 /* Example: Map Ramdisk to physical drive 0 */
//#define DEV_MMC 1 /* Example: Map MMC/SD card to physical drive 1 */
//#define DEV_USB 2 /* Example: Map USB MSD to physical drive 2 */
/*-----------------------------------------------------------------------*/
/* Get Drive Status */
/*-----------------------------------------------------------------------*/
DSTATUS disk_status (
BYTE pdrv /* Physical drive nmuber to identify the drive */
)
{
/* DSTATUS stat;
int result;
switch (pdrv) {
case DEV_RAM :
result = RAM_disk_status();
// translate the reslut code here
return stat;
case DEV_MMC :
result = MMC_disk_status();
// translate the reslut code here
return stat;
case DEV_USB :
result = USB_disk_status();
// translate the reslut code here
return stat;
}
return STA_NOINIT;*/
return RES_OK;
}
/*-----------------------------------------------------------------------*/
/* Inidialize a Drive */
/*-----------------------------------------------------------------------*/
DSTATUS disk_initialize (
BYTE pdrv /* Physical drive nmuber to identify the drive */
)
{
/* DSTATUS stat;
int result;
switch (pdrv) {
case DEV_RAM :
result = RAM_disk_initialize();
// translate the reslut code here
return stat;
case DEV_MMC :
result = MMC_disk_initialize();
// translate the reslut code here
return stat;
case DEV_USB :
result = USB_disk_initialize();
// translate the reslut code here
return stat;
}
return STA_NOINIT;*/
return RES_OK;
}
/*-----------------------------------------------------------------------*/
/* Read Sector(s) */
/*-----------------------------------------------------------------------*/
DRESULT disk_read (
BYTE pdrv, /* Physical drive nmuber to identify the drive */
BYTE *buff, /* Data buffer to store read data */
DWORD sector, /* Start sector in LBA */
UINT count /* Number of sectors to read */
)
{
/* DRESULT res;
int result;
switch (pdrv) {
case DEV_RAM :
// translate the arguments here
result = RAM_disk_read(buff, sector, count);
// translate the reslut code here
return res;
case DEV_MMC :
// translate the arguments here
result = MMC_disk_read(buff, sector, count);
// translate the reslut code here
return res;
case DEV_USB :
// translate the arguments here
result = USB_disk_read(buff, sector, count);
// translate the reslut code here
return res;
}
return RES_PARERR;*/
DRESULT res;
res = Read_SD_sectors(sector, count, buff);
return res;
}
/*-----------------------------------------------------------------------*/
/* Write Sector(s) */
/*-----------------------------------------------------------------------*/
DRESULT disk_write (
BYTE pdrv, /* Physical drive nmuber to identify the drive */
const BYTE *buff, /* Data to be written */
DWORD sector, /* Start sector in LBA */
UINT count /* Number of sectors to write */
)
{
/* DRESULT res;
int result;
switch (pdrv) {
case DEV_RAM :
// translate the arguments here
result = RAM_disk_write(buff, sector, count);
// translate the reslut code here
return res;
case DEV_MMC :
// translate the arguments here
result = MMC_disk_write(buff, sector, count);
// translate the reslut code here
return res;
case DEV_USB :
// translate the arguments here
result = USB_disk_write(buff, sector, count);
// translate the reslut code here
return res;
}
return RES_PARERR;*/
DRESULT res;
res = Write_SD_sectors(sector, count, buff);
return res;
}
/*-----------------------------------------------------------------------*/
/* Miscellaneous Functions */
/*-----------------------------------------------------------------------*/
DRESULT disk_ioctl (
BYTE pdrv, /* Physical drive nmuber (0..) */
BYTE cmd, /* Control code */
void *buff /* Buffer to send/receive control data */
)
{
/* DRESULT res;
int result;
switch (pdrv) {
case DEV_RAM :
// Process of the command for the RAM drive
return res;
case DEV_MMC :
// Process of the command for the MMC/SD card
return res;
case DEV_USB :
// Process of the command the USB drive
return res;
}
return RES_PARERR;*/
return RES_PARERR;
}
DWORD get_fattime (void)
{
u8 datetime[7];
rtc_enable();
rtc_get(datetime);
rtc_disenable();
return ((DWORD)(UNBCD(datetime[0])+20) << 25 | (DWORD)UNBCD(datetime[1]) << 21 | (DWORD)UNBCD(datetime[2]&0x3F) << 16 | (DWORD)UNBCD(datetime[4]&0x3F) << 11 | (DWORD)UNBCD(datetime[5]) << 5 | (DWORD)UNBCD(datetime[6]) >> 1 );
}

80
source/ff13b/diskio.h Normal file
View File

@ -0,0 +1,80 @@
/*-----------------------------------------------------------------------/
/ Low level disk interface modlue include file (C)ChaN, 2014 /
/-----------------------------------------------------------------------*/
#ifndef _DISKIO_DEFINED
#define _DISKIO_DEFINED
#ifdef __cplusplus
extern "C" {
#endif
#include "integer.h"
/* Status of Disk Functions */
typedef BYTE DSTATUS;
/* Results of Disk Functions */
typedef enum {
RES_OK = 0, /* 0: Successful */
RES_ERROR, /* 1: R/W Error */
RES_WRPRT, /* 2: Write Protected */
RES_NOTRDY, /* 3: Not Ready */
RES_PARERR /* 4: Invalid Parameter */
} DRESULT;
/*---------------------------------------*/
/* Prototypes for disk control functions */
DSTATUS disk_initialize (BYTE pdrv);
DSTATUS disk_status (BYTE pdrv);
DRESULT disk_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count);
DRESULT disk_write (BYTE pdrv, const BYTE* buff, DWORD sector, UINT count);
DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
/* Disk Status Bits (DSTATUS) */
#define STA_NOINIT 0x01 /* Drive not initialized */
#define STA_NODISK 0x02 /* No medium in the drive */
#define STA_PROTECT 0x04 /* Write protected */
/* Command code for disk_ioctrl fucntion */
/* Generic command (Used by FatFs) */
#define CTRL_SYNC 0 /* Complete pending write process (needed at FF_FS_READONLY == 0) */
#define GET_SECTOR_COUNT 1 /* Get media size (needed at FF_USE_MKFS == 1) */
#define GET_SECTOR_SIZE 2 /* Get sector size (needed at FF_MAX_SS != FF_MIN_SS) */
#define GET_BLOCK_SIZE 3 /* Get erase block size (needed at FF_USE_MKFS == 1) */
#define CTRL_TRIM 4 /* Inform device that the data on the block of sectors is no longer used (needed at FF_USE_TRIM == 1) */
/* Generic command (Not used by FatFs) */
#define CTRL_POWER 5 /* Get/Set power status */
#define CTRL_LOCK 6 /* Lock/Unlock media removal */
#define CTRL_EJECT 7 /* Eject media */
#define CTRL_FORMAT 8 /* Create physical format on the media */
/* MMC/SDC specific ioctl command */
#define MMC_GET_TYPE 10 /* Get card type */
#define MMC_GET_CSD 11 /* Get CSD */
#define MMC_GET_CID 12 /* Get CID */
#define MMC_GET_OCR 13 /* Get OCR */
#define MMC_GET_SDSTAT 14 /* Get SD status */
#define ISDIO_READ 55 /* Read data form SD iSDIO register */
#define ISDIO_WRITE 56 /* Write data to SD iSDIO register */
#define ISDIO_MRITE 57 /* Masked write data to SD iSDIO register */
/* ATA/CF specific ioctl command */
#define ATA_GET_REV 20 /* Get F/W revision */
#define ATA_GET_MODEL 21 /* Get model name */
#define ATA_GET_SN 22 /* Get serial number */
#ifdef __cplusplus
}
#endif
#endif

6548
source/ff13b/ff.c Normal file

File diff suppressed because it is too large Load Diff

6533
source/ff13b/ff.c.bak Normal file

File diff suppressed because it is too large Load Diff

376
source/ff13b/ff.h Normal file
View File

@ -0,0 +1,376 @@
/*----------------------------------------------------------------------------/
/ FatFs - Generic FAT Filesystem module R0.13b /
/-----------------------------------------------------------------------------/
/
/ Copyright (C) 2018, ChaN, all right reserved.
/
/ FatFs module is an open source software. Redistribution and use of FatFs in
/ source and binary forms, with or without modification, are permitted provided
/ that the following condition is met:
/ 1. Redistributions of source code must retain the above copyright notice,
/ this condition and the following disclaimer.
/
/ This software is provided by the copyright holder and contributors "AS IS"
/ and any warranties related to this software are DISCLAIMED.
/ The copyright owner or contributors be NOT LIABLE for any damages caused
/ by use of this software.
/
/----------------------------------------------------------------------------*/
#ifndef FF_DEFINED
#define FF_DEFINED 63463 /* Revision ID */
#ifdef __cplusplus
extern "C" {
#endif
#include "integer.h" /* Basic integer types */
#include "ffconf.h" /* FatFs configuration options */
#if FF_DEFINED != FFCONF_DEF
#error Wrong configuration file (ffconf.h).
#endif
/* Definitions of volume management */
#if FF_MULTI_PARTITION /* Multiple partition configuration */
typedef struct {
BYTE pd; /* Physical drive number */
BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
} PARTITION;
extern PARTITION VolToPart[]; /* Volume - Partition resolution table */
#endif
#if FF_STR_VOLUME_ID
#ifndef FF_VOLUME_STRS
extern const char* VolumeStr[FF_VOLUMES]; /* User defied volume ID */
#endif
#endif
/* Type of path name strings on FatFs API */
#ifndef _INC_TCHAR
#define _INC_TCHAR
#if FF_USE_LFN && FF_LFN_UNICODE == 1 /* Unicode in UTF-16 encoding */
typedef WCHAR TCHAR;
#define _T(x) L ## x
#define _TEXT(x) L ## x
#elif FF_USE_LFN && FF_LFN_UNICODE == 2 /* Unicode in UTF-8 encoding */
typedef char TCHAR;
#define _T(x) u8 ## x
#define _TEXT(x) u8 ## x
#elif FF_USE_LFN && FF_LFN_UNICODE == 3 /* Unicode in UTF-32 encoding */
typedef DWORD TCHAR;
#define _T(x) U ## x
#define _TEXT(x) U ## x
#elif FF_USE_LFN && (FF_LFN_UNICODE < 0 || FF_LFN_UNICODE > 3)
#error Wrong FF_LFN_UNICODE setting
#else /* ANSI/OEM code in SBCS/DBCS */
typedef char TCHAR;
#define _T(x) x
#define _TEXT(x) x
#endif
#endif
/* Type of file size variables */
#if FF_FS_EXFAT
typedef QWORD FSIZE_t;
#else
typedef DWORD FSIZE_t;
#endif
/* Filesystem object structure (FATFS) */
typedef struct {
BYTE fs_type; /* Filesystem type (0:N/A) */
BYTE pdrv; /* Physical drive number */
BYTE n_fats; /* Number of FATs (1 or 2) */
BYTE wflag; /* win[] flag (b0:dirty) */
BYTE fsi_flag; /* FSINFO flags (b7:disabled, b0:dirty) */
WORD id; /* Volume mount ID */
WORD n_rootdir; /* Number of root directory entries (FAT12/16) */
WORD csize; /* Cluster size [sectors] */
#if FF_MAX_SS != FF_MIN_SS
WORD ssize; /* Sector size (512, 1024, 2048 or 4096) */
#endif
#if FF_USE_LFN
WCHAR* lfnbuf; /* LFN working buffer */
#endif
#if FF_FS_EXFAT
BYTE* dirbuf; /* Directory entry block scratchpad buffer for exFAT */
#endif
#if FF_FS_REENTRANT
FF_SYNC_t sobj; /* Identifier of sync object */
#endif
#if !FF_FS_READONLY
DWORD last_clst; /* Last allocated cluster */
DWORD free_clst; /* Number of free clusters */
#endif
#if FF_FS_RPATH
DWORD cdir; /* Current directory start cluster (0:root) */
#if FF_FS_EXFAT
DWORD cdc_scl; /* Containing directory start cluster (invalid when cdir is 0) */
DWORD cdc_size; /* b31-b8:Size of containing directory, b7-b0: Chain status */
DWORD cdc_ofs; /* Offset in the containing directory (invalid when cdir is 0) */
#endif
#endif
DWORD n_fatent; /* Number of FAT entries (number of clusters + 2) */
DWORD fsize; /* Size of an FAT [sectors] */
DWORD volbase; /* Volume base sector */
DWORD fatbase; /* FAT base sector */
DWORD dirbase; /* Root directory base sector/cluster */
DWORD database; /* Data base sector */
DWORD winsect; /* Current sector appearing in the win[] */
BYTE win[FF_MAX_SS]; /* Disk access window for Directory, FAT (and file data at tiny cfg) */
} FATFS;
/* Object ID and allocation information (FFOBJID) */
typedef struct {
FATFS* fs; /* Pointer to the hosting volume of this object */
WORD id; /* Hosting volume mount ID */
BYTE attr; /* Object attribute */
BYTE stat; /* Object chain status (b1-0: =0:not contiguous, =2:contiguous, =3:flagmented in this session, b2:sub-directory stretched) */
DWORD sclust; /* Object data start cluster (0:no cluster or root directory) */
FSIZE_t objsize; /* Object size (valid when sclust != 0) */
#if FF_FS_EXFAT
DWORD n_cont; /* Size of first fragment - 1 (valid when stat == 3) */
DWORD n_frag; /* Size of last fragment needs to be written to FAT (valid when not zero) */
DWORD c_scl; /* Containing directory start cluster (valid when sclust != 0) */
DWORD c_size; /* b31-b8:Size of containing directory, b7-b0: Chain status (valid when c_scl != 0) */
DWORD c_ofs; /* Offset in the containing directory (valid when file object and sclust != 0) */
#endif
#if FF_FS_LOCK
UINT lockid; /* File lock ID origin from 1 (index of file semaphore table Files[]) */
#endif
} FFOBJID;
/* File object structure (FIL) */
typedef struct {
FFOBJID obj; /* Object identifier (must be the 1st member to detect invalid object pointer) */
BYTE flag; /* File status flags */
BYTE err; /* Abort flag (error code) */
FSIZE_t fptr; /* File read/write pointer (Zeroed on file open) */
DWORD clust; /* Current cluster of fpter (invalid when fptr is 0) */
DWORD sect; /* Sector number appearing in buf[] (0:invalid) */
#if !FF_FS_READONLY
DWORD dir_sect; /* Sector number containing the directory entry (not used at exFAT) */
BYTE* dir_ptr; /* Pointer to the directory entry in the win[] (not used at exFAT) */
#endif
#if FF_USE_FASTSEEK
DWORD* cltbl; /* Pointer to the cluster link map table (nulled on open, set by application) */
#endif
#if !FF_FS_TINY
BYTE buf[FF_MAX_SS]; /* File private data read/write window */
#endif
} FIL;
/* Directory object structure (DIR) */
typedef struct {
FFOBJID obj; /* Object identifier */
DWORD dptr; /* Current read/write offset */
DWORD clust; /* Current cluster */
DWORD sect; /* Current sector (0:Read operation has terminated) */
BYTE* dir; /* Pointer to the directory item in the win[] */
BYTE fn[12]; /* SFN (in/out) {body[8],ext[3],status[1]} */
#if FF_USE_LFN
DWORD blk_ofs; /* Offset of current entry block being processed (0xFFFFFFFF:Invalid) */
#endif
#if FF_USE_FIND
const TCHAR* pat; /* Pointer to the name matching pattern */
#endif
} DIR;
/* File information structure (FILINFO) */
typedef struct {
FSIZE_t fsize; /* File size */
WORD fdate; /* Modified date */
WORD ftime; /* Modified time */
BYTE fattrib; /* File attribute */
#if FF_USE_LFN
TCHAR altname[FF_SFN_BUF + 1];/* Altenative file name */
TCHAR fname[FF_LFN_BUF + 1]; /* Primary file name */
#else
TCHAR fname[12 + 1]; /* File name */
#endif
} FILINFO;
/* File function return code (FRESULT) */
typedef enum {
FR_OK = 0, /* (0) Succeeded */
FR_DISK_ERR, /* (1) A hard error occurred in the low level disk I/O layer */
FR_INT_ERR, /* (2) Assertion failed */
FR_NOT_READY, /* (3) The physical drive cannot work */
FR_NO_FILE, /* (4) Could not find the file */
FR_NO_PATH, /* (5) Could not find the path */
FR_INVALID_NAME, /* (6) The path name format is invalid */
FR_DENIED, /* (7) Access denied due to prohibited access or directory full */
FR_EXIST, /* (8) Access denied due to prohibited access */
FR_INVALID_OBJECT, /* (9) The file/directory object is invalid */
FR_WRITE_PROTECTED, /* (10) The physical drive is write protected */
FR_INVALID_DRIVE, /* (11) The logical drive number is invalid */
FR_NOT_ENABLED, /* (12) The volume has no work area */
FR_NO_FILESYSTEM, /* (13) There is no valid FAT volume */
FR_MKFS_ABORTED, /* (14) The f_mkfs() aborted due to any problem */
FR_TIMEOUT, /* (15) Could not get a grant to access the volume within defined period */
FR_LOCKED, /* (16) The operation is rejected according to the file sharing policy */
FR_NOT_ENOUGH_CORE, /* (17) LFN working buffer could not be allocated */
FR_TOO_MANY_OPEN_FILES, /* (18) Number of open files > FF_FS_LOCK */
FR_INVALID_PARAMETER /* (19) Given parameter is invalid */
} FRESULT;
/*--------------------------------------------------------------*/
/* FatFs module application interface */
FRESULT f_open (FIL* fp, const TCHAR* path, BYTE mode); /* Open or create a file */
FRESULT f_close (FIL* fp); /* Close an open file object */
FRESULT f_read (FIL* fp, void* buff, UINT btr, UINT* br); /* Read data from the file */
FRESULT f_write (FIL* fp, const void* buff, UINT btw, UINT* bw); /* Write data to the file */
FRESULT f_lseek (FIL* fp, FSIZE_t ofs); /* Move file pointer of the file object */
FRESULT f_truncate (FIL* fp); /* Truncate the file */
FRESULT f_sync (FIL* fp); /* Flush cached data of the writing file */
FRESULT f_opendir (DIR* dp, const TCHAR* path); /* Open a directory */
FRESULT f_closedir (DIR* dp); /* Close an open directory */
FRESULT f_readdir (DIR* dp, FILINFO* fno); /* Read a directory item */
FRESULT f_findfirst (DIR* dp, FILINFO* fno, const TCHAR* path, const TCHAR* pattern); /* Find first file */
FRESULT f_findnext (DIR* dp, FILINFO* fno); /* Find next file */
FRESULT f_mkdir (const TCHAR* path); /* Create a sub directory */
FRESULT f_unlink (const TCHAR* path); /* Delete an existing file or directory */
FRESULT f_rename (const TCHAR* path_old, const TCHAR* path_new); /* Rename/Move a file or directory */
FRESULT f_stat (const TCHAR* path, FILINFO* fno); /* Get file status */
FRESULT f_chmod (const TCHAR* path, BYTE attr, BYTE mask); /* Change attribute of a file/dir */
FRESULT f_utime (const TCHAR* path, const FILINFO* fno); /* Change timestamp of a file/dir */
FRESULT f_chdir (const TCHAR* path); /* Change current directory */
FRESULT f_chdrive (const TCHAR* path); /* Change current drive */
FRESULT f_getcwd (TCHAR* buff, UINT len); /* Get current directory */
FRESULT f_getfree (const TCHAR* path, DWORD* nclst, FATFS** fatfs); /* Get number of free clusters on the drive */
FRESULT f_getlabel (const TCHAR* path, TCHAR* label, DWORD* vsn); /* Get volume label */
FRESULT f_setlabel (const TCHAR* label); /* Set volume label */
FRESULT f_forward (FIL* fp, UINT(*func)(const BYTE*,UINT), UINT btf, UINT* bf); /* Forward data to the stream */
FRESULT f_expand (FIL* fp, FSIZE_t szf, BYTE opt); /* Allocate a contiguous block to the file */
FRESULT f_mount (FATFS* fs, const TCHAR* path, BYTE opt); /* Mount/Unmount a logical drive */
FRESULT f_mkfs (const TCHAR* path, BYTE opt, DWORD au, void* work, UINT len); /* Create a FAT volume */
FRESULT f_fdisk (BYTE pdrv, const DWORD* szt, void* work); /* Divide a physical drive into some partitions */
FRESULT f_setcp (WORD cp); /* Set current code page */
int f_putc (TCHAR c, FIL* fp); /* Put a character to the file */
int f_puts (const TCHAR* str, FIL* cp); /* Put a string to the file */
int f_printf (FIL* fp, const TCHAR* str, ...); /* Put a formatted string to the file */
TCHAR* f_gets (TCHAR* buff, int len, FIL* fp); /* Get a string from the file */
#define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize))
#define f_error(fp) ((fp)->err)
#define f_tell(fp) ((fp)->fptr)
#define f_size(fp) ((fp)->obj.objsize)
#define f_rewind(fp) f_lseek((fp), 0)
#define f_rewinddir(dp) f_readdir((dp), 0)
#define f_rmdir(path) f_unlink(path)
#define f_unmount(path) f_mount(0, path, 0)
#ifndef EOF
#define EOF (-1)
#endif
/*--------------------------------------------------------------*/
/* Additional user defined functions */
/* RTC function */
#if !FF_FS_READONLY && !FF_FS_NORTC
DWORD get_fattime (void);
#endif
/* LFN support functions */
#if FF_USE_LFN >= 1 /* Code conversion (defined in unicode.c) */
WCHAR ff_oem2uni (WCHAR oem, WORD cp); /* OEM code to Unicode conversion */
WCHAR ff_uni2oem (DWORD uni, WORD cp); /* Unicode to OEM code conversion */
DWORD ff_wtoupper (DWORD uni); /* Unicode upper-case conversion */
#endif
#if FF_USE_LFN == 3 /* Dynamic memory allocation */
void* ff_memalloc (UINT msize); /* Allocate memory block */
void ff_memfree (void* mblock); /* Free memory block */
#endif
/* Sync functions */
#if FF_FS_REENTRANT
int ff_cre_syncobj (BYTE vol, FF_SYNC_t* sobj); /* Create a sync object */
int ff_req_grant (FF_SYNC_t sobj); /* Lock sync object */
void ff_rel_grant (FF_SYNC_t sobj); /* Unlock sync object */
int ff_del_syncobj (FF_SYNC_t sobj); /* Delete a sync object */
#endif
/*--------------------------------------------------------------*/
/* Flags and offset address */
/* File access mode and open method flags (3rd argument of f_open) */
#define FA_READ 0x01
#define FA_WRITE 0x02
#define FA_OPEN_EXISTING 0x00
#define FA_CREATE_NEW 0x04
#define FA_CREATE_ALWAYS 0x08
#define FA_OPEN_ALWAYS 0x10
#define FA_OPEN_APPEND 0x30
/* Fast seek controls (2nd argument of f_lseek) */
#define CREATE_LINKMAP ((FSIZE_t)0 - 1)
/* Format options (2nd argument of f_mkfs) */
#define FM_FAT 0x01
#define FM_FAT32 0x02
#define FM_EXFAT 0x04
#define FM_ANY 0x07
#define FM_SFD 0x08
/* Filesystem type (FATFS.fs_type) */
#define FS_FAT12 1
#define FS_FAT16 2
#define FS_FAT32 3
#define FS_EXFAT 4
/* File attribute bits for directory entry (FILINFO.fattrib) */
#define AM_RDO 0x01 /* Read only */
#define AM_HID 0x02 /* Hidden */
#define AM_SYS 0x04 /* System */
#define AM_DIR 0x10 /* Directory */
#define AM_ARC 0x20 /* Archive */
#ifdef __cplusplus
}
#endif
#endif /* FF_DEFINED */

289
source/ff13b/ffconf.h Normal file
View File

@ -0,0 +1,289 @@
/*---------------------------------------------------------------------------/
/ FatFs - Configuration file
/---------------------------------------------------------------------------*/
#define FFCONF_DEF 63463 /* Revision ID */
/*---------------------------------------------------------------------------/
/ Function Configurations
/---------------------------------------------------------------------------*/
#define FF_FS_READONLY 0
/* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
/ Read-only configuration removes writing API functions, f_write(), f_sync(),
/ f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree()
/ and optional writing functions as well. */
#define FF_FS_MINIMIZE 0
/* This option defines minimization level to remove some basic API functions.
/
/ 0: Basic functions are fully enabled.
/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename()
/ are removed.
/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1.
/ 3: f_lseek() function is removed in addition to 2. */
#define FF_USE_STRFUNC 1
/* This option switches string functions, f_gets(), f_putc(), f_puts() and f_printf().
/
/ 0: Disable string functions.
/ 1: Enable without LF-CRLF conversion.
/ 2: Enable with LF-CRLF conversion. */
#define FF_USE_FIND 2
/* This option switches filtered directory read functions, f_findfirst() and
/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */
#define FF_USE_MKFS 1
/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
#define FF_USE_FASTSEEK 1
/* This option switches fast seek function. (0:Disable or 1:Enable) */
#define FF_USE_EXPAND 1
/* This option switches f_expand function. (0:Disable or 1:Enable) */
#define FF_USE_CHMOD 1
/* This option switches attribute manipulation functions, f_chmod() and f_utime().
/ (0:Disable or 1:Enable) Also FF_FS_READONLY needs to be 0 to enable this option. */
#define FF_USE_LABEL 0
/* This option switches volume label functions, f_getlabel() and f_setlabel().
/ (0:Disable or 1:Enable) */
#define FF_USE_FORWARD 1
/* This option switches f_forward() function. (0:Disable or 1:Enable) */
/*---------------------------------------------------------------------------/
/ Locale and Namespace Configurations
/---------------------------------------------------------------------------*/
#define FF_CODE_PAGE 936
/* This option specifies the OEM code page to be used on the target system.
/ Incorrect code page setting can cause a file open failure.
/
/ 437 - U.S.
/ 720 - Arabic
/ 737 - Greek
/ 771 - KBL
/ 775 - Baltic
/ 850 - Latin 1
/ 852 - Latin 2
/ 855 - Cyrillic
/ 857 - Turkish
/ 860 - Portuguese
/ 861 - Icelandic
/ 862 - Hebrew
/ 863 - Canadian French
/ 864 - Arabic
/ 865 - Nordic
/ 866 - Russian
/ 869 - Greek 2
/ 932 - Japanese (DBCS)
/ 936 - Simplified Chinese (DBCS)
/ 949 - Korean (DBCS)
/ 950 - Traditional Chinese (DBCS)
/ 0 - Include all code pages above and configured by f_setcp()
*/
#define FF_USE_LFN 1
#define FF_MAX_LFN 255
/* The FF_USE_LFN switches the support for LFN (long file name).
/
/ 0: Disable LFN. FF_MAX_LFN has no effect.
/ 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe.
/ 2: Enable LFN with dynamic working buffer on the STACK.
/ 3: Enable LFN with dynamic working buffer on the HEAP.
/
/ To enable the LFN, ffunicode.c needs to be added to the project. The LFN function
/ requiers certain internal working buffer occupies (FF_MAX_LFN + 1) * 2 bytes and
/ additional (FF_MAX_LFN + 44) / 15 * 32 bytes when exFAT is enabled.
/ The FF_MAX_LFN defines size of the working buffer in UTF-16 code unit and it can
/ be in range of 12 to 255. It is recommended to be set 255 to fully support LFN
/ specification.
/ When use stack for the working buffer, take care on stack overflow. When use heap
/ memory for the working buffer, memory management functions, ff_memalloc() and
/ ff_memfree() in ffsystem.c, need to be added to the project. */
#define FF_LFN_UNICODE 0
/* This option switches the character encoding on the API when LFN is enabled.
/
/ 0: ANSI/OEM in current CP (TCHAR = char)
/ 1: Unicode in UTF-16 (TCHAR = WCHAR)
/ 2: Unicode in UTF-8 (TCHAR = char)
/ 3: Unicode in UTF-32 (TCHAR = DWORD)
/
/ Also behavior of string I/O functions will be affected by this option.
/ When LFN is not enabled, this option has no effect. */
#define FF_LFN_BUF 255
#define FF_SFN_BUF 12
/* This set of options defines size of file name members in the FILINFO structure
/ which is used to read out directory items. These values should be suffcient for
/ the file names to read. The maximum possible length of the read file name depends
/ on character encoding. When LFN is not enabled, these options have no effect. */
#define FF_STRF_ENCODE 3
/* When FF_LFN_UNICODE >= 1 with LFN enabled, string I/O functions, f_gets(),
/ f_putc(), f_puts and f_printf() convert the character encoding in it.
/ This option selects assumption of character encoding ON THE FILE to be
/ read/written via those functions.
/
/ 0: ANSI/OEM in current CP
/ 1: Unicode in UTF-16LE
/ 2: Unicode in UTF-16BE
/ 3: Unicode in UTF-8
*/
#define FF_FS_RPATH 2
/* This option configures support for relative path.
/
/ 0: Disable relative path and remove related functions.
/ 1: Enable relative path. f_chdir() and f_chdrive() are available.
/ 2: f_getcwd() function is available in addition to 1.
*/
/*---------------------------------------------------------------------------/
/ Drive/Volume Configurations
/---------------------------------------------------------------------------*/
#define FF_VOLUMES 1
/* Number of volumes (logical drives) to be used. (1-10) */
#define FF_STR_VOLUME_ID 0
#define FF_VOLUME_STRS "RAM","NAND","CF","SD","SD2","USB","USB2","USB3"
/* FF_STR_VOLUME_ID switches support for volume ID in arbitrary strings.
/ When FF_STR_VOLUME_ID is set to 1 or 2, arbitrary strings can be used as drive
/ number in the path name. FF_VOLUME_STRS defines the volume ID strings for each
/ logical drives. Number of items must not be less than FF_VOLUMES. Valid
/ characters for the volume ID strings are A-Z, a-z and 0-9, however, they are
/ compared in case-insensitive. If FF_STR_VOLUME_ID >= 1 and FF_VOLUME_STRS is
/ not defined, a user defined volume string table needs to be defined as:
/
/ const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",...
*/
#define FF_MULTI_PARTITION 0
/* This option switches support for multiple volumes on the physical drive.
/ By default (0), each logical drive number is bound to the same physical drive
/ number and only an FAT volume found on the physical drive will be mounted.
/ When this function is enabled (1), each logical drive number can be bound to
/ arbitrary physical drive and partition listed in the VolToPart[]. Also f_fdisk()
/ funciton will be available. */
#define FF_MIN_SS 512
#define FF_MAX_SS 512
/* This set of options configures the range of sector size to be supported. (512,
/ 1024, 2048 or 4096) Always set both 512 for most systems, generic memory card and
/ harddisk. But a larger value may be required for on-board flash memory and some
/ type of optical media. When FF_MAX_SS is larger than FF_MIN_SS, FatFs is configured
/ for variable sector size mode and disk_ioctl() function needs to implement
/ GET_SECTOR_SIZE command. */
#define FF_USE_TRIM 0
/* This option switches support for ATA-TRIM. (0:Disable or 1:Enable)
/ To enable Trim function, also CTRL_TRIM command should be implemented to the
/ disk_ioctl() function. */
#define FF_FS_NOFSINFO 0
/* If you need to know correct free space on the FAT32 volume, set bit 0 of this
/ option, and f_getfree() function at first time after volume mount will force
/ a full FAT scan. Bit 1 controls the use of last allocated cluster number.
/
/ bit0=0: Use free cluster count in the FSINFO if available.
/ bit0=1: Do not trust free cluster count in the FSINFO.
/ bit1=0: Use last allocated cluster number in the FSINFO if available.
/ bit1=1: Do not trust last allocated cluster number in the FSINFO.
*/
/*---------------------------------------------------------------------------/
/ System Configurations
/---------------------------------------------------------------------------*/
#define FF_FS_TINY 0
/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny)
/ At the tiny configuration, size of file object (FIL) is shrinked FF_MAX_SS bytes.
/ Instead of private sector buffer eliminated from the file object, common sector
/ buffer in the filesystem object (FATFS) is used for the file data transfer. */
#define FF_FS_EXFAT 1
/* This option switches support for exFAT filesystem. (0:Disable or 1:Enable)
/ To enable exFAT, also LFN needs to be enabled.
/ Note that enabling exFAT discards ANSI C (C89) compatibility. */
#define FF_FS_NORTC 0
#define FF_NORTC_MON 1
#define FF_NORTC_MDAY 1
#define FF_NORTC_YEAR 2018
/* The option FF_FS_NORTC switches timestamp functiton. If the system does not have
/ any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable
/ the timestamp function. Every object modified by FatFs will have a fixed timestamp
/ defined by FF_NORTC_MON, FF_NORTC_MDAY and FF_NORTC_YEAR in local time.
/ To enable timestamp function (FF_FS_NORTC = 0), get_fattime() function need to be
/ added to the project to read current time form real-time clock. FF_NORTC_MON,
/ FF_NORTC_MDAY and FF_NORTC_YEAR have no effect.
/ These options have no effect at read-only configuration (FF_FS_READONLY = 1). */
#define FF_FS_LOCK 0
/* The option FF_FS_LOCK switches file lock function to control duplicated file open
/ and illegal operation to open objects. This option must be 0 when FF_FS_READONLY
/ is 1.
/
/ 0: Disable file lock function. To avoid volume corruption, application program
/ should avoid illegal open, remove and rename to the open objects.
/ >0: Enable file lock function. The value defines how many files/sub-directories
/ can be opened simultaneously under file lock control. Note that the file
/ lock control is independent of re-entrancy. */
#define FF_FS_REENTRANT 0
#define FF_FS_TIMEOUT 1000
#define FF_SYNC_t HANDLE
/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs
/ module itself. Note that regardless of this option, file access to different
/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
/ and f_fdisk() function, are always not re-entrant. Only file/directory access
/ to the same volume is under control of this function.
/
/ 0: Disable re-entrancy. FF_FS_TIMEOUT and FF_SYNC_t have no effect.
/ 1: Enable re-entrancy. Also user provided synchronization handlers,
/ ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj()
/ function, must be added to the project. Samples are available in
/ option/syscall.c.
/
/ The FF_FS_TIMEOUT defines timeout period in unit of time tick.
/ The FF_SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*,
/ SemaphoreHandle_t and etc. A header file for O/S definitions needs to be
/ included somewhere in the scope of ff.h. */
/* #include <windows.h> // O/S definitions */
/*--- End of configuration options ---*/

289
source/ff13b/ffconf.h.bak Normal file
View File

@ -0,0 +1,289 @@
/*---------------------------------------------------------------------------/
/ FatFs - Configuration file
/---------------------------------------------------------------------------*/
#define FFCONF_DEF 63463 /* Revision ID */
/*---------------------------------------------------------------------------/
/ Function Configurations
/---------------------------------------------------------------------------*/
#define FF_FS_READONLY 0
/* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
/ Read-only configuration removes writing API functions, f_write(), f_sync(),
/ f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree()
/ and optional writing functions as well. */
#define FF_FS_MINIMIZE 0
/* This option defines minimization level to remove some basic API functions.
/
/ 0: Basic functions are fully enabled.
/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename()
/ are removed.
/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1.
/ 3: f_lseek() function is removed in addition to 2. */
#define FF_USE_STRFUNC 1
/* This option switches string functions, f_gets(), f_putc(), f_puts() and f_printf().
/
/ 0: Disable string functions.
/ 1: Enable without LF-CRLF conversion.
/ 2: Enable with LF-CRLF conversion. */
#define FF_USE_FIND 2
/* This option switches filtered directory read functions, f_findfirst() and
/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */
#define FF_USE_MKFS 1
/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
#define FF_USE_FASTSEEK 1
/* This option switches fast seek function. (0:Disable or 1:Enable) */
#define FF_USE_EXPAND 1
/* This option switches f_expand function. (0:Disable or 1:Enable) */
#define FF_USE_CHMOD 1
/* This option switches attribute manipulation functions, f_chmod() and f_utime().
/ (0:Disable or 1:Enable) Also FF_FS_READONLY needs to be 0 to enable this option. */
#define FF_USE_LABEL 0
/* This option switches volume label functions, f_getlabel() and f_setlabel().
/ (0:Disable or 1:Enable) */
#define FF_USE_FORWARD 1
/* This option switches f_forward() function. (0:Disable or 1:Enable) */
/*---------------------------------------------------------------------------/
/ Locale and Namespace Configurations
/---------------------------------------------------------------------------*/
#define FF_CODE_PAGE 936
/* This option specifies the OEM code page to be used on the target system.
/ Incorrect code page setting can cause a file open failure.
/
/ 437 - U.S.
/ 720 - Arabic
/ 737 - Greek
/ 771 - KBL
/ 775 - Baltic
/ 850 - Latin 1
/ 852 - Latin 2
/ 855 - Cyrillic
/ 857 - Turkish
/ 860 - Portuguese
/ 861 - Icelandic
/ 862 - Hebrew
/ 863 - Canadian French
/ 864 - Arabic
/ 865 - Nordic
/ 866 - Russian
/ 869 - Greek 2
/ 932 - Japanese (DBCS)
/ 936 - Simplified Chinese (DBCS)
/ 949 - Korean (DBCS)
/ 950 - Traditional Chinese (DBCS)
/ 0 - Include all code pages above and configured by f_setcp()
*/
#define FF_USE_LFN 1
#define FF_MAX_LFN 255
/* The FF_USE_LFN switches the support for LFN (long file name).
/
/ 0: Disable LFN. FF_MAX_LFN has no effect.
/ 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe.
/ 2: Enable LFN with dynamic working buffer on the STACK.
/ 3: Enable LFN with dynamic working buffer on the HEAP.
/
/ To enable the LFN, ffunicode.c needs to be added to the project. The LFN function
/ requiers certain internal working buffer occupies (FF_MAX_LFN + 1) * 2 bytes and
/ additional (FF_MAX_LFN + 44) / 15 * 32 bytes when exFAT is enabled.
/ The FF_MAX_LFN defines size of the working buffer in UTF-16 code unit and it can
/ be in range of 12 to 255. It is recommended to be set 255 to fully support LFN
/ specification.
/ When use stack for the working buffer, take care on stack overflow. When use heap
/ memory for the working buffer, memory management functions, ff_memalloc() and
/ ff_memfree() in ffsystem.c, need to be added to the project. */
#define FF_LFN_UNICODE 2
/* This option switches the character encoding on the API when LFN is enabled.
/
/ 0: ANSI/OEM in current CP (TCHAR = char)
/ 1: Unicode in UTF-16 (TCHAR = WCHAR)
/ 2: Unicode in UTF-8 (TCHAR = char)
/ 3: Unicode in UTF-32 (TCHAR = DWORD)
/
/ Also behavior of string I/O functions will be affected by this option.
/ When LFN is not enabled, this option has no effect. */
#define FF_LFN_BUF 255
#define FF_SFN_BUF 12
/* This set of options defines size of file name members in the FILINFO structure
/ which is used to read out directory items. These values should be suffcient for
/ the file names to read. The maximum possible length of the read file name depends
/ on character encoding. When LFN is not enabled, these options have no effect. */
#define FF_STRF_ENCODE 3
/* When FF_LFN_UNICODE >= 1 with LFN enabled, string I/O functions, f_gets(),
/ f_putc(), f_puts and f_printf() convert the character encoding in it.
/ This option selects assumption of character encoding ON THE FILE to be
/ read/written via those functions.
/
/ 0: ANSI/OEM in current CP
/ 1: Unicode in UTF-16LE
/ 2: Unicode in UTF-16BE
/ 3: Unicode in UTF-8
*/
#define FF_FS_RPATH 2
/* This option configures support for relative path.
/
/ 0: Disable relative path and remove related functions.
/ 1: Enable relative path. f_chdir() and f_chdrive() are available.
/ 2: f_getcwd() function is available in addition to 1.
*/
/*---------------------------------------------------------------------------/
/ Drive/Volume Configurations
/---------------------------------------------------------------------------*/
#define FF_VOLUMES 1
/* Number of volumes (logical drives) to be used. (1-10) */
#define FF_STR_VOLUME_ID 0
#define FF_VOLUME_STRS "RAM","NAND","CF","SD","SD2","USB","USB2","USB3"
/* FF_STR_VOLUME_ID switches support for volume ID in arbitrary strings.
/ When FF_STR_VOLUME_ID is set to 1 or 2, arbitrary strings can be used as drive
/ number in the path name. FF_VOLUME_STRS defines the volume ID strings for each
/ logical drives. Number of items must not be less than FF_VOLUMES. Valid
/ characters for the volume ID strings are A-Z, a-z and 0-9, however, they are
/ compared in case-insensitive. If FF_STR_VOLUME_ID >= 1 and FF_VOLUME_STRS is
/ not defined, a user defined volume string table needs to be defined as:
/
/ const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",...
*/
#define FF_MULTI_PARTITION 0
/* This option switches support for multiple volumes on the physical drive.
/ By default (0), each logical drive number is bound to the same physical drive
/ number and only an FAT volume found on the physical drive will be mounted.
/ When this function is enabled (1), each logical drive number can be bound to
/ arbitrary physical drive and partition listed in the VolToPart[]. Also f_fdisk()
/ funciton will be available. */
#define FF_MIN_SS 512
#define FF_MAX_SS 512
/* This set of options configures the range of sector size to be supported. (512,
/ 1024, 2048 or 4096) Always set both 512 for most systems, generic memory card and
/ harddisk. But a larger value may be required for on-board flash memory and some
/ type of optical media. When FF_MAX_SS is larger than FF_MIN_SS, FatFs is configured
/ for variable sector size mode and disk_ioctl() function needs to implement
/ GET_SECTOR_SIZE command. */
#define FF_USE_TRIM 0
/* This option switches support for ATA-TRIM. (0:Disable or 1:Enable)
/ To enable Trim function, also CTRL_TRIM command should be implemented to the
/ disk_ioctl() function. */
#define FF_FS_NOFSINFO 0
/* If you need to know correct free space on the FAT32 volume, set bit 0 of this
/ option, and f_getfree() function at first time after volume mount will force
/ a full FAT scan. Bit 1 controls the use of last allocated cluster number.
/
/ bit0=0: Use free cluster count in the FSINFO if available.
/ bit0=1: Do not trust free cluster count in the FSINFO.
/ bit1=0: Use last allocated cluster number in the FSINFO if available.
/ bit1=1: Do not trust last allocated cluster number in the FSINFO.
*/
/*---------------------------------------------------------------------------/
/ System Configurations
/---------------------------------------------------------------------------*/
#define FF_FS_TINY 0
/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny)
/ At the tiny configuration, size of file object (FIL) is shrinked FF_MAX_SS bytes.
/ Instead of private sector buffer eliminated from the file object, common sector
/ buffer in the filesystem object (FATFS) is used for the file data transfer. */
#define FF_FS_EXFAT 1
/* This option switches support for exFAT filesystem. (0:Disable or 1:Enable)
/ To enable exFAT, also LFN needs to be enabled.
/ Note that enabling exFAT discards ANSI C (C89) compatibility. */
#define FF_FS_NORTC 0
#define FF_NORTC_MON 1
#define FF_NORTC_MDAY 1
#define FF_NORTC_YEAR 2018
/* The option FF_FS_NORTC switches timestamp functiton. If the system does not have
/ any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable
/ the timestamp function. Every object modified by FatFs will have a fixed timestamp
/ defined by FF_NORTC_MON, FF_NORTC_MDAY and FF_NORTC_YEAR in local time.
/ To enable timestamp function (FF_FS_NORTC = 0), get_fattime() function need to be
/ added to the project to read current time form real-time clock. FF_NORTC_MON,
/ FF_NORTC_MDAY and FF_NORTC_YEAR have no effect.
/ These options have no effect at read-only configuration (FF_FS_READONLY = 1). */
#define FF_FS_LOCK 0
/* The option FF_FS_LOCK switches file lock function to control duplicated file open
/ and illegal operation to open objects. This option must be 0 when FF_FS_READONLY
/ is 1.
/
/ 0: Disable file lock function. To avoid volume corruption, application program
/ should avoid illegal open, remove and rename to the open objects.
/ >0: Enable file lock function. The value defines how many files/sub-directories
/ can be opened simultaneously under file lock control. Note that the file
/ lock control is independent of re-entrancy. */
#define FF_FS_REENTRANT 0
#define FF_FS_TIMEOUT 1000
#define FF_SYNC_t HANDLE
/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs
/ module itself. Note that regardless of this option, file access to different
/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
/ and f_fdisk() function, are always not re-entrant. Only file/directory access
/ to the same volume is under control of this function.
/
/ 0: Disable re-entrancy. FF_FS_TIMEOUT and FF_SYNC_t have no effect.
/ 1: Enable re-entrancy. Also user provided synchronization handlers,
/ ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj()
/ function, must be added to the project. Samples are available in
/ option/syscall.c.
/
/ The FF_FS_TIMEOUT defines timeout period in unit of time tick.
/ The FF_SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*,
/ SemaphoreHandle_t and etc. A header file for O/S definitions needs to be
/ included somewhere in the scope of ff.h. */
/* #include <windows.h> // O/S definitions */
/*--- End of configuration options ---*/

171
source/ff13b/ffsystem.c Normal file
View File

@ -0,0 +1,171 @@
/*------------------------------------------------------------------------*/
/* Sample Code of OS Dependent Functions for FatFs */
/* (C)ChaN, 2017 */
/*------------------------------------------------------------------------*/
#include "ff.h"
#if FF_USE_LFN == 3 /* Dynamic memory allocation */
/*------------------------------------------------------------------------*/
/* Allocate a memory block */
/*------------------------------------------------------------------------*/
void* ff_memalloc ( /* Returns pointer to the allocated memory block (null on not enough core) */
UINT msize /* Number of bytes to allocate */
)
{
return malloc(msize); /* Allocate a new memory block with POSIX API */
}
/*------------------------------------------------------------------------*/
/* Free a memory block */
/*------------------------------------------------------------------------*/
void ff_memfree (
void* mblock /* Pointer to the memory block to free (nothing to do for null) */
)
{
free(mblock); /* Free the memory block with POSIX API */
}
#endif
#if FF_FS_REENTRANT /* Mutal exclusion */
/*------------------------------------------------------------------------*/
/* Create a Synchronization Object */
/*------------------------------------------------------------------------*/
/* This function is called in f_mount() function to create a new
/ synchronization object for the volume, such as semaphore and mutex.
/ When a 0 is returned, the f_mount() function fails with FR_INT_ERR.
*/
//const osMutexDef_t Mutex[FF_VOLUMES]; /* CMSIS-RTOS */
int ff_cre_syncobj ( /* 1:Function succeeded, 0:Could not create the sync object */
BYTE vol, /* Corresponding volume (logical drive number) */
FF_SYNC_t* sobj /* Pointer to return the created sync object */
)
{
/* Win32 */
*sobj = CreateMutex(NULL, FALSE, NULL);
return (int)(*sobj != INVALID_HANDLE_VALUE);
/* uITRON */
// T_CSEM csem = {TA_TPRI,1,1};
// *sobj = acre_sem(&csem);
// return (int)(*sobj > 0);
/* uC/OS-II */
// OS_ERR err;
// *sobj = OSMutexCreate(0, &err);
// return (int)(err == OS_NO_ERR);
/* FreeRTOS */
// *sobj = xSemaphoreCreateMutex();
// return (int)(*sobj != NULL);
/* CMSIS-RTOS */
// *sobj = osMutexCreate(Mutex + vol);
// return (int)(*sobj != NULL);
}
/*------------------------------------------------------------------------*/
/* Delete a Synchronization Object */
/*------------------------------------------------------------------------*/
/* This function is called in f_mount() function to delete a synchronization
/ object that created with ff_cre_syncobj() function. When a 0 is returned,
/ the f_mount() function fails with FR_INT_ERR.
*/
int ff_del_syncobj ( /* 1:Function succeeded, 0:Could not delete due to an error */
FF_SYNC_t sobj /* Sync object tied to the logical drive to be deleted */
)
{
/* Win32 */
return (int)CloseHandle(sobj);
/* uITRON */
// return (int)(del_sem(sobj) == E_OK);
/* uC/OS-II */
// OS_ERR err;
// OSMutexDel(sobj, OS_DEL_ALWAYS, &err);
// return (int)(err == OS_NO_ERR);
/* FreeRTOS */
// vSemaphoreDelete(sobj);
// return 1;
/* CMSIS-RTOS */
// return (int)(osMutexDelete(sobj) == osOK);
}
/*------------------------------------------------------------------------*/
/* Request Grant to Access the Volume */
/*------------------------------------------------------------------------*/
/* This function is called on entering file functions to lock the volume.
/ When a 0 is returned, the file function fails with FR_TIMEOUT.
*/
int ff_req_grant ( /* 1:Got a grant to access the volume, 0:Could not get a grant */
FF_SYNC_t sobj /* Sync object to wait */
)
{
/* Win32 */
return (int)(WaitForSingleObject(sobj, FF_FS_TIMEOUT) == WAIT_OBJECT_0);
/* uITRON */
// return (int)(wai_sem(sobj) == E_OK);
/* uC/OS-II */
// OS_ERR err;
// OSMutexPend(sobj, FF_FS_TIMEOUT, &err));
// return (int)(err == OS_NO_ERR);
/* FreeRTOS */
// return (int)(xSemaphoreTake(sobj, FF_FS_TIMEOUT) == pdTRUE);
/* CMSIS-RTOS */
// return (int)(osMutexWait(sobj, FF_FS_TIMEOUT) == osOK);
}
/*------------------------------------------------------------------------*/
/* Release Grant to Access the Volume */
/*------------------------------------------------------------------------*/
/* This function is called on leaving file functions to unlock the volume.
*/
void ff_rel_grant (
FF_SYNC_t sobj /* Sync object to be signaled */
)
{
/* Win32 */
ReleaseMutex(sobj);
/* uITRON */
// sig_sem(sobj);
/* uC/OS-II */
// OSMutexPost(sobj);
/* FreeRTOS */
// xSemaphoreGive(sobj);
/* CMSIS-RTOS */
// osMutexRelease(sobj);
}
#endif

15597
source/ff13b/ffunicode.c Normal file

File diff suppressed because it is too large Load Diff

36
source/ff13b/integer.h Normal file
View File

@ -0,0 +1,36 @@
/*-------------------------------------------*/
/* Integer type definitions for FatFs module */
/*-------------------------------------------*/
#ifndef FF_INTEGER
#define FF_INTEGER
#ifdef _WIN32 /* FatFs development platform */
#include <windows.h>
typedef unsigned __int64 QWORD;
#else /* Embedded platform */
/* These types MUST be 16-bit or 32-bit */
typedef int INT;
typedef unsigned int UINT;
/* This type MUST be 8-bit */
typedef unsigned char BYTE;
/* These types MUST be 16-bit */
typedef short SHORT;
typedef unsigned short WORD;
typedef unsigned short WCHAR;
/* These types MUST be 32-bit */
typedef long LONG;
typedef unsigned long DWORD;
/* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
typedef unsigned long long QWORD;
#endif
#endif

38
source/gba_nes_patch.h Normal file
View File

@ -0,0 +1,38 @@
/*
C-file generated by Bin2C
Compiled: Aug 9 2004 at 15:18:55
Copyright (C) 2004
Segger Microcontroller Systeme GmbH
www.segger.com
Solutions for real time microcontroller applications
*/
unsigned char gba_nes_patch_bin[] = {
0x38, 0x00, 0x9F, 0xE5, 0x00, 0x00, 0x11, 0xEF, 0x1C, 0x03, 0x9F, 0xE5, 0x1C, 0x13, 0x9F, 0xE5, 0x00, 0x10, 0x80, 0xE5, 0x0C, 0x00, 0x2D, 0xE9, 0x14, 0x03, 0x9F, 0xE5, 0x20, 0x10, 0x8F, 0xE2, 0x50, 0x20, 0x8F, 0xE2, 0x04, 0x30, 0x91, 0xE4,
0x04, 0x30, 0x80, 0xE4, 0x02, 0x00, 0x51, 0xE1, 0xFB, 0xFF, 0xFF, 0x1A, 0x0C, 0x00, 0xBD, 0xE8, 0x01, 0x80, 0xBD, 0xE8, 0x11, 0xFF, 0x2F, 0xE1, 0x61, 0x61, 0x61, 0x61, 0x1F, 0x00, 0x2D, 0xE9, 0x1C, 0x00, 0x9F, 0xE5, 0x1C, 0x10, 0x9F, 0xE5,
0x1C, 0x20, 0x9F, 0xE5, 0x04, 0x30, 0x91, 0xE4, 0x04, 0x30, 0x80, 0xE4, 0x02, 0x00, 0x51, 0xE1, 0xFB, 0xFF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x8F, 0xE2, 0xA0, 0x20, 0x8F, 0xE2, 0x04, 0x30, 0x91, 0xE4, 0x04, 0x30, 0x80, 0xE4, 0x02, 0x00, 0x51, 0xE1, 0xFB, 0xFF, 0xFF, 0x1A, 0x34, 0x22, 0x1F, 0xE5, 0x10, 0x20, 0x82, 0xE2, 0x12, 0xFF, 0x2F, 0xE1, 0x34, 0x70, 0x74, 0x70,
0x30, 0x78, 0x00, 0x28, 0x13, 0xD1, 0x70, 0x78, 0x00, 0x28, 0x10, 0xD1, 0x70, 0xB5, 0xA2, 0xB0, 0x0D, 0x1C, 0x00, 0x04, 0x03, 0x0C, 0x03, 0x48, 0x00, 0x68, 0x80, 0x88, 0xF0, 0xB5, 0xAC, 0xB0, 0x0D, 0x1C, 0x00, 0x04, 0x01, 0x0C, 0x12, 0x06,
0x17, 0x0E, 0x03, 0x48, 0xC0, 0x00, 0x0E, 0x22, 0x12, 0x06, 0x80, 0x18, 0x02, 0x78, 0x0A,
0x70, 0x42, 0x78, 0x4A, 0x70, 0x82, 0x78, 0x8A, 0x70, 0xC2, 0x78, 0xCA, 0x70, 0x02, 0x79, 0x0A,
0x71, 0x42, 0x79, 0x4A, 0x71, 0x82, 0x79, 0x8A, 0x71, 0xC2, 0x79, 0xCA, 0x71, 0x00, 0x20, 0x70, 0x47, 0xC0, 0x00, 0x0E, 0x22, 0x12, 0x06, 0x80, 0x18, 0x0A,
0x78, 0x02, 0x70, 0x4A, 0x78, 0x42, 0x70, 0x8A, 0x78, 0x82, 0x70, 0xCA, 0x78, 0xC2, 0x70, 0x0A,
0x79, 0x02, 0x71, 0x4A, 0x79, 0x42, 0x71, 0x8A, 0x79, 0x82, 0x71, 0xCA, 0x79, 0xC2, 0x71, 0x00, 0x20, 0x70, 0x47, 0xB8, 0x74, 0x00, 0x03, 0x15, 0x00, 0x00, 0xEA, 0x14, 0x75, 0x00, 0x03, 0x00, 0x00, 0x03, 0x02, 0x01, 0x20, 0x00, 0x00
};
/*************************** End of file ****************************/

Binary file not shown.

1149
source/gba_rts_patch.s Normal file

File diff suppressed because it is too large Load Diff

284
source/gba_sleep_patch.s Normal file
View File

@ -0,0 +1,284 @@
@;********************************************************************
@;********************************************************************
@;--------------------------------------------------------------------
@;- Reset -
@;--------------------------------------------------------------------
.section .iwram,"ax",%progbits
.global Sleep_ReplaceIRQ_start
.global Sleep_ReplaceIRQ_end
.global Return_address_L
.global Sleep_key
.global Reset_key
.global Wakeup_key
REG_BASE = 0x4000000
REG_DISPCNT = 0x00
REG_DISPSTAT = 0x04
REG_VCOUNT = 0x06
REG_BG0CNT = 0x08
REG_BG1CNT = 0x0A
REG_BG2CNT = 0x0C
REG_BG3CNT = 0x0E
REG_BG0HOFS = 0x10
REG_BG0VOFS = 0x12
REG_BG1HOFS = 0x14
REG_BG1VOFS = 0x16
REG_BG2HOFS = 0x18
REG_BG2VOFS = 0x1A
REG_BG3HOFS = 0x1C
REG_BG3VOFS = 0x1E
REG_WIN0H = 0x40
REG_WIN1H = 0x42
REG_WIN0V = 0x44
REG_WIN1V = 0x46
REG_WININ = 0x48
REG_WINOUT = 0x4A
REG_BLDCNT = 0x50
REG_BLDALPHA = 0x52
REG_BLDY = 0x54
REG_SOUND1CNT_L = 0x60
REG_SOUND1CNT_H = 0x62
REG_SOUND1CNT_X = 0x64
REG_SOUND2CNT_L = 0x68
REG_SOUND2CNT_H = 0x6C
REG_SOUND3CNT_L = 0x70
REG_SOUND3CNT_H = 0x72
REG_SOUND3CNT_X = 0x74
REG_SOUND4CNT_L = 0x78
REG_SOUND4CNT_H = 0x7c
REG_SOUNDCNT_L = 0x80
REG_SOUND2CNT_H = 0x82
REG_SOUNDCNT_X = 0x84
REG_SOUNDBIAS = 0x88
REG_WAVE_RAM0_L = 0x90
REG_FIFO_A_L = 0xA0
REG_FIFO_A_H = 0xA2
REG_FIFO_B_L = 0xA4
REG_FIFO_B_H = 0xA6
REG_DM0SAD = 0xB0
REG_DM0DAD = 0xB4
REG_DM0CNT_L = 0xB8
REG_DM0CNT_H = 0xBA
REG_DM1SAD = 0xBC
REG_DM1DAD = 0xC0
REG_DM1CNT_L = 0xC4
REG_DM1CNT_H = 0xC6
REG_DM2SAD = 0xC8
REG_DM2DAD = 0xCC
REG_DM2CNT_L = 0xD0
REG_DM2CNT_H = 0xD2
REG_DM3SAD = 0xD4
REG_DM3DAD = 0xD8
REG_DM3CNT_L = 0xDC
REG_DM3CNT_H = 0xDE
REG_TM0D = 0x100
REG_TM0CNT = 0x102
REG_IE = 0x200
REG_IF = 0x202
REG_P1 = 0x130
REG_P1CNT = 0x132
REG_WAITCNT = 0x204
.arm
Sleep_ReplaceIRQ_start:
MOV R0, #0x4000000
ADR R1, my_irq
STR R1, [R0,#-0x4] @; 3FFFFFC = my_irq;
LDR R0, =0x12345678 @;//0x80000C0
BX R0 @; loc_80000C0
.align
Return_address_L:
.ltorg
@;--------------------------------------------------------------
my_irq:
@;r0 = reg_base
@;r1 = REG_IE,REG_IF
@;LDR PC, [R0,#-0xC]
LDR R1, [R0,#0x200]
TST R1, #0x10000
TSTEQ R1, #0x10000000
LDREQ PC, [R0,#-0xC] @;old_interrupt_handler
ldr r2,[r0,#REG_P1]
bic r2,r2,#0xFF000000
bic r2,r2,#0x00FF0000
@;tst r2,#0x0300 @L+R?
@;ldrne pc,[r0,#-(0x04000000-0x03FFFFB4)] @to IRQ routine if not pressed
adr r3,Reset_key @
ldr r3,[r3]
cmp r2,r3
beq reset_now
adr r3,Sleep_key @
ldr r3,[r3]
cmp r2,r3
beq sleep_now
ldr pc,[r0,#-(0x04000000-0x03FFFFF4)] @;to normal IRQ routine
@;--------------------------------------------------------------
reset_now:
adr r1,reset_code
adr r3,reset_end
mov r2,#0x02000000
copy_loop:
ldr r0,[r1],#4
str r0,[r2],#4
cmp r1,r3
blt copy_loop
mov r0,#0x02000000
add r0,r0,#1
bx r0
@;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Sleep_key:
.word 0xF7 @L+R+Start?
Reset_key:
.word 0x1BD @;L up B;
@;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.thumb
reset_code:
mov r0,#0x20
lsl r3,r0,#22 @;#0x8000000 r3
lsl r0,r0,#12 @;#0x0020000
add r4,r3,r0 @;#0x8020000 r4
add r5,r4,r0 @;#0x8040000 r5
lsl r1,r0,#8 @;#0x2000000
add r2,r3,r1 @;#0xa000000
lsr r1,r3,#4 @;#0x0800000
sub r6,r2,r1 @;#0x9800000
lsr r1,r1,#4 @;#0x0080000
add r6,r6,r1 @;#0x9880000 r6
sub r2,r2,r0 @;#0x9fe0000 r2
sub r7,r2,r0 @;#0x9fc0000 r7
mov r0,#210
lsl r0,r0,#8 @;0xd200 r0
mov r1,#21
lsl r1,r1,#8 @;0x1500 r1
strh r0,[r2]
strh r1,[r3]
strh r0,[r4]
strh r1,[r5]
lsr r0,r3,#12 @;#0x0008000 r0
add r0,#2
strh r0,[r6]
strh r1,[r7]
lsl r1,r0,#11 @;#0x4000000
sub r1,r1,#8 @;#0x3FFFFFA
mov r0,#0xfc @;#252 r0
str r0,[r1] @;#0x3FFFFFA (mirror of #0x3007FFA
swi 0x01
swi 0x00
reset_end:
@;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.arm
sleep_now:
stmfd sp!,{r4-r11,lr}
add r1,r0,#REG_SOUND1CNT_L
@;copy and push 32 bytes
ldmia r1!,{r2-r9}
stmfd sp!,{r2-r9}
@;copy and push 32 bytes
ldmia r1!,{r2-r9}
stmfd sp!,{r2-r9}
@;r3 = contents of REG_SOUND3CNT_X
@;save old io values
add r1,r0,#REG_IE
ldrh r4,[r1]
ldr r5,[r0,#REG_P1]
ldrh r6,[r0,#REG_DISPCNT]
@;enable ints on Keypad, Game Pak
ldr r1,=0xFFFF1000
str r1,[r0,#REG_IE]
mov r1,#0xC0000000 @;interrupt on start+sel
@;orr r1,r1,#0x000C0000
adr r2,Wakeup_key
ldr r2,[r2]
MVN R2,R2
lsl r2,r2,#0x10
orr r1,r1,r2
str r1,[r0,#REG_P1]
strh r0,[r0,#REG_SOUNDCNT_X] @;sound off
orr r1,r6,#0x80
strh r1,[r0,#REG_DISPCNT] @;LCD off
swi 0x030000
@;Loop to wait for letting go of Sel+start
loop:
mov r0,#REG_BASE
ldr r1,[r0,#REG_P1]
adr r7,Wakeup_key
ldr r7,[r7]
and r1,r1,r7
@;cmp r1,#0x000C
cmp r1,r7
bne loop
@;spin until VCOUNT==159
spin2:
ldrh r1,[r0,#REG_VCOUNT]
cmp r1,#159
bne spin2
@;spin until VCOUNT==160
spin4:
ldrh r1,[r0,#REG_VCOUNT]
cmp r1,#160
bne spin4
@;spin until VCOUNT==159
spin5:
ldrh r1,[r0,#REG_VCOUNT]
cmp r1,#159
bne spin5
@;spin until VCOUNT==160
spin6:
ldrh r1,[r0,#REG_VCOUNT]
cmp r1,#160
bne spin6
@;spin until VCOUNT==159
spin7:
ldrh r1,[r0,#REG_VCOUNT]
cmp r1,#159
bne spin7
@;restore interrupts
add r1,r0,#REG_IE
strh r4,[r1]
@;restore joystick interrupt
str r5,[r0,#REG_P1]
mov r4,#0x1000 @;clear the damn joystick interrupt
strh r4,[r1,#2]
@;restore screen
strh r6,[r0,#REG_DISPCNT]
ldmfd sp!,{r2-r9}
@;restore sound state
str r3,[r0,#REG_SOUNDCNT_X]
add r1,r0,#0x80
stmia r1!,{r2-r9}
add r1,r0,#0x60
ldmfd sp!,{r2-r9}
stmia r1!,{r2-r9}
ldmfd sp!,{r4-r11,lr}
@;spin until VCOUNT==160, triggers next vblank
spin3:
ldrh r1,[r0,#REG_VCOUNT]
cmp r1,#160
bne spin3 @<insert ytmnd cliche here>
@;all done!
ldr pc,[r0,#-(0x04000000-0x03FFFFF4)] @to IRQ routine
.align
Wakeup_key:
.word 0x3F3 @;start and select
.ltorg
Sleep_ReplaceIRQ_end:
.end

4750
source/goomba.h Normal file

File diff supp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X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7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,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,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7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00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X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,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,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X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0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00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X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0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X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7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0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X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,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,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,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F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,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X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0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X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0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XF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,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,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0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,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XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,};

4802
source/images/HELP.h Normal file

File diff suppressed because it is too large Load Diff

1762
source/images/MENU.h Normal file

File diff suppressed because it is too large Load Diff

4802
source/images/NOR.h Normal file

File diff suppressed because it is too large Load Diff

1202
source/images/NOTFOUND.h Normal file

File diff suppressed because it is too large Load Diff

4802
source/images/RECENTLY.h Normal file

File diff suppressed because it is too large Load Diff

4802
source/images/SD.h Normal file

File diff suppressed because it is too large Load Diff

4802
source/images/SET.h Normal file

File diff suppressed because it is too large Load Diff

30
source/images/icon_FC.h Normal file
View File

@ -0,0 +1,30 @@
const unsigned char __attribute__((aligned(4)))gImage_icon_FC[448] = { /* 0X00,0X10,0X10,0X00,0X0E,0X00,0X00,0X39, */
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,
0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X00,0X00,
0X00,0X00,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,
0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X00,0X00,
0X00,0X00,0X1F,0X03,0X1F,0X03,0X00,0X00,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,
0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X0F,0X00,0X00,0X00,
0X00,0X00,0X1F,0X03,0X00,0X00,0X00,0X00,0X00,0X00,0X1F,0X03,0X1F,0X03,0X1F,0X03,
0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X00,0X00,
0X00,0X00,0X1F,0X03,0X1F,0X03,0X00,0X00,0X1F,0X03,0X1F,0X03,0X0F,0X00,0X0F,0X00,
0X0F,0X00,0X1F,0X03,0X00,0X00,0X1F,0X03,0X1F,0X03,0X00,0X00,0X1F,0X03,0X00,0X00,
0X00,0X00,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,
0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X1F,0X03,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
};

30
source/images/icon_GB.h Normal file
View File

@ -0,0 +1,30 @@
const unsigned char __attribute__((aligned(4)))gImage_icon_GB[448] = { /* 0X00,0X10,0X10,0X00,0X0E,0X00,0X00,0X39, */
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,
0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0XEF,0X03,0XEF,0X03,0XEF,0X03,
0XEF,0X03,0XEF,0X03,0XEF,0X03,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0XEF,0X03,0XEF,0X03,0XEF,0X03,
0XEF,0X03,0XEF,0X03,0XEF,0X03,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0XEF,0X03,0XEF,0X03,0XEF,0X03,
0XEF,0X03,0XEF,0X03,0XEF,0X03,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0XEF,0X03,0XEF,0X03,0XEF,0X03,
0XEF,0X03,0XEF,0X03,0XEF,0X03,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0XEF,0X03,0XEF,0X03,0XEF,0X03,
0XEF,0X03,0XEF,0X03,0XEF,0X03,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,
0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,
0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0X39,0X67,0XCE,0X39,0X39,0X67,
0X39,0X67,0X39,0X67,0X95,0X48,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0XCE,0X39,0XCE,0X39,0XCE,0X39,
0X39,0X67,0X95,0X48,0X39,0X67,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0X39,0X67,0XCE,0X39,0X39,0X67,
0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X39,0X67,0X39,0X67,0X39,0X67,0X39,0X67,
0X39,0X67,0X39,0X67,0X39,0X67,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
};

86
source/images/icons.h Normal file
View File

@ -0,0 +1,86 @@
const unsigned char __attribute__((aligned(4)))gImage_icons[1344] = { /* 0X00,0X10,0X10,0X00,0X2A,0X00,0X00,0X39, */
0XFF,0X7F,0XFF,0X7F,0X10,0X02,0X10,0X02,0X10,0X02,0X10,0X02,0X10,0X02,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X10,0X02,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFF,0X43,0XFF,0X43,0X10,0X02,
0X00,0X00,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X10,0X02,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,
0X10,0X02,0X10,0X02,0X10,0X02,0X10,0X02,0X10,0X02,0X10,0X02,0XFF,0X7F,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,
0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFF,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,
0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0X1F,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,
0XFF,0X43,0X1F,0X43,0XFF,0X43,0X1F,0X43,0XFF,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,
0XFF,0X43,0XFF,0X43,0X1F,0X43,0XFF,0X43,0X1F,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0X1F,0X43,
0XFF,0X43,0X1F,0X43,0XFF,0X43,0X1F,0X43,0XFF,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,0XFF,0X43,
0X1F,0X43,0XFF,0X43,0X1F,0X43,0XFF,0X43,0X1F,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0XFF,0X43,0XFF,0X43,0XFF,0X43,0X1F,0X43,0XFF,0X43,0X1F,0X43,
0XFF,0X43,0X1F,0X43,0XFF,0X43,0X1F,0X43,0X1F,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0XFE,0X7F,0X1F,0X43,0XFF,0X43,0X1F,0X43,0XFF,0X43,0X1F,0X43,0XFF,0X43,
0X1F,0X43,0XFF,0X43,0X1F,0X43,0X1F,0X43,0X1F,0X43,0X18,0X23,0X00,0X00,0XFF,0X7F,
0X10,0X02,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,
0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X18,0X23,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,
0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XAD,0X35,0XEF,0X3D,0X29,0X25,0XB8,0X7D,0XB8,0X7D,0XB8,0X7D,0XB8,0X7D,
0XB8,0X7D,0XB8,0X7D,0XB8,0X7D,0XB8,0X7D,0X29,0X25,0XEF,0X3D,0X10,0X42,0XFF,0X7F,
0XEF,0X3D,0X39,0X67,0XB5,0X56,0X31,0X7E,0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,
0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,0X31,0X7E,0XB5,0X56,0X39,0X67,0XAD,0X35,
0X4A,0X29,0X2E,0X4E,0XB1,0X7D,0XAD,0X4C,0X06,0X28,0X03,0X28,0X03,0X28,0X03,0X28,
0X03,0X28,0X03,0X28,0X03,0X28,0X06,0X28,0XAD,0X4C,0XB1,0X7D,0X31,0X7E,0XC6,0X18,
0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,0X06,0X28,0X00,0X00,0X80,0X38,0X80,0X38,0X80,0X38,
0X80,0X38,0X80,0X38,0X80,0X38,0X00,0X00,0X06,0X28,0X2E,0X4E,0XAD,0X4C,0X06,0X28,
0X09,0X38,0XAD,0X4C,0XAD,0X4C,0X06,0X28,0X00,0X00,0XC9,0X7D,0XC9,0X7D,0XC9,0X7D,
0XC9,0X7D,0XC9,0X7D,0XC9,0X7D,0X00,0X00,0X06,0X28,0XAD,0X4C,0X2E,0X4E,0X06,0X28,
0X06,0X28,0X52,0X4A,0X10,0X42,0X06,0X28,0X00,0X00,0X2D,0X7E,0XB5,0X56,0X94,0X52,
0X2E,0X4E,0X40,0X4A,0X2D,0X7E,0X00,0X00,0X06,0X28,0X52,0X4A,0XAD,0X4C,0X06,0X28,
0X06,0X28,0XAD,0X4C,0X52,0X4A,0X06,0X28,0X00,0X00,0X2D,0X7E,0X2D,0X7E,0X2D,0X7E,
0X2D,0X7E,0X2D,0X7E,0X2D,0X7E,0X00,0X00,0X06,0X28,0XAD,0X4C,0XAD,0X4C,0X06,0X28,
0X06,0X28,0XAD,0X4C,0XAD,0X4C,0X06,0X28,0X00,0X00,0X63,0X0C,0X8C,0X31,0X4A,0X29,
0X4A,0X29,0XAD,0X35,0X63,0X0C,0X00,0X00,0X09,0X38,0XAD,0X4C,0XAD,0X4C,0X06,0X28,
0X4A,0X29,0X09,0X38,0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,0X09,0X38,0X09,0X38,0X09,0X38,
0X09,0X38,0X09,0X38,0X09,0X38,0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,0X09,0X38,0X4A,0X29,
0XFF,0X7F,0XFF,0X7F,0X10,0X42,0X4A,0X29,0X06,0X28,0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,
0XAD,0X4C,0XAD,0X4C,0XAD,0X4C,0X06,0X28,0X4A,0X29,0X10,0X42,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0X10,0X42,0X10,0X42,0X10,0X42,
0X10,0X42,0X10,0X42,0X10,0X42,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0X10,0X42,0X18,0X63,0X18,0X63,0X18,0X63,0X18,0X63,0X18,0X63,0X18,0X63,0X18,0X63,
0X18,0X63,0X18,0X63,0X18,0X63,0X18,0X63,0X18,0X63,0X18,0X63,0X10,0X42,0X00,0X00,
0X10,0X42,0X18,0X63,0X00,0X5C,0X00,0X5C,0X00,0X5C,0X00,0X5C,0X00,0X5C,0X00,0X5C,
0X00,0X5C,0X00,0X5C,0X00,0X5C,0X00,0X5C,0X00,0X5C,0X00,0X5C,0X10,0X42,0X00,0X00,
0X10,0X42,0X18,0X63,0X00,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10,0X42,0X18,0X63,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,
0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0X10,0X42,0X00,0X00,
0X10,0X42,0X18,0X63,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,
0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0XFE,0X7F,0X10,0X42,0X00,0X00,
0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,
0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X10,0X42,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
};

30
source/images/nor_icon.h Normal file
View File

@ -0,0 +1,30 @@
const unsigned char __attribute__((aligned(4)))gImage_nor_icon[448] = { /* 0X00,0X10,0X10,0X00,0X0E,0X00,0X00,0X39, */
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,
0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,
0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0XF0,0X41,0XF0,0X41,0XF0,0X41,0XF0,0X41,0XF0,0X41,0XF0,0X41,
0XF0,0X41,0XF0,0X41,0XF0,0X41,0XF0,0X41,0XF0,0X41,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,
0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0XC7,0X18,0X39,0X67,0X39,0X67,0XC7,0X18,0XC7,0X18,0XC7,0X18,
0X39,0X67,0XC7,0X18,0XC7,0X18,0X39,0X67,0X39,0X67,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0XC7,0X18,0X39,0X67,0XC7,0X18,0X39,0X67,0XC7,0X18,0X39,0X67,
0XC7,0X18,0X39,0X67,0XC7,0X18,0X39,0X67,0XC7,0X18,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0XC7,0X18,0X39,0X67,0XC7,0X18,0X39,0X67,0XC7,0X18,0XC7,0X18,
0X39,0X67,0XC7,0X18,0XC7,0X18,0X39,0X67,0XC7,0X18,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,
0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0XC7,0X18,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,
0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XDE,0X7B,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,
0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0X74,0X4E,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,0XFF,0X7F,
};

4802
source/images/splash.h Normal file

File diff suppressed because it is too large Load Diff

363
source/lang.c Normal file
View File

@ -0,0 +1,363 @@
#include "lang.h"
char* gl_init_error;
char* gl_power_off;
char* gl_init_ok;
char* gl_Loading;
char* gl_file_overflow;
char* gl_menu_btn;
char* gl_lastest_game;
char* gl_writing;
char* gl_time;
char* gl_Mon;
char* gl_Tues;
char* gl_Wed;
char* gl_Thur;
char* gl_Fri;
char* gl_Sat;
char* gl_Sun;
char* gl_addon;
char* gl_reset;
char* gl_rts;
char* gl_sleep;
char* gl_cheat;
char* gl_hot_key;
char* gl_hot_key2;
char* gl_language;
char* gl_en_lang;
char* gl_zh_lang;
char* gl_set_btn;
char* gl_ok_btn;
char* gl_formatnor_info;
char* gl_check_sav;
char* gl_make_sav;
char* gl_check_RTS;
char* gl_make_RTS;
char* gl_check_pat;
char* gl_make_pat;
char* gl_loading_game;
char* gl_engine;
char* gl_use_engine;
char* gl_recently_play;
char* gl_START_help;
char* gl_SELECT_help;
char* gl_L_A_help;
char* gl_LSTART_help;
char* gl_online_manual;
char* gl_no_game_played;
char* gl_ingameRTC;
char* gl_offRTC_powersave;
//--
char** gl_rom_menu;
char** gl_nor_op;
//中文
const char zh_init_error[]="TF卡初始化失败";
const char zh_power_off[]="关机";
const char zh_init_ok[]="TF卡初始化成功";
const char zh_Loading[]="加载中...";
const char zh_file_overflow[]="文件太大,不能加载";
const char zh_menu_btn[]=" [B]取消 [A]确定";
const char zh_writing[]="正在写...";
const char zh_lastest_game[]="请选择最后一个游戏";
const char zh_time[] =" 时间";
const char zh_Mon[]="";
const char zh_Tues[]="";
const char zh_Wed[]="";
const char zh_Thur[]="";
const char zh_Fri[]="";
const char zh_Sat[]="";
const char zh_Sun[]="";
const char zh_addon[]=" 功能";
const char zh_reset[]="软复位";
const char zh_rts[]="即时存档";
const char zh_sleep[]="睡眠";
const char zh_cheat[]="金手指";
const char zh_hot_key[]=" 睡眠热键";
const char zh_hot_key2[]=" 菜单热键";
const char zh_language[]=" LANGUAGE";
const char zh_lang[]=" 中文";
const char zh_set_btn[]="设置";
const char zh_ok_btn[]="保存";
const char zh_formatnor_info[]="确定?大约4分钟";
const char zh_check_sav[]="检查SAV文件";
const char zh_make_sav[]="创建SAV文件";
const char zh_check_RTS[]="检查RTS文件";
const char zh_make_RTS[]="创建RTS文件";
const char zh_check_pat[]="检查PAT文件";
const char zh_make_pat[]="创建PAT文件";
const char zh_loading_game[]="加载游戏";
const char zh_engine[]=" 引擎";
const char zh_use_engine[]="快速补丁引擎";
const char zh_recently_play[]="最近游戏列表";
const char zh_START_help[]="打开最近游戏列表";
const char zh_SELECT_help[]="缩略图开关";
const char zh_L_A_help[]="冷启动";
const char zh_LSTART_help[]="删除文件";
const char zh_online_manual[]=" 在线说明书";
const char zh_no_game_played[]="还没玩过游戏";
const char zh_ingameRTC[]=" 游戏时钟";
const char zh_offRTC_powersave[]="关闭可以节能";
const char *zh_rom_menu[]={
"直接启动",
"启动带辅助",
"烧录到NOR",
"烧录到NOR带辅助",
"存档类型",
"金手指",
};
const char *zh_nor_op[3]={
"直接运行",
"删除",
"全部格式化",
};
//英文
const char en_init_error[]="Micro SD card initial error";
const char en_power_off[]="Power off";
const char en_init_ok[]="Micro SD card initial OK";
const char en_Loading[]="Loading...";
const char en_file_overflow[]="The file overflow";
const char en_menu_btn[]="[B]CANCEL [A]OK";
const char en_writing[]="WRITING...";
const char en_lastest_game[]="SELECT THE LASTEST";
const char en_time[]=" TIME";
const char en_Mon[]="MON";
const char en_Tues[]="TUE";
const char en_Wed[]="WED";
const char en_Thur[]="THU";
const char en_Fri[]="FRI";
const char en_Sat[]="SAT";
const char en_Sun[]="SUN";
const char en_addon[]=" ADDON";
const char en_reset[]="RESET";
const char en_rts[]="SAVESTATE";
const char en_sleep[]="SLEEP";
const char en_cheat[]="CHEAT";
const char en_hot_key[] ="SLEEP KEY";
const char en_hot_key2[]=" MENU KEY";
const char en_language[]=" LANGUAGE";
const char en_lang[]="ENGLISH";
const char en_set_btn[]="SET";
const char en_ok_btn[]=" OK";
const char en_formatnor_info[]="SURE?about 4 mins";
const char en_check_sav[]="CHECKING SAV FILE";
const char en_make_sav[] ="CREATING SAV FILE";
const char en_check_RTS[]="CHECKING RTS FILE";
const char en_make_RTS[] ="CREATING RTS FILE";
const char en_check_pat[]="CHECKING PAT FILE";
const char en_make_pat[] ="CREATING PAT FILE";
const char en_loading_game[]="LOADING GAME";
const char en_engine[]=" ENGINE";
const char en_use_engine[]="FAST PATCH ENGINE";
const char en_recently_play[]="RECENT PLAYED";
const char en_START_help[]="Open recently played list";
const char en_SELECT_help[]="Thumbnail toggle";
const char en_L_A_help[]="Multiboot";
const char en_LSTART_help[]="Delete file";
const char en_online_manual[]="Online manual";
const char en_no_game_played[]="No game played yet";
const char en_ingameRTC[]=" GAME RTC";
const char en_offRTC_powersave[]="TURNOFF TO POWER SAVE";
const char *en_rom_menu[] = {
"CLEAN BOOT",
"BOOT WITH ADDON",
"WRITE TO NOR CLEAN",
"WRITE TO NOR ADDON",
"SAVE TYPE",
"CHEAT",
};
const char *en_nor_op[3]={
"DIRECT BOOT",
"DELETE",
"FORMAT ALL",
};
//---------------------------------------------------------------------------------
void LoadChinese(void)
{
gl_init_error = (char*)zh_init_error;
gl_power_off = (char*)zh_power_off;
gl_init_ok = (char*)zh_init_ok;
gl_Loading = (char*)zh_Loading;
gl_file_overflow = (char*)zh_file_overflow;
gl_menu_btn = (char*)zh_menu_btn;
gl_writing = (char*)zh_writing;
gl_lastest_game = (char*)zh_lastest_game;
gl_time = (char*)zh_time;
gl_Mon = (char*)zh_Mon;
gl_Tues = (char*)zh_Tues;
gl_Wed = (char*)zh_Wed;
gl_Thur = (char*)zh_Thur;
gl_Fri = (char*)zh_Fri;
gl_Sat = (char*)zh_Sat;
gl_Sun = (char*)zh_Sun;
gl_addon = (char*)zh_addon;
gl_reset = (char*)zh_reset;
gl_rts = (char*)zh_rts;
gl_sleep = (char*)zh_sleep;
gl_cheat = (char*)zh_cheat;
gl_hot_key = (char*)zh_hot_key;
gl_hot_key2 = (char*)zh_hot_key2;
gl_language = (char*)zh_language;
gl_en_lang = (char*)en_lang;
gl_zh_lang = (char*)zh_lang;;
gl_set_btn = (char*)zh_set_btn;
gl_ok_btn = (char*)zh_ok_btn;
gl_formatnor_info = (char*)zh_formatnor_info;
gl_check_sav = (char*)zh_check_sav;
gl_make_sav = (char*)zh_make_sav;
gl_check_RTS = (char*)zh_check_RTS;
gl_make_RTS = (char*)zh_make_RTS;
gl_check_pat = (char*)zh_check_pat;
gl_make_pat = (char*)zh_make_pat;
gl_loading_game = (char*)zh_loading_game;
gl_engine = (char*)zh_engine;
gl_use_engine = (char*)zh_use_engine;
gl_recently_play = (char*)zh_recently_play;
gl_START_help = (char*)zh_START_help;
gl_SELECT_help = (char*)zh_SELECT_help;
gl_L_A_help = (char*)zh_L_A_help;
gl_LSTART_help = (char*)zh_LSTART_help;
gl_online_manual = (char*)zh_online_manual;
gl_no_game_played = (char*)zh_no_game_played;
gl_ingameRTC = (char*)zh_ingameRTC;
gl_offRTC_powersave = (char*)zh_offRTC_powersave;
//
gl_rom_menu = (char**)zh_rom_menu;
gl_nor_op = (char**)zh_nor_op;
}
//---------------------------------------------------------------------------------
void LoadEnglish(void)
{
gl_init_error = (char*)en_init_error;
gl_power_off = (char*)en_power_off;
gl_init_ok = (char*)en_init_ok;
gl_Loading = (char*)en_Loading;
gl_file_overflow = (char*)en_file_overflow;
gl_menu_btn = (char*)en_menu_btn;
gl_writing = (char*)en_writing;
gl_lastest_game = (char*)en_lastest_game;
gl_time = (char*)en_time;
gl_Mon = (char*)en_Mon;
gl_Tues = (char*)en_Tues;
gl_Wed = (char*)en_Wed;
gl_Thur = (char*)en_Thur;
gl_Fri = (char*)en_Fri;
gl_Sat = (char*)en_Sat;
gl_Sun = (char*)en_Sun;
gl_addon = (char*)en_addon;
gl_reset = (char*)en_reset;
gl_rts = (char*)en_rts;
gl_sleep = (char*)en_sleep;
gl_cheat = (char*)en_cheat;
gl_hot_key = (char*)en_hot_key;
gl_hot_key2 = (char*)en_hot_key2;
gl_language = (char*)en_language;
gl_en_lang = (char*)en_lang;
gl_zh_lang = (char*)zh_lang;;
gl_set_btn = (char*)en_set_btn;
gl_ok_btn = (char*)en_ok_btn;
gl_formatnor_info = (char*)en_formatnor_info;
gl_check_sav = (char*)en_check_sav;
gl_make_sav = (char*)en_make_sav;
gl_check_RTS = (char*)en_check_RTS;
gl_make_RTS = (char*)en_make_RTS;
gl_check_pat = (char*)en_check_pat;
gl_make_pat = (char*)en_make_pat;
gl_loading_game = (char*)en_loading_game;
gl_engine = (char*)en_engine;
gl_use_engine = (char*)en_use_engine;
gl_recently_play = (char*)en_recently_play;
gl_START_help = (char*)en_START_help;
gl_SELECT_help = (char*)en_SELECT_help;
gl_L_A_help = (char*)en_L_A_help;
gl_LSTART_help = (char*)en_LSTART_help;
gl_online_manual = (char*)en_online_manual;
gl_no_game_played = (char*)en_no_game_played;
gl_ingameRTC = (char*)en_ingameRTC;
gl_offRTC_powersave = (char*)en_offRTC_powersave;
//
gl_rom_menu = (char**)en_rom_menu;
gl_nor_op = (char**)en_nor_op;
}

75
source/lang.h Normal file
View File

@ -0,0 +1,75 @@
#ifndef _LANG_H
#define _LANG_H
extern char* gl_init_error;
extern char* gl_power_off;
extern char* gl_init_ok;
extern char* gl_Loading;
extern char* gl_file_overflow;
extern char* gl_menu_btn;
extern char* gl_lastest_game;
extern char* gl_writing;
extern char* gl_time;
extern char* gl_Mon;
extern char* gl_Tues;
extern char* gl_Wed;
extern char* gl_Thur;
extern char* gl_Fri;
extern char* gl_Sat;
extern char* gl_Sun;
extern char* gl_addon;
extern char* gl_reset;
extern char* gl_rts;
extern char* gl_sleep;
extern char* gl_cheat;
extern char* gl_hot_key;
extern char* gl_hot_key2;
extern char* gl_language;
extern char* gl_en_lang;
extern char* gl_zh_lang;
extern char* gl_set_btn;
extern char* gl_ok_btn;
extern char* gl_formatnor_info;
extern char* gl_check_sav;
extern char* gl_make_sav;
extern char* gl_check_RTS;
extern char* gl_make_RTS;
extern char* gl_check_pat;
extern char* gl_make_pat;
extern char* gl_loading_game;
extern char* gl_engine;
extern char* gl_use_engine;
extern char* gl_recently_play;
extern char* gl_START_help;
extern char* gl_SELECT_help;
extern char* gl_L_A_help;
extern char* gl_LSTART_help;
extern char* gl_online_manual;
extern char* gl_no_game_played;
extern char* gl_ingameRTC;
extern char* gl_offRTC_powersave;
extern char** gl_rom_menu;
extern char** gl_nor_op;
void LoadEnglish(void);
void LoadChinese(void);
#endif

BIN
source/newomega_top.bin Normal file

Binary file not shown.

5322
source/pocketnes.h Normal file

File diff suppressed because it is too large Load Diff

94
source/reset.s Normal file
View File

@ -0,0 +1,94 @@
@---------------------------------------------------------------------------------
.section .iwram,"ax",%progbits
@;--------------------------------------------------------------
.code 16
.global SoftReset_now
SoftReset_now:
ldr r1,=SoftReset_now16
bx r1
.code 32
SoftReset_now16:
adr r1,SoftReset
adr r3,SoftReset_end
mov r2,#0x02000000
add r2,#0x1000 @;533
copy_loop:
ldr r0,[r1],#4
str r0,[r2],#4
cmp r1,r3
blt copy_loop
mov r2,#0x3000000
@;add r3,r2,#0x1000
ldr r3,=SoftReset_now
mov r0,#0
clearL:
str r0,[r2],#+4
cmp r2,r3
blt clearL
ldr r2,=RegisterRamReset
ldr r3,=0x3008000
mov r0,#0
clearL2:
str r0,[r2],#+4
cmp r2,r3
blt clearL2
mov r0,#0x02000000
add r0,r0,#0x1000
add r0,r0,#1
bx r0
@----------------------------------------------
.code 16
.global RegisterRamReset
RegisterRamReset:
swi 1
bx lr
@----------------------------------------------
.global SoftReset
SoftReset:
ldr r3, =0x04000208
mov r2, #0
str r2, [r3, #0]
@;ldr r3, =0x03007FFA
@;mov r0, #0x2 @;FD
@;strb r0, [r3, #0]
@;swi 0x1
ldr r6, =0x03007F00
mov r5,#1
str r5, [r6]
ldr r6, =0x03007FFA
mov r7, #0x0
str r7, [r6, #0]
ldr r1, =0x03007f00
mov sp, r1
swi 0
@ldr r3, =0x03007FFA @ restart flag
@strb r0,[r3, #0]
@ldr r3, =0x04000208 @ REG_IME
@mov r2, #0
@strb r2, [r3, #0]
@ldr r1, =0x03007f00
@mov sp, r1
@swi 1
@swi 0
@----------------------------------------------
.global HardReset
HardReset:
ldr r3, =0x04000208
mov r2, #0
str r2, [r3, #0]
ldr r1, =0x3007f00
mov SP, r1
swi 0x26
.align
.ltorg
SoftReset_end:

2807
source/reset_table.h Normal file

File diff suppressed because it is too large Load Diff

2810
source/saveMODE.h Normal file

File diff suppressed because it is too large Load Diff

1199
source/setwindow.c Normal file

File diff suppressed because it is too large Load Diff

1035
source/showcht.c Normal file

File diff suppressed because it is too large Load Diff

28
source/showcht.h Normal file
View File

@ -0,0 +1,28 @@
#include <gba_base.h>
#define MAX_BUF_LEN 6000
#define MAX_KEY_LEN 50
#define MAX_VAL_LEN 6000
#define MAX_sectionVAL_LEN 300
typedef struct CHT_LINE{
char LINEname[MAX_KEY_LEN];
//char KEY_val[256];
u8 is_section ;
u8 section_val_count ;
u8 len;
u8 select ;
} FM_CHT_LINE;
typedef struct ST_entry_{
u32 address;
u32 VAL;
} ST_entry;
//int Get_KEY_val(FIL* file,char*KEY_section,char*KEY_secval,char getbuff[]);
int Show_all_KEY_val(FIL* file);
u32 Check_cht_file(TCHAR *gamefilename);
void Open_cht_file(TCHAR *gamefilename,u32 havecht);
void Trim(char s[]);