¤Ä¤¤¤Ç¤Ê¤Î¤Ç¥Ù¥ó¥Á¤â¹¹¿·¤·¤È¤¯¤Í¡£
mes "wait..."
wait 100
mv=5
t1=time()
repeat 2000000
stick a,15,1
px+=(((a&%0100)!0)-((a&%0001)!0))*mv: py+=(((a&%1000)!0)-((a&%0010)!0))*mv
loop
t2=time(): mes "ÏÀÍý¼°¡§"+(t2-t1)
t1=time()
repeat 2000000
stick a,15,1
if a&1:px-=mv
if a&2:py-=mv
if a&4:px+=mv
if a&8:py+=mv
loop
t2=time(): mes "IFʸ¡§"+(t2-t1)
mes "ok"
stop
#defcfunc time
return (gettime(5)*60000)+(gettime(6)*1000)+gettime(7)
¥«¡¼¥½¥ë¥¡¼Á´²¡¤·¤À¤È px-=mv Åù¤Î½èÍý¤¬È¯À¸¤¹¤ë¤Î¤Çif¤ÎÉ餱¡£
²¿¤â²¡¤·¤Æ¤Ê¤¤¤ÈÏÀÍý¼°¤Î¾¡¤Á¡£
¤Ç¤â200Ëü²ó¥ë¡¼¥×¤Î·ë²Ì¤Ç¤¹¤«¤é¡¢¸íº¹¤ß¤¿¤¤¤Ê¤â¤ó¤Ç¤¹¡£
ÂçÀΤÎBASIC¤Ç¤Ï¤³¤Î¸íº¹¤ß¤¿¤¤¤Ê®ÅÙº¹¤¬ÌäÂê¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤Ã¤¿¤Î¤Ç
®ÅÙ¤ò°ÂÄꤵ¤»¤ë°ÕÌ£¤Ç¤âÏÀÍý¼°¤Ë¤·¤Æ¤¤¤¿¤À¤±¤Ç¤¹¡£
(Áàºî¤ò¤·¤Æ¤ë¤È¤¤À¤±¶Ï¤«¤ËÃÙ¤¯¤Ê¤ë¤Î¤Ç½èÍýÍî¤Á¤·¤Æ¤ë¤è¤¦¤Ë´¶¤¸¤ë»ö¤¬¤¢¤Ã¤¿)
º£¤Î´Ä¶¡ÊHSP¡Ë¤Ç¤Ï;͵¤¬¤¢¤Ã¤Æ await ¤Ç¥¦¥¨¥¤¥È¤òÆþ¤ì¤Æ¤ë¤ï¤±¤Ç¤¹¤«¤é
¼ÂÍѾå¤Ï¤¢¤Þ¤êµ¤¤Ë¤¹¤ëɬÍפÏ̵¤µ¤½¤¦¤Ç¤¹¡£