home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SeeIn AO
/
ALICE-CD.BIN
/
Šj”ƒlƒbƒg�•‚»‚Ì‘¼
/
nv_mini
/
source
/
nvsystem.adv
< prev
next >
Wrap
Text File
|
1998-09-14
|
7KB
|
262 lines
;================================================================================
; NVSYSTEM-mini programmed by ALICE SOFT
;================================================================================
**NvSystemCall NvFunc,ar01,ar02,ar03,ar04,ar05,ar06,ar07,ar08,ar09,ar10:
US a01,30:
!NvRnd:0!
{ NvFunc=0xfffe:~InitNvSystem: @ExitNvSystemCall:}
{ NvFunc=0xffff:~RemoveNvSystem: @ExitNvSystemCall:}
~SwitchGetStrMode FALSE:
~SwitchPutStrMode TRUE:
~SetStrArray:
{ NvFunc=0x0000:~PutStrArray: @ExitNvSystemCall:}
{ NvFunc=0x0001:~SetNextLine: @ExitNvSystemCall:}
{ NvFunc=0x0002:\TCCom: @ExitNvSystemCall:}
{ NvFunc=0x0003:\TRCom: @ExitNvSystemCall:}
{ NvFunc=0x0004:\ESCom: @ExitNvSystemCall:}
{ NvFunc=0x0005:\EDCom: @ExitNvSystemCall:}
{ NvFunc=0x0006:~EGCom:~~NvRnd: @ExitNvSystemCall:}
{ NvFunc=0x0010:~PushKeyWait TRUE: @ExitNvSystemCall:}
{ NvFunc=0x0011:~PushKeyWait FALSE: @ExitNvSystemCall:}
{ NvFunc=0x0020:~SetNextPage: @ExitNvSystemCall:}
{ NvFunc=0x0030:\FCCom: @ExitNvSystemCall:}
{ NvFunc=0x0031:\FPCom: @ExitNvSystemCall:}
{ NvFunc=0x0032:\FSCom: @ExitNvSystemCall:}
{ NvFunc=0x0040:\GSCom: @ExitNvSystemCall:}
{ NvFunc=0x0041:\GCCom: @ExitNvSystemCall:}
{ NvFunc=0x0042:\GGCom: @ExitNvSystemCall:}
{ NvFunc=0x0043:\GTCom: @ExitNvSystemCall:}
{ NvFunc=0x0050:~SetPal ar01,ar02,ar03,ar04:@ExitNvSystemCall:}
{ NvFunc=0x0060:\SSCom: @ExitNvSystemCall:}
{ NvFunc=0x0061:\SPCom: @ExitNvSystemCall:}
{ NvFunc=0x0062:\SWCom: @ExitNvSystemCall:}
{ NvFunc=0x0100:~PTopSet: @ExitNvSystemCall:}
{ NvFunc=0x0101:~PEndSet: @ExitNvSystemCall:}
MS DebugMsgStr,âtâ@âôâNâVâçâôâRü[âïö╘ìåâGâëü[:~DebugMsgPut DebugMsgStr:
*ExitNvSystemCall:
~SwitchGetStrMode TRUE:
~SwitchPutStrMode FALSE:
UG a01,30:
~0,NvRnd:
;================================================================================
; InitNvSystem(),RemoveNvSystem()
**InitNvSystem:
US a01,30:
MV 100:
MT NVSYSTEM-mini:
~InitGrp: ~PutInitDoneMsg 0:~PutInitDoneMsg 1:
~InitKey: ~PutInitDoneMsg 2:
~InitStr: ~PutInitDoneMsg 3:
~InitSound: ~PutInitDoneMsg 4:
~InitFile: ~PutInitDoneMsg 5:~PutInitDoneMsg 6:
~StopKey:
CE XSize,0,XSize,YSize,0,0,27,10,0:
; PF 1,3:
; CF 0,0,XSize,YSize,0:
; PF 0,0:
UG a01,30:
~0,0:
**RemoveNvSystem:
~RemoveGrp:
~RemoveKey:
~RemoveStr:
~RemoveSound:
~RemoveFile:
~0,0:
**PutInitDoneMsg f01:
US a01,30:
NB a01,f01,1:
!a02:24!
!a03:a02*1!
!a04:(a02+StrYSpace)!
{ a01=0:
MS SysStrBuffTop,ü|éaéÅéÅéöéëéÄéçü@éméuéréxérésédélü|éìéëéÄéëü@éûéàéÆüDéPüDéOéOü|éOéOü@üiéÅéÄü@éréxérésédéléRéTüjü|:
MS SysStrBuffTop+1,ü@é`éîéîü@éÆéëéçéêéöéôü@éüéÆéàü@éÆéàéôéàéÆéûéàéäü@éëéÄü@é`éîéëéâéàéréÅéåéöü@éôéëéÄéâéàü@éPéXéXéVü`:}
{ a01=1:
!a04:a04+(a02+StrYSpace)*3!
MS SysStrBuffTop,ü@ü╦éhéÄéëéöéëéüéîéëéÜéàéäü@éféÆéüéÉéêéëéâümébéoétüF:
MS SysStrBuffTop+1,ü|ü|ü|:{ RateGUI \ 9999:MH SysStrBuffTop+1,0,SpecCPU:}
MA SysStrBuffTop,SysStrBuffTop+1:
MS SysStrBuffTop+1,ü^éfé`üF:
MA SysStrBuffTop,SysStrBuffTop+1:
MS SysStrBuffTop+1,ü|ü|ü|:{ RateGUI \ 9999:MH SysStrBuffTop+1,0,SpecGUI:}
MA SysStrBuffTop,SysStrBuffTop+1:
MS SysStrBuffTop+1,ün:
MA SysStrBuffTop,SysStrBuffTop+1:}
{ a01=2:
!a04:a04+(a02+StrYSpace)*4!
MS SysStrBuffTop,ü@ü╦éhéÄéëéöéëéüéîéëéÜéàéäü@éjéàéÖ:}
{ a01=3:
!a04:a04+(a02+StrYSpace)*5!
MS SysStrBuffTop,ü@ü╦éhéÄéëéöéëéüéîéëéÜéàéäü@éréöéÆéëéÄéçéô:}
{ a01=4:
!a04:a04+(a02+StrYSpace)*6!
MS SysStrBuffTop,ü@ü╦éhéÄéëéöéëéüéîéëéÜéàéäü@éréÅéòéÄéä:}
{ a01=5:
!a04:a04+(a02+StrYSpace)*7!
MS SysStrBuffTop,ü@ü╦éhéÄéëéöéëéüéîéëéÜéàéäü@éeéëéîéàéô:}
{ a01=6:
!a04:a04+(a02+StrYSpace)*9!
MS SysStrBuffTop,éméuéréxérésédélü|éìéëéÄéëü@éüéÆéàü@éhéÄéëéöéëéüéîéëéÜéàéäüDégéëéöü@é`éÄéÖü@éjéàéÖüI:}
ZH TRUE:
MG 100,TRUE:
~SetFSize a02:
T a03,a04:
X SysStrBuffTop:
{ a01=0:T a03,a04+a02+StrYSpace:X SysStrBuffTop+1:}
MG 100,PutStrFlag:
ZH FALSE:
UG a01,30:
~0,0:
;================================================================================
*FSCom:
{(ar01<24)+(ar01>640):
MS DebugMsgStr,éeérâRâ}âôâhé╠ê°Éöé¬ê┘Åφé┼é╖üB:
~DebugMsgPut DebugMsgStr:\0:}
!StrFontSize:ar01!
\0:
*FCCom:
{(ar01<16)+(ar01>240):
MS DebugMsgStr,éeébâRâ}âôâhé╠ê°Éöé¬ê┘Åφé┼é╖üB:
~DebugMsgPut DebugMsgStr:\0:}
!StrFontColor:ar01!
\0:
*FPCom:
{ ar01\0xffff:
!StrCurPutTime:ar01!
\0:}
!StrCurPutTime:StrDefPutTime!
\0:
;================================================================================
*TCCom:
{ GrpRewriteFlag=TRUE:
~SetGrpToDib:
!GrpRewriteFlag:FALSE!}
CC XSize, 0,XSize,YSize, 0,YSize:
~Cp 0,YSize,XSize,YSize, 0, 0:
!StrHideFlag:TRUE!
\0:
*TRCom:
{ GrpRewriteFlag=TRUE:
~SetGrpToDib:
CC XSize,0,XSize,YSize,0,YSize:
~SetStrToDib:
~Cp 0,YSize,XSize,YSize,0,0:
!GrpRewriteFlag:FALSE!
!StrHideFlag:FALSE!}
{ StrHideFlag=TRUE:
~SetStrToDib:
~Cp 0,YSize,XSize,YSize,0,0:
!StrHideFlag:FALSE!}
\0:
*GTCom:
{ GrpRewriteFlag=TRUE:
~SetGrpToDib:
!GrpRewriteFlag:FALSE!
}
CC XSize, 0,XSize,YSize, 0,YSize:
{ StrHideFlag=FALSE:
~SetStrToDib:
}
~Cp 0,YSize,XSize,YSize, 0, 0:
\0:
;================================================================================
*GSCom:
~SetGrpBuff ar01,ar02,ar03,ar04,ar05:
!GrpRewriteFlag:TRUE!
\0:
*GCCom:
US a01,30:
< a01,1,gMax-1,1,1:
~SetGrpBuff a01,0,0,0,0:
>
!GrpRewriteFlag:TRUE!
UG a01,30:
\0:
*GGCom:
!CopyEffect:ar01!
!CopyEffectTime:ar02!
\0:
;================================================================================
*ESCom:
{ StrCurX\0:
MS DebugMsgStr,æIæ≡ÄêâRâ}âôâhé═ìsɵô¬é┼é╡é⌐Ägùpé┼é½é▄é╣é±üB:
~DebugMsgPut DebugMsgStr:}
{ StrCurX=0:
{ ar01=0:!SelMode:1!!CurSelCount:1!}
{ ar01\0:!SelMode:2!!CurSelCount:ar01!}
}
\0:
*EDCom:
{ SelMode=0:
MS DebugMsgStr,édérâRâ}âôâhé¬Ä└ìsé│éΩé─éóé▄é╣é±:
~DebugMsgPut DebugMsgStr:}
{ SelMode=2:!SelMode:0!!CurSelCount:0!}
\0:
;================================================================================
**EGCom:US a01,30:
~SetIxResult FALSE:
~PutStrArray:
*EGlp0: ~SetSelBuff:~~a01:{ a01=ERROR:!Res:ERROR!@EGCOut:}
!a02:a01!
{ SpStrCount\NULL:
~SetSelSpStrBuff a01:!a02:a01+SpStrCount!}
*EGlp1: ~Select 1,a02,TRUE:~~Res:
{ Res=0xffff:~SystemMenu:@EGlp0:}
{ Res<a01:!Res:Res+1!@EGCOut:}
~PutSpMsg Res-a01,FALSE:
@EGlp0:
*EGCOut:DF slDat,slMax,0:
!SelMode:0!
!CurSelCount:0!
UG a01,30:
~0,Res:
;================================================================================
**PTopSet:
US a01,30:
{(ar01>RpMax)+(ar01=RpMax):
MS DebugMsgStr,ÄwÆΦâyü[âWé¬ì┼æσÆlé≡Æ┤éªé─éóé▄é╖:
~DebugMsgPut DebugMsgStr:
!ar01:0!}
!CurRPage:ar01!
UG a01,30:
~0,0:
**PEndSet:
{ CurRPage\0:!RpFlag[CurRPage]:TRUE!}
~0,0:
;================================================================================
*SSCom: ~PlayCd ar01,ar02: \0:
*SPCom: ~PlayPcm ar01,ar02,FALSE: \0:
*SWCom: ~PlayPcm ar01,ar02,TRUE: \0: