HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2012
0905
¤Æ¤ó¥×¥í¥°¥é¥à¤Î®ÅÙ¸þ¾å¤Î¤¿¤á¤Î¾®¥ï¥¶6²ò·è


¤Æ¤ó

¥ê¥ó¥¯

2012/9/5(Wed) 20:03:41|NO.49158

¤³¤ó¤Ë¤Á¤Ï¡¡ºÇ¶áÏ¢Å굤̣¤Î¤Æ¤ó¤Ç¤¹¡£

ÊÌ¥¹¥ì¤Ë¤Æ¿ʬ´ô¹½Â¤¤Î¹â®²½¤Ë¤Ä¤¤¤Æ¤ò¥Æ¡¼¥Þ¤Ë¤·¤Þ¤·¤¿¤¬¡¢Â¾¤Ë¤â³§Íͤ¬½èÍý®ÅÙ¸þ¾å¤Î¤¿¤á¤Ë
»È¤Ã¤Æ¤¤¤ë¾®¥ï¥¶¤Ê¤É¤¬Í­¤ê¤Þ¤·¤¿¤é¡¢¤³¤Î¾ì¤Ç¶¦Í­¤Ç¤­¤¿¤é¤Ê¤È»×¤¤¤³¤¦¤¤¤Ã¤¿¥¹¥ì¤òºî¤ê¤Þ¤·¤¿¡£

¤Þ¤¿¡¢Â¿Ê¬´ô¹½Â¤¤Î¤è¤¦¤Ë¡¢ÍÍ¡¹¤Êɽµ­¤ÎÊýË¡¤¬¤¢¤ë¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ¡¢¤É¤Îɽµ­¤¬ºÇ¤â¹â®¤Ê¤Î¤«
¤Ë¤Ä¤¤¤Æ¤â¤¤¤í¤¤¤í¸¡¾Ú¤·¤ÆÊó¹ð¤¹¤ë¤è¤¦¤Ê¥¹¥ì¤Ë¤Ç¤­¤¿¤é¤È»×¤¤¤Þ¤¹¡£



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


¤Æ¤ó

¥ê¥ó¥¯

2012/9/5(Wed) 20:09:22|NO.49159

¢£ +1¡¡¤Îɽµ­¤Ë¤Ä¤¤¤Æ

ÊÑ¿ô¤Ë1¤ò­¤¹»þ¤Î½ñ¤­Êý¤Ë¤Ä¤¤¤Æ¤Ç¤¹¡£
¤ª¤½¤é¤¯°Ê²¼¤Î3¥Ñ¥¿¡¼¥ó¤¬¤¢¤ë¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«
­¡¡¡a = a+1
­¢¡¡a += 1
­£¡¡a ++
¤³¤Î3¤Ä¤Ç®ÅÙ¤¬ÊѤï¤ë¤Î¤«¼Â¸³¤·¤Þ¤·¤¿¡£¥Æ¥¹¥È¥¹¥¯¥ê¥×¥È¤Ï°Ê²¼¤Î¤È¤ª¤ê

//Test Start t_start = (gettime(5)*60+gettime(6))*1000+gettime(7) repeat 1000000 gosub *test loop t_end = (gettime(5)*60+gettime(6))*1000+gettime(7) //Result dialog (t_end - t_start) end *test a = 0 a = a+1 return

ÍפÏ100Ëü²ó­¤·»»¤ò·«¤êÊÖ¤¹¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£·ë²Ì¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£(ñ°Ì:ms)

a= a+1 : 1024 1043 1032 a += 1 : 855 831 842 a ++ : 725 742 736

¤È¤¤¤¦¤ï¤±¤Ç¡¢°ìÈÖÁ᤯·×»»¤Ç¤­¤¿¤Î¤Ï¡¡a++ ¤Îɽµ­Ë¡¤Ç¤·¤¿¡£
»ÅÁȤߤϤ֤äÁ¤ã¤±¤ï¤«¤Ã¤Æ¤ª¤ê¤Þ¤»¤ó¡£¤É¤Ê¤¿¤«¾Ü¤·¤¤Êý¤¬²òÀ⤷¤Æ¤¯¤ì¤ë¤È»×¤ï¤ì¡£


­¤·»»¤Ç¤â¤³¤ó¤Ê¤Ëº¹¤¬½Ð¤ë¤ó¤À¤Ê¤¡¤È¤¤¤¦ÏäǤ·¤¿¡£



y.tack

¥ê¥ó¥¯

2012/9/5(Wed) 20:18:54|NO.49160

OPEN HSP¤È¤«¤Á¤ç¤Ã¤ÈÇÁ¤¤¤¿¤À¤±¤Ç¤¹¤±¤ÉHSP¤Î¼Â¹ÔŪ¤Ë¹Í¤¨¤Æ
a=a+1
a+1¤ò¼Â¹Ô¤·Ãͤò¤É¤Ã¤«¤Ë¤ª¤¤¤Æa¤ËÂåÆþ
a+=1
a¤òÂоݤˤ·¤Æ²Ã»»
º¹¤Ï¤¿¤Ö¤ó°ì²ó¤É¤Ã¤«¤ËÃÖ¤¤¤È¤¯Ê¬
a++
a+=1
¤È¤Îº¹¤Ï1¤È¤¤¤¦¿ôÃͤòCPU¤ËÆɤ߹þ¤àʬ
¥¢¥»¥ó¥Ö¥é¤Ç¤â++¤ÎÌ¿Îá¤ÏÀìÍѤˤ¢¤ë¤Ï¤º

ÀÛ¤¤²òÀâ¤Ç¿½¤·Ìõ¤Ê¤¤
¤Ç¤â¤É¤¦¤ä¤Ã¤Æ¼Â¹Ô¤¹¤ë¤«¹Í¤¨¤¿¤é
ÃÙ¤¤½ç¤Ë¤ä¤Ã¤Æ¤ë¤³¤È¤¬Â¿¤¤¤ÈͽÁÛ¤µ¤ì¤Þ¤¹



y.tack

¥ê¥ó¥¯

2012/9/5(Wed) 20:39:46|NO.49162

HSPTV!ÍÑ¥¹¥¯¥ê¥×¥È¤ò½ñ¤¤¤Æ¤ë¤È
·«¤êÊÖ¤·»þ¤ËÁªÂò¤Ç¤É¤ì¤¯¤é¤¤size¤¬°ã¤¦¤«µ¿Ìä¤Ë»×¤Ã¤Æ¤¿¤ó¤ÇÄ´¤Ù¤Æ¤ß¤Þ¤·¤¿

#cmpopt optprm 0 repeat 10 mes cnt loop
start.ax¤Îsize 142byte

#cmpopt optprm 0 i=0 for i,0,10 mes i next
start.ax¤Îsize 198byte

#cmpopt optprm 0 i=0 while i<10 mes i i++ wend
start.ax¤Îsize 196byte

¤ä¤Ñ¤êrepeat¤¬°ìÈÖ¾®¤µ¤¤¤Ç¤¹¤Í
¤Ç¤âfor¤Èwhile¤¬Â礭¤µ¤Û¤ÜƱ¤¸¤Ê¤Î¤Ï°Õ³°¤Ç¤¹
¡Êº¹¤¬¤Ä¤¯¤È»×¤Ã¤¿¡Ë



y.tack

¥ê¥ó¥¯

2012/9/5(Wed) 20:46:25|NO.49163

³¤­¤Þ¤·¤Æa=a+1¤Èa+=1¤Èa++¤Îsize¤Î°ã¤¤¤òÄ´¤Ù¤Æ¤ß¤Þ¤·¤¿

#cmpopt optprm 0 a=0 a=a+1 mes a
start.ax¤Îsize 154byte

#cmpopt optprm 0 a=0 a+=1 mes a
start.ax¤Îsize 146byte

#cmpopt optprm 0 a=0 a++ mes a
start.ax¤Îsize 142byte



ridanlue

¥ê¥ó¥¯

2012/9/5(Wed) 21:01:12|NO.49164

0¤Èn¤ò¸ò¸ß¤ËÆÀ¤ë·×»»

a=n-a // ¥È¥í¤¤. ¤¿¤À¤·n¤¬¼Â¿ô¤Ç¤â»È¤¨¤ë a=a xor n // ¶Ïº¹¤Çn-a¤è¤ê®¤¤ a^=n // ºÇ® a^n // Ʊ¤¸¤¯ºÇ®¤À¤¬¡¢¾å¼ê¤¯Æ°¤«¤Ê¤¤¤³¤È¤â?



¡Ê¡­¦Ø¡®¡Ë

¥ê¥ó¥¯

2012/9/6(Thu) 15:59:13|NO.49173

ÈÆÍÑŪ¤Ë¼Â¹Ô®ÅÙ¤ò¬¤ë¥½¡¼¥¹¤òºî¤Ã¤Æ¤ß¤Þ¤¹¤¿¡£
Ä´¤Ù¤Æ¤ß¤¿¤¤¥½¡¼¥¹¤ò£µ²ó¡¢£±Éôֳ֤Ǽ¹Ԥ·¤ÆÊ¿¶Ñ¤ò½Ð¤·¤Þ¤¹¡£¡Ê¡­¦Ø¡®¡Ë


#uselib "kernel32.dll" #func global GetTickCount "GetTickCount" screen 0, 640, 480, , (ginfo(20)-640)/2, (ginfo(21)-480)/2 dim rs, 5 repeat 5 wait 100 gettickcount : ts = stat repeat 1000000 //========== ¤³¤Î¥ë¡¼¥×Æâ¤Ë½èÍý¤ò½ñ¤¯ //========== ¤³¤³¤Þ¤Ç loop gettickcount : te = stat mes "start: "+str(ts)+" / end: "+str(te)+"\nelapsed: "+str(te - ts)+"\n" rs(cnt) = te-ts loop ave = (double(rs(0))+double(rs(1))+double(rs(2))+double(rs(3))+double(rs(4)))/5 mes "Ave. "+str(ave)



ONION software Copyright 1997-2023(c) All rights reserved.