Private Type gamheader '步步高GAM文件头长度=26字节
filetype As String * 2 ' 必须="MY"
filesize As Long 'gam文件的总字节长度=文件头+模块数*4+所有模块字节数(含模块头)
blockcount As Integer '模块数量=prg模块数+1(chr模块)+1(点阵模块)+1(专用切BANK模块)
headersize As Integer 'gam文件头的总字节,一般=$001A+4*模块数
programflag As Integer '=00
resetpaGe As Byte '初始内存页号,一般=$FE
programtype As Byte '程序类型 0=GAM,1=EXC
nesreset As Integer 'NES原程序reset入口
memorypage As Byte '最少需要的内存页数=$FF-NES的PRG数+1,1PRG=$ff,2PRG=$fe ......
displaymemorypage As Byte '最少需要的显存页数 软驱一号=4=32KB 98型=$20=256KB
formore As Integer '待扩充功能,=0
gamstart As Integer 'GAM程序入号,根据NES程序切页情况自行设定
firstbank As Integer '第一个模块,仅用于动态加载模块程序 默认=0
banksaddres As Integer '模块集中指针区地址,一般=$1A
End Type
filetype As String * 2 ' 必须="MY"
filesize As Long 'gam文件的总字节长度=文件头+模块数*4+所有模块字节数(含模块头)
blockcount As Integer '模块数量=prg模块数+1(chr模块)+1(点阵模块)+1(专用切BANK模块)
headersize As Integer 'gam文件头的总字节,一般=$001A+4*模块数
programflag As Integer '=00
resetpaGe As Byte '初始内存页号,一般=$FE
programtype As Byte '程序类型 0=GAM,1=EXC
nesreset As Integer 'NES原程序reset入口
memorypage As Byte '最少需要的内存页数=$FF-NES的PRG数+1,1PRG=$ff,2PRG=$fe ......
displaymemorypage As Byte '最少需要的显存页数 软驱一号=4=32KB 98型=$20=256KB
formore As Integer '待扩充功能,=0
gamstart As Integer 'GAM程序入号,根据NES程序切页情况自行设定
firstbank As Integer '第一个模块,仅用于动态加载模块程序 默认=0
banksaddres As Integer '模块集中指针区地址,一般=$1A
End Type