home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 5
/
FREESOFT.BIN
/
fb386
/
cdfinf
/
cdtype.bas
< prev
Wrap
BASIC Source File
|
1992-08-19
|
2KB
|
41 lines
10 '********************************************************************
20 ' Super CD Infomation Editor V1.00 By.おこめ
30 '********************************************************************
40 CLEAR ,,512,1000000,0:DEFINT A-Z:STOP OFF
50 ON ERROR GOTO *ERR
60 COLOR 7,0,7,4:WIDTH 80,25:CONSOLE 0,25,0
70 DIM A$(100),A(200),B(200),C(200),D(10),T&(200),AD&(40000)
80 OPEN "R",#1,"(64)CDINF.DAT"
90 FIELD #1,4 AS AD$,1 AS A$(1),1 AS A$(2),1 AS A$(3),1 AS A$(4),1 AS A$(5),1 AS A$(6),4 AS KAD$,50 AS NA$
100 FIELD #1,4 AS AD$,4 AS KA$,1 AS KN$,1 AS KM$,1 AS KS$,1 AS KH$,52 AS KNA$
110 FIELD #1,64 AS ALS$
120 SCREEN@0
130 LOCATE 24,12:PRINT "CD Infomation EDITOR"
140 WAIT 100:CLS:F&=1:F2&=0
150 GET #1,F&:AD&(F2&)=F&
160 PRINT CVL(AD$)
170 PRINT "種類";ASC(A$(1))
180 PRINT USING "##分##秒##";ASC(A$(2)),ASC(A$(3)),ASC(A$(4))
190 PRINT ASC(A$(5));"曲"
200 PRINT ASC(A$(6));" GOOD No"
210 PRINT CVL(KAD$)
220 PRINT NA$
230 GOSUB *KYOKU
240 IF PAD(1) THEN 240
250 A$=INKEY$:OU=PAD(1):OU2=PTRIG(1):IF A$="" AND OU=0 AND OU2=0 THEN 250
260 IF (OU=1 OR A$="8") AND CVL(AD$)>0 THEN F&=CVL(AD$):F2&=F2&+1
270 IF (OU=5 OR A$="2") AND F&>1 THEN F2&=F2&-1:F&=AD&(F2&)
280 IF (OU2=4 OR A$="E") THEN 340
290 IF (OU2=2 OR A$="5") THEN 350
300 CLS:GOTO 150
310 *KYOKU I&=CVL(KAD$)
320 IF I&=0 THEN GET #1,F&:RETURN ELSE GET #1,I&
330 PRINT USING "## ##:##:## ";ASC(KN$),ASC(KM$),ASC(KS$),ASC(KH$);:PRINT KNA$:I&=CVL(AD$):GOTO 320
340 IF PTRIG(1)=0 THEN STOP ON:END ELSE 340
350 *並べ替え
360 GET #1,F&:IF CVL(AD$)>0 THEN T1$=ALS$:AS$=AD$:GET #1,CVL(AS$):AS2$=AD$ ELSE BEEP:CLS:GOTO 150
370 LSET AD$=AS$:PUT #1,F&:LSET ALS$=T1$:LSET AD$=AS2$:PUT #1,CVL(AS$)
380 CLS:GOTO 150
390 *ERR PRINT "ERROR ";ERR;"(";ERL;")"
400 END