Drip¤Ç¤¹¡£
¡¡¤Þ¤¹¤µ¤ó¡¢¤³¤ó¤Ë¤Á¤Ï¡£VRAM¤ÎľÀÜÁàºî¤Ï½é¿´¼Ô¤Ë¤È¤Ã¤Æ¤Ï¾¯¤·Æñ¤·¤¤¥Æ¡¼¥Þ¤Ç¤¹¤Í¡£
VRAM¤Ë¤Ä¤¤¤Æ´Êñ¤ËÀâÌÀ¤·¤Æ¤ß¤Þ¤¹¡£
VRAM¤Î¾ðÊó¤Ï¡¢mref vram,66¤Ë¤è¤Ã¤Æ¼èÆÀ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ë¤è¤Ã¤ÆÆÀ¤é¤ì¤¿¾ðÊó¤Ï¡¢
²èÌ̤κ¸²¼¤«¤é±¦¾å¤Ë¸þ¤«¤Ã¤Æ¡¢ÀÄ¡¢ÎС¢ÀÖ¡¢ÀÄ¡¢ÎС¢ÀÖ¡¥¡¥¡¥¤Î½ç¤Ç¿§¤Î¾ðÊ󤬳ÊǼ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤Þ¤¿¡¢¿ôÃͤÏ1¥Ð¥¤¥Èñ°Ì¤Ê¤Î¤Ç¡¢°·¤¦¤¿¤á¤Ë¤ÏÇÛÎ󻲾Ȥò¹Ô¤¦¤«peek¤Ë¤è¤Ã¤Æ¼è¤ê½Ð¤¹¤·¤«¤¢¤ê¤Þ¤»¤ó¡£
¡¡hiroki¤µ¤ó¤Î¥µ¥ó¥×¥ë¤Ï¾¯¤·°ÕÌ£¤¬¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢peek¤ò»ÈÍѤ¹¤ëÊýË¡¤Ïpget,pset¤ÎÊýË¡¤è¤ê
Ìó£²ÇÜÄøÅÙ¤·¤«¹â®²½¤Ç¤¤Þ¤»¤ó¡£µæ¶Ë¤Ê¤Î¤Ï¡¢VRAM¤ËľÀÜÇÛÎ󻲾Ȥò¹Ô¤¤¥Ó¥Ã¥È±é»»¤ò¹Ô¤¦¤³¤È¤Ç¤¹¡£
¹°è¤Î¥á¥â¥êÁàºîÌ¿Îá¤ò»ÈÍѤ¹¤ë¤Î¤â͸ú¤Ç¤¹¡£¤³¤ì¤Ê¤é¤Ð¶²¤í¤·¤¤Äø¤Î½èÍý¤Î¹â®²½¤¬´üÂԤǤ¤Þ¤¹¡£
¤·¤«¤·¤³¤ÎÊýË¡¤Ï¡¢¥¢¥ë¥´¥ê¥º¥à¤Ë¤è¤Ã¤Æ¸Â¤é¤ì¤¿¾õ¶·²¼¤Ç¤·¤«¹Ô¤¨¤Ê¤¤»ö¤¬Â¿¤¤¤Ç¤¹¡£
¡¡¥Ó¥Ã¥È±é»»¤Ë¤è¤ë½èÍý¤Ï¥±¡¼¥¹¥Ð¥¤¥±¡¼¥¹¤Ë¤è¤ë¾¯¤·Æñ¤·¤¤¥×¥í¥°¥é¥à¤ò½ñ¤¯É¬Íפ¬¤¢¤ë¤Î¤Ç
º£²ó¤ÏÃÖ¤¤¤Æ¤ª¤¯¤È¤·¤Æ¡¢VRAM¤ò»ÈÍѤ·¤¿ºÇ¤â´ðËÜŪ¤Ê¥µ¥ó¥×¥ë¤ò°Ê²¼¤ËÍÑ°Õ¤·¤Þ¤·¤¿¡£
¾°¡¢¤³¤Î¥µ¥ó¥×¥ë¤ÏVRAM¤Î°ÕÌ£¤òÍý²ò¤¹¤ë¤¿¤á¤Î¥µ¥ó¥×¥ë¤Ç¤¢¤ê¡¢
¶¯ÎϤʹ⮲½¥¢¥ë¥´¥ê¥º¥à¤òɽ¤¹¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£VRAM¤Î¸¦µæºàÎÁ¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
x=32 //ÀÖ¤¤ÅÀ¤òÂǤĺÂɸ
y=24
screen 0,256,256 //¥³¥Ô¡¼¸µ¥¦¥£¥ó¥É¥¦
color 255:pset x,y
mref vramA,66
screen 3,ginfo_winx,ginfo_winy //¥³¥Ô¡¼À襦¥£¥ó¥É¥¦
mref vramB,66
p=((ginfo_winy-1-y)*ginfo_winx+x)*3 //¸¡½Ð¤¹¤Ù¤ºÂɸ¤ò¼èÆÀ
//ºÂɸ¤Ï¡¢²èÌ̺¸²¼¤«¤é±¦¾å¤Ë¸þ¤«¤Ã¤Æ
//ÀÄ¡¢ÎС¢À֤νç¤Ë1¥Ð¥¤¥È¤º¤Ä³ÊǼ¤µ¤ì¤Æ¤¤¤ë¡£
b=peek(vramA,p) //screen0¤ËÂǤä¿ÅÀ¤Î¿§¤ò¼è¤ê½Ð¤¹
g=peek(vramA,p+1)
r=peek(vramA,p+2)
poke vramB,p,b //screen3¤Ëscreen0¤ËÂǤä¿ÅÀ¤ÈƱ¤¸°ÌÃÖ¤ËƱ¤¸¿§¤ÎÅÀ¤òÂǤÄ
poke vramB,p+1,g
poke vramB,p+2,r
redraw 1
¾¯¤·Æñ¤·¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¤¬¤ó¤Ð¤Ã¤Æ¤¯¤À¤µ¤¤¡£