home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
sin-source
/
copmaker.bas
(
.txt
)
< prev
next >
Wrap
AmigaBASIC Source Code
|
1995-03-17
|
905b
|
39 lines
nt=1
OPEN "df2:cop.s" FOR OUTPUT AS 1
FOR g=&H2c TO &Hc7
LOCATE 1,1
PRINT INT((g-&H2c)/(&Hc7-&H2c)*100);"% "
READ a$
IF a$="ffff" THEN RESTORE: READ a$
PRINT #1, "dc.w $";HEX$(g);"09,$fffe,$180,";
PRINT #1,"$";a$;",$186,$";a$;",$184,$";
a=VAL("&h"+a$)
a1=INT(a/256)
a=a-a1*256
a2=INT(a/16)
a=a-a2*16
a3=INT(a/2)
a1=INT(a1/2)
a2=INT(a2/2)
a=a1*256+a2*16+a3
a$=HEX$(a)
IF nt=0 THEN PRINT #1,a$
IF nt=1 THEN PRINT #1,"0"
nt=1-nt
NEXT g
CLOSE
DATA 1f,2f,3f,4f,5f,6f,7f,8f,9f,af,bf,cf,df,ef,ff
DATA fe,fd,fc,fb,fa,f9,f8,f7,f6,f5,f4,f3,f2,f1,f0
DATA 1f0,2f0,3f0,4f0,5f0,6f0,7f0,8f0,9f0,af0,bf0,cf0,df0,ef0,ff0
DATA fe0,fd0,fc0,fb0,fa0,f90,f80,f70,f60,f50,f40,f30,f20,f10,f00
DATA f01,f02,f03,f04,f05,f06,f07,f08,f09,f0a,f0b,f0c,f0d,f0e,f0f
DATA e0f,d0f,c0f,b0f,a0f,90f,80f,70f,60f,50f,40f,30f,20f,10f,f
DATA ffff