2008 T050092
|
|
- きゅういち かやぬま
- 5 years ago
- Views:
Transcription
1 T C++ cpp devkitpro( )msys( ) nds NO$GBA microsd ( )
2 2008 T050092
3 ARM msys devkitpro NO$GBA M3REAL VIDEO VRAM i i videosetmode i VRAM Bank ii vi demo.cpp vi sky.cpp vi apple.cpp vii game.cpp ix i
4 : 2 ARM CPU nds WindowsXP 1
5 Professional Version 2002 Service Pack ARM CPU ARM( ) ARM ARM Acorn RISC Machine ARM 32bit CPU ARM ARM 10 ARM7 ARM9 ipod ARM 2.2 msys devkitpro ARM ARM devkitpro[5] devkitpro devkitpro Windows MSYS(Minimal SYStem)[4] Cygwin devkitpro MSYS C++ cpp nds devkitpro devkitppc devkitpsp 2.3 NO$GBA M3REAL nds ( ) R4 Revolution for DS 2
6 M3REAL[6] 2 microsd nds microsd microsd microsd M3REAL Web microsd microsd 2GB 2: M3REAL microsd M3REAL R4 Revolution for DS microsd nds NO$GBA[7] ( ) gba gba no$gba-w NO$GBA.EXE nds 3
7 2.4 devkitpro sample Makefile source filename.c filename.cpp Makefile make nds nds Makefile NO$GBA microsd nds M3REAL devkitpro/examples/graphics/2d/ hello_word hello 3 3: hello word.nds C++ nds 4
8 nds demo.cpp (.h ) [ 1] #include <nds.h> [ 2] #include <stdio.h> 2 stdio.h C printf 1 nds.h nds devkitpro nds C:/devkitPro/nds nds.h VIDEO nds videosetmode videosetmode 1 [ 6] videosetmode(0); [ 7] videosetmodesub(mode_0_2d DISPLAY_BG0_ACTIVE); 6 videosetmode (0) 7 videosetmodesub 1 text Mode 0 BG VRAM VRAM VRAM Video Random Access Memory RAM(Random Access Memory) [9] 5
9 [ 8] vramsetbankc(vram_c_sub_bg); [ 9] SUB_BG0_CR = BG_MAP_BASE(31); VRAM Bank C [11] BG_PALETTE_SUB[255] = RGB15(31,31,31); BG PALETTE SUB RGB15 15bit RGB 5bit RGB15(31, 31, 31) [13] consoleinitdefault((u16*)screen_base_block_sub(31), (u16*)char_base_block_sub(0), 16); [17] touchposition touchxy = touchreadxy(); [18] printf(" x1b[10;0h"); [19] printf("touch x = %d \n", touchxy.px); [20] printf("touch y = %d \n", touchxy.py); 17 touchposition TouchXY touchxy.px x touchxy.py y printf 3.2 png.o.h devkitpro grit grit GBA Raster Image Transmogrifier 6 5: skyimg.png
10 4: demo.nds Raster Image Windows Adobe Photoshop 5 256px 192px sky Makefile source sky.cpp data skyimg.png skyimg.grit skyimg.png sky.png grit 7
11 /* skyimg.grit */ [ 1] # disable alpha and set opaque bit for all pixels [ 2] -gt! [ 3] [ 4] # 16 bit bitmap [ 5] -gb16 [ 6] [ 7] # bitmap format [ 8] -gb skyimg.png 16 Makefile grit png sky.cpp grit [ 2] #include "skyimg.h" skyimg.h #define skyimgbitmaplen extern const unsigned int skyimgbitmap[24576]; int skyimgbitmap [ 4] void skyimg(){ [ 5] for(int i=0;i<256*192;i++){ [ 6] ((u16*)bg_bmp_ram(0))[i] = ((u16*)skyimgbitmap)[i] BIT(15); [ 7] } [ 8] } for [11] videosetmode(mode_5_2d DISPLAY_BG3_ACTIVE); [12] videosetmodesub(0); [13] vramsetmainbanka(vram_a_main_bg_0x ); 8
12 videosetmode 1 MODE5 BG3 ACTIVE Extended Extended vramsetmainbank 2 0x VRAM [15] BG3_CR=BG_BMP16_256x256 BG_BMP_BASE(0); [16] BG3_YDX = 0; [17] BG3_XDX = 1 << 8; [18] BG3_XDY = 0; [19] BG3_YDY = 1 << 8; [20] BG3_CX = 0; [21] BG3_CY = 0; grit 16px 15 BG BMP BASE(0) 32 BASE BASE : sky.nds 9
13 : 9: appleimg.png 8: treeimg.png [ 8] [ 9] Photoshop sky.png 256px 192px 32px 32px 32px 64px 10
14 apple Makefile source apple.cpp data appleimg.png appleimg.grit treeimg.png treeimg.grit sky grit appleimg.png grit /* appleimg.grit */ [ 1] # disable alpha and set opaque bit for all pixels [ 2] #-gt! [ 3] [ 4] # 16 bit bitmap [ 5] -gb8 [ 6] [ 7] # bitmap format [ 8] -gt [ 9] [10] # transparent white [11] -gtff00ff grit transparent white RGB FF00FF(16 ) [??] grit #define appleimgtileslen 2048 extern const unsigned int appleimgtiles[512]; #define appleimgpallen 512 extern const unsigned short appleimgpal[256]; grit appleimgtiles appleimgpal 11
15 6.2.3 apple.cpp [ 11] SpriteEntry sprites[128]; [ 12] pspriterotation spriterotations=(pspriterotation)sprites; [ 13] void copysprites(void){ [ 14] swicopy(appleimgpal, SPRITE_PALETTE, 256); [ 15] swicopy(appleimgtiles, SPRITE_GFX, 32*32*12/2); [ 16] } OAM(Object Attribute Memory) [ 17] void initsprites(void){ [ 18] for(int i=0; i<128; i++){ [ 19] sprites[i].attribute[0] = ATTR0_DISABLED; [ 10] sprites[i].attribute[1] = 0; [ 21] sprites[i].attribute[2] = 0; [ 22] sprites[i].attribute[3] = 0; [ 23] } [ 24] } OAM OAM initsprites [ 25] void updateoam(void){ [ 26] DC_FlushRange(sprites, 128*sizeof(SpriteEntry)); [ 27] dmacopy(sprites, OAM, 128*sizeof(SpriteEntry)); [ 28] } updateoam OAM 27 OAM 0X OAM SUB 12
16 [ 30] enum apple{red=0, YELLOW=32}; [ 31] typedef struct tapplecolor{ [ 32] int x, y, px, py, tilenumber; [ 33] bool visible; [ 34] }AppleColor; [ 35] AppleColor applecolor[20]; [ 36] AppleColor* applefield[10][10]; AppleColor OAM AppleColor OAM AppleColor (x y) (px py) (tilenumber) (visible) 20 applecolor(oam sprites ) 20 applefield
17 [ 37] void initializeapplefield(){ [ 38] int i, j; [ 39] for(i=0;i<10;i++){ [ 40] for(j=0;j<10;j++){ [ 41] applefield[i][j]=null; [ 42] } [ 43] } [ 44] applecolor[0].visible=false; [ 45] for(i=0;i<10;i++){ [ 46] AppleColor apple; [ 47] apple.visible=true; [ 48] apple.x=i+1; [ 49] apple.px=i*24; [ 50] [ 51] apple.tilenumber=red; [ 52] apple.y=1; [ 53] apple.py=0; [ 54] applecolor[i+1]=apple; [ 55] applefield[apple.x][apple.y]=&applecolor[i+1]; [ 56] [ 57] apple.tilenumber=yellow; [ 58] apple.y=2; [ 59] apple.py=1*24; [ 60] applecolor[i+10+1]=apple; [ 61] applefield[apple.x][apple.y]=&applecolor[i+10+1]; [ 62] } [ 63] } initializeapplefield applefield y=1 y= applecolor 1 14
18 [ 65] void updateapplecoloroam(){ [ 66] for(int i=0;i<33;i++){ [ 67] AppleColor apple=applecolor[i]; [ 68] if(apple.visible){ [ 69] sprites[i].attribute[0]=attr0_color_256 OBJ_Y(apple.py); [ 70] sprites[i].attribute[1]=attr1_size_32 OBJ_X(apple.px); [ 71] sprites[i].attribute[2]=apple.tilenumber; [ 72] } [ 73] else sprites[i].attribute[0]=attr0_disabled; [ 74] } [ 75] updateoam(); [ 76] } initializeapplefield() OAM [ 80] videosetmode(mode_5_2d DISPLAY_BG3_ACTIVE DISPLAY_SPR_ACTIVE DISPLAY_SPR_1D_LAYOUT); [ 81] videosetmodesub(mode_0_2d DISPLAY_BG0_ACTIVE); [ 82] vramsetmainbanks(vram_a_main_bg_0x , VRAM_B_MAIN_SPRITE_0x , VRAM_C_LCD, VRAM_D_LCD); sky.cpp videossetmode Extended ACTIVE VRAM VRAM vramsetmainbanks A D VRAM VRAM A ( ) VRAM B VRAM C VRAM D [ 92] treeimg(); [ 93] initsprites(); [ 94] copysprites(); [ 95] initializeapplefield(); [ 96] updateapplecoloroam(); 15
19 [??] 10: apple.nds game Makefile source game.cpp data appleimg.png appleimg.grit treeimg.png treeimg.grit 16
20 apple.cpp game.cpp [ 3] #include <stdlib.h> [ 4] #include <time.h> stdlib.h time.h rand time C++ [ 8] int hours, seconds, minutes, count=0, yellow=0, point=0; [ 9] time t unixtime = time(null); hours seconds minutes 9 count yellow point [ 11] int timecount(){ [ 12] unixtime = time(null); [ 13] struct tm* timestruct=gmtime((const time_t *)&unixtime); [ 14] hours=timestruct->tm hour; [ 15] minutes=timestruct->tm min; [ 16] seconds=timestruct->tm sec; [ 17] return hours*3600+minutes*60+seconds; [ 18] } [ 40] typedef struct tapplecolor{ [ 41] int x, y, px, py, tilenumber, timestart, timeend, time; [ 42] bool visible,red; [ 43] }AppleColor; AppleColor timestart timeend time 17
21 [ 53] void initializeapplefield(){ [ 97] } [ 98] [ 99] void initializeapplefieldstart(){ [114] initializeapplefield(); [115] } initializeapplefield apple.cpp initializeapplefieldstart initializeapplefield 46 fieldcheck C++ [132] bool kagocheck(int x, int y){ [133] if(x>=8&&x<=10&&y>=4&&y<=10){ [134] return true; [135] } [136] else{ [137] return false; [138] } [139] } true false applemove 18
22 [141] void applemove(applecolor* apple, int x, int y) { [142] if(apple->red){ [143] point=point+100; [144] } [145] else{ [146] point=point-100; [147] yellow--; [148] } [149] applefield[apple->x][apple->y] = NULL; [150] apple->visible=false; [151] count--; [152] } point [154] void applecheck(applecolor* apple){ [155] int time=0, start=0, end=0; [156] if(apple->visible){ [157] end=timecount(); [158] start=apple->timestart; [159] time=end-start; [160] apple->timeend=end; [161] apple->time=time; [162] if(time>=3){ [163] apple->visible=false; [164] apple->timestart=0; [165] apple->timeend=0; [166] apple->time=0; [167] count--; [168] if(!(apple->red)){ [169] yellow--; [170] } [171] } [172] } [173] } 3 timecount timestart 3 19
23 count yellow main [182] poweron(power_all_2d); [183] irqinit(); [184] irqset(irq_vblank, 0); [186] videosetmode(mode_5_2d DISPLAY_BG3_ACTIVE DISPLAY_SPR_ACTIVE DISPLAY_SPR_1D_LAYOUT); [187] videosetmodesub(mode_0_2d DISPLAY_BG0_ACTIVE); [188] vramsetmainbanks(vram_a_main_bg_0x , VRAM_B_MAIN_SPRITE_0x , VRAM_C_SUB_BG, VRAM_D_LCD); [189] lcdmainonbottom(); VRAM A B C D [210] bool isdrag=false; [211] struct Position{ [212] int x, y; [213] } dragposition; [214] dragposition.x=0; [215] dragposition.y=0; AppleColor 20
24 [217] while(1){ [218] te=timecount(); [219] totaltime=te-ts; [220] printf("\x1b[10;0h"); [221] printf(" %i:%i:%i\n", hours, minutes, seconds); [222] printf(" time %5d second\n", totaltime); [223] printf(" point %5d\n", point); [224] if(totaltime>=15){ [225] break; [226] } 15 while break [228] scankeys(); [229] if(!isdrag){ [230] if(keysdown()&key_touch){ [231] for(i=0;i<100;i++){ [232] AppleColor apple=applecolor[i]; [233] if(apple.visible&&(apple.px<=t.px)&&(t.px<=apple.px+24) &&(apple.py<=t.py)&&(t.py<=apple.py+24)){ [234] isdrag=true; [235] applecolor[0]=apple; [236] target=i; [237] applecolor[i].visible=false; [238] dragposition.x=t.px; [239] dragposition.y=t.py; [240] break; [241] } [242] } [243] } [244] } 211 Position 0 21
25 [245] else { [246] AppleColor* apple=&applecolor[target]; [247] if(keysup()&key_touch){ [248] isdrag=false; [249] applecolor[0].visible=false; [250] apple->visible=true; [251] x=(applecolor[0].px+12)/24+1; [252] y=(applecolor[0].py+12)/24+1; [253] if(kagocheck(x, y)){ [254] applemove(apple, x, y); [255] } [256] } KagoCheck applemove [266] if(count<8){ [267] initializeapplefield(); [268] } 7 [269] swiwaitforvblank(); [270] updateapplecoloroam(); [271] } 11 4 updateapplecoloroam 6 [272] consoleinitdefault((u16*)screen_base_block_sub(31), (u16*)char_base_block_sub(0),16); [273] printf("\x1b[10;0h"); [274] printf(" Total Point %5d\n", point); [275] printf("\n\n\n game over\n"); while 22
26 11: game.nds CPU ARM nds.h game.cpp time 23
27 5 [1] [2] ARM -Wikipedia [3] [4] MinGW [5] devkitpro [6] M3REAL [7] NO$GBA [8] NDS/Tutorias Day-Scence Day 3 [9] VRAM - Wikipedia 24
28 videosetmode Main 2D Engine Mode BG0 BG1 BG2 BG3 Mode 0 Text/3D Text Text Text Mode 1 Text/3D Text Text Rotation Mode 2 Text/3D Text Rotation Rotation Mode 3 Text/3D Text Text Extended Mode 4 Text/3D Text Rotation Extended Mode 5 Text/3D Text Extended Extended Mode 6 3D - Large Bitmap - Frame Buffer Direct VRAM display as a bitmap Sub 2D Engine Mode BG0 BG1 BG2 BG3 Mode 0 Text Text Text Text Mode 1 Text Text Text Rotation Mode 2 Text Text Rotation Rotation Mode 3 Text Text Text Extended Mode 4 Text Text Rotation Extended Mode 5 Text Text Extended Extended 1: videosetmode[8] i
29 6.1.2 VRAM Bank Where they can be mapped VRAM Bank A (VRAM A) 128KB libnds Defines 0x (Unmapped) VRAM A LCD (unmapped) 0x (3D texture slot 0) VRAM A TEXTURE (maps to slot 0) 0x (3D texture slot 1) VRAM A TEXTURE SLOT0 0x (3D texture slot 2) VRAM A TEXTURE SLOT1 0x (3D texture slot 3) VRAM A TEXTURE SLOT1 VRAM A TEXTURE SLOT3 0x (Main Background) 0x (Main Background) VRAM A MAIN BG (maps to 0x ) 0x (Main Background) VRAM A MAIN BG 0x x (Main Background) VRAM A MAIN BG 0x VRAM A MAIN BG 0x x (Main Sprite Graphics) VRAM A MAIN BG 0x x (Main Sprite Graphics) VRAM A MAIN SPRITE (maps to 0x ) VRAM A MAIN SPRITE 0x VRAM A MAIN SPRITE 0x : VRAM Bank A[8] ii
30 Where they can be mapped VRAM Bank B (VRAM B) 128KB libnds Defines 0x (Unmapped) VRAM B LCD (unmapped) 0x (3D texture slot 0) VRAM B TEXTURE (maps to slot 0) 0x (3D texture slot 1) VRAM B TEXTURE SLOT0 0x (3D texture slot 2) VRAM B TEXTURE SLOT1 0x (3D texture slot 3) VRAM B TEXTURE SLOT1 VRAM B TEXTURE SLOT3 0x (Main Background) 0x (Main Background) VRAM B MAIN BG (maps to 0x ) 0x (Main Background) VRAM B MAIN BG 0x x (Main Background) VRAM B MAIN BG 0x VRAM B MAIN BG 0x x (Main Sprite Graphics) VRAM B MAIN BG 0x x (Main Sprite Graphics) VRAM B MAIN SPRITE (maps to 0x ) VRAM B MAIN SPRITE 0x VRAM B MAIN SPRITE 0x : VRAM Bank B[8] iii
31 Where they can be mapped VRAM Bank C (VRAM C) 128KB libnds Defines 0x (Unmapped) VRAM C LCD (unmapped) 0x (3D texture slot 0) VRAM C TEXTURE (maps to slot 2) 0x (3D texture slot 1) VRAM C TEXTURE SLOT0 0x (3D texture slot 2) VRAM C TEXTURE SLOT1 0x (3D texture slot 3) VRAM C TEXTURE SLOT1 VRAM C TEXTURE SLOT3 0x (Main Background) 0x (Main Background) VRAM C MAIN BG (maps to 0x ) 0x (Main Background) VRAM C MAIN BG 0x x (Main Background) VRAM C MAIN BG 0x VRAM C MAIN BG 0x x (Sub Background) VRAM C MAIN BG 0x x (ARM7 work memory) VRAM C SUB BG (maps to 0x ) 0x (ARM7 work memory) VRAM C SUB BG 0x : VRAM Bank C[8] VRAM C ARM7 VRAM C ARM7 0x VRAM C ARM7 0x iv
32 Where they can be mapped VRAM Bank D (VRAM D) 128KB libnds Defines 0x (Unmapped) VRAM D LCD (unmapped) 0x (3D texture slot 0) VRAM D TEXTURE (maps to slot 0) 0x (3D texture slot 1) VRAM D TEXTURE SLOT0 0x (3D texture slot 2) VRAM D TEXTURE SLOT1 0x (3D texture slot 3) VRAM D TEXTURE SLOT1 VRAM D TEXTURE SLOT3 0x (Main Background) 0x (Main Background) VRAM D MAIN BG (maps to 0x ) 0x (Main Background) VRAM D MAIN BG 0x x (Main Background) VRAM D MAIN BG 0x VRAM D MAIN BG 0x x (Sub Sprite Graphics) VRAM D MAIN BG 0x x (ARM7 work memory) 0x (ARM7 work memory) VRAM D SUB SPRITE VRAM D ARM7 (maps to 0x ) VRAM D ARM7 0x VRAM D ARM7 0x : VRAM Bank D[8] v
33 demo.cpp /* demo.cpp */ [ 1] #include <nds.h> [ 2] #include <stdio.h> [ 3] [ 4] int main(void) [ 5] { [ 6] videosetmode(0); [ 7] videosetmodesub(mode_0_2d DISPLAY_BG0_ACTIVE); [ 8] vramsetbankc(vram_c_sub_bg); [ 9] SUB_BG0_CR = BG_MAP_BASE(31); [10] [11] BG_PALETTE_SUB[255] = RGB15(31,31,31); [12] [13] consoleinitdefault((u16*)screen_base_block_sub(31), (u16*)char_base_block_sub(0), 16); [14] [15] printf("\n\n\thello World!\n"); [16] while(1){ [17] touchposition touchxy = touchreadxy(); [18] printf("\ x1b[10;0h"); [19] printf("touch x = %d \n", touchxy.px); [20] printf("touch y = %d \n", touchxy.py); [21] } [22] return 0; [23] } sky.cpp /* sky.cpp */ [ 1] #include <nds.h> [ 2] #include "skyimg.h" [ 3] [ 4] void skyimg(){ [ 5] for(int i=0;i<256*192;i++){ [ 6] ((u16*)bg_bmp_ram(0))[i] = ((u16*)skyimgbitmap)[i] BIT(15); [ 7] } [ 8] } [ 9] vi
34 [10] int main(void){ [11] videosetmode(mode_5_2d DISPLAY_BG3_ACTIVE); [12] videosetmodesub(0); [13] vramsetmainbanka(vram_a_main_bg_0x ); [14] [15] BG3_CR=BG_BMP16_256x256 BG_BMP_BASE(0); [16] BG3_YDX = 0; [17] BG3_XDX = 1 << 8; [18] BG3_XDY = 0; [19] BG3_YDY = 1 << 8; [20] BG3_CX = 0; [21] BG3_CY = 0; [22] [23] skyimg(); [24] return 0; [25] } apple.cpp /* apple.cpp */ [ 1] #include <nds.h> [ 2] #include "appleimg.h" [ 3] #include "treeimg.h" [ 4] [ 5] void treeimg(){ [ 6] for(int i=0;i<256*192;i++){ [ 7] ((u16*)bg_bmp_ram(0))[i] = ((u16*)treeimgbitmap)[i] BIT(15); [ 8] } [ 9] } [ 10] [ 11] SpriteEntry sprites[128]; [ 12] pspriterotation spriterotations=(pspriterotation)sprites; [ 13] void copysprites(void){ [ 14] swicopy(appleimgpal, SPRITE_PALETTE, 256); [ 15] swicopy(appleimgtiles, SPRITE_GFX, 32*32*12/2); [ 16] } [ 17] void initsprites(void){ [ 18] for(int i=0; i<128; i++){ [ 19] sprites[i].attribute[0] = ATTR0_DISABLED; [ 10] sprites[i].attribute[1] = 0; [ 21] sprites[i].attribute[2] = 0; [ 22] sprites[i].attribute[3] = 0; vii
35 [ 23] } [ 24] } [ 25] void updateoam(void){ [ 26] DC_FlushRange(sprites, 128*sizeof(SpriteEntry)); [ 27] dmacopy(sprites, OAM, 128*sizeof(SpriteEntry)); [ 28] } [ 29] [ 30] enum apple{red=0, YELLOW=32}; [ 31] typedef struct tapplecolor{ [ 32] int x, y, px, py, tilenumber; [ 33] bool visible; [ 34] }AppleColor; [ 35] AppleColor applecolor[20]; [ 36] AppleColor* applefield[10][10]; [ 37] void initializeapplefield(){ [ 38] int i, j; [ 39] for(i=0;i<10;i++){ [ 40] for(j=0;j<10;j++){ [ 41] applefield[i][j]=null; [ 42] } [ 43] } [ 44] applecolor[0].visible=false; [ 45] for(i=0;i<10;i++){ [ 46] AppleColor apple; [ 47] apple.visible=true; [ 48] apple.x=i+1; [ 49] apple.px=i*24; [ 50] [ 51] apple.tilenumber=red; [ 52] apple.y=1; [ 53] apple.py=0; [ 54] applecolor[i+1]=apple; [ 55] applefield[apple.x][apple.y]=&applecolor[i+1]; [ 56] [ 57] apple.tilenumber=yellow; [ 58] apple.y=2; [ 59] apple.py=1*24; [ 60] applecolor[i+10+1]=apple; [ 61] applefield[apple.x][apple.y]=&applecolor[i+10+1]; [ 62] } [ 63] } viii
36 [ 64] [ 65] void updateapplecoloroam(){ [ 66] for(int i=0;i<33;i++){ [ 67] AppleColor apple=applecolor[i]; [ 68] if(apple.visible){ [ 69] sprites[i].attribute[0]=attr0_color_256 OBJ_Y(apple.py); [ 70] sprites[i].attribute[1]=attr1_size_32 OBJ_X(apple.px); [ 71] sprites[i].attribute[2]=apple.tilenumber; [ 72] } [ 73] else sprites[i].attribute[0]=attr0_disabled; [ 74] } [ 75] updateoam(); [ 76] } [ 77] [ 78] [ 79] int main(void){ [ 80] videosetmode(mode_5_2d DISPLAY_BG3_ACTIVE DISPLAY_SPR_ACTIVE DISPLAY_SPR_1D_LAYOUT); [ 81] videosetmodesub(mode_0_2d DISPLAY_BG0_ACTIVE); [ 82] vramsetmainbanks(vram_a_main_bg_0x , VRAM_B_MAIN_SPRITE_0x , VRAM_C_LCD, VRAM_D_LCD); [ 83] lcdmainonbottom(); [ 84] BG3_CR=BG_BMP16_256x256; [ 85] BG3_YDX = 0; [ 86] BG3_XDX = 1 << 8; [ 87] BG3_XDY = 0; [ 88] BG3_YDY = 1 << 8; [ 89] BG3_CX = 0; [ 90] BG3_CY = 0; [ 91] [ 92] treeimg(); [ 93] initsprites(); [ 94] copysprites(); [ 95] initializeapplefield(); [ 96] updateapplecoloroam(); [ 97] return 0; [ 98] } game.cpp /* game.cpp */ ix
37 [ 1] #include <stdio.h> [ 2] #include <nds.h> [ 3] #include <stdlib.h> [ 4] #include <time.h> [ 5] #include "treeimg.h" [ 6] #include "appleimg.h" [ 7] [ 8] int hours, seconds, minutes, count=0, yellow=0, point=0; [ 9] time_t unixtime = time(null); [ 10] [ 11] int timecount(){ [ 12] unixtime = time(null); [ 13] struct tm* timestruct=gmtime((const time_t *)&unixtime); [ 14] hours=timestruct->tm_hour; [ 15] minutes=timestruct->tm_min; [ 16] seconds=timestruct->tm_sec; [ 17] return hours*3600+minutes*60+seconds; [ 18] } [ 19] [ 20] SpriteEntry sprites[128]; [ 21] pspriterotation spriterotations=(pspriterotation)sprites; [ 22] void copysprites(void){ [ 23] swicopy(appleimgpal, SPRITE_PALETTE, 256); [ 24] swicopy(appleimgtiles, SPRITE_GFX, 32*32*12/2); [ 25] } [ 26] void initsprites(void) { [ 27] for(int i=0;i<128;i++) { [ 28] sprites[i].attribute[0]=attr0_disabled; [ 29] sprites[i].attribute[1]=0; [ 30] sprites[i].attribute[2]=0; [ 31] sprites[i].attribute[3]=0; [ 32] } [ 33] } [ 34] void updateoam(void) { [ 35] DC_FlushRange(sprites, 128*sizeof(SpriteEntry)); [ 36] dmacopy(sprites, OAM, 128*sizeof(SpriteEntry)); [ 37]} [ 38] [ 39] enum apple{red=0, YELLOW=32}; [ 40] typedef struct tapplecolor{ [ 41] int x, y, px, py, tilenumber, timestart, timeend, time; x
38 [ 42] bool visible,red; [ 43] }AppleColor; [ 44] AppleColor applecolor[100]; [ 45] AppleColor* applefield[10][10]; [ 46] bool fieldcheck(int x,int y){ [ 47] if((y==0&&x==3) (y==1&&x>=1&&x<=4) (y==2&&x>=1&&x<=5) (y>=3&&y<=4&&x<=5) (y>=5&&y<=6&&x>=1&&x<=4)){ [ 48] return true; [ 49] } [ 50] else return false; [ 51] } [ 52] [ 53] void initializeapplefield(){ [ 54] int i, j, n, m, color; [ 55] bool check; [ 56] srand((unsigned) time(null)); [ 57] while(1){ [ 58] n=rand()%10; [ 59] m=rand()%10; [ 60] if(n1==n&&n2==n){ [ 61] srand((unsigned) time(null)); [ 62] } [ 63] check=fieldcheck(n,m); [ 64] if(applefield[n*24][m*24]!=null){ [ 65] check=false; [ 66] } [ 67] AppleColor apple; [ 68] [ 69] if(check){ [ 70] apple.visible=true; [ 71] count++; [ 72] apple.timestart=timecount(); [ 73] apple.x=n+1; [ 74] apple.y=m+1; [ 75] apple.px=n*24; [ 76] apple.py=m*24; [ 77] color=rand()%5; [ 78] if(color==0&&yellow<3){ [ 79] apple.red=false; [ 80] apple.tilenumber=yellow; [ 81] yellow++; xi
39 [ 82] } [ 83] else{ [ 84] apple.red=true; [ 85] apple.tilenumber=red; [ 86] } [ 87] for(i=1;i<=10;i++){ [ 88] if(!(applecolor[i].visible)){ [ 89] break; [ 90] } [ 91] } [ 92] applecolor[i]=apple; [ 93] applefield[n*24][m*24]=&applecolor[i]; [ 94] } [ 95] if(count>=10) break; [ 96] } [ 97] } [ 98] [ 99] void initializeapplefieldstart(){ [100] int i, j, n, m, color; [101] bool check; [102] srand((unsigned) time(null)); [103] for(i=0;i<10;i++){ [104] for(j=0;j<10;j++){ [105] applefield[i][j]=null; [106] } [107] } [108] for(i=0;i<100;i++){ [109] applecolor[i].timestart=0; [110] applecolor[i].timeend=0; [111] applecolor[i].time=0; [112] applecolor[i].visible=false; [113] } [114] initializeapplefield(); [115] } [116] [117] void updateapplecoloroam(){ [118] for(int i=0;i<100;i++){ [119] AppleColor apple=applecolor[i]; [120] if(apple.visible) { [121] sprites[i].attribute[0]=attr0_color_256 OBJ_Y(apple.py); [122] sprites[i].attribute[1]=attr1_size_32 OBJ_X(apple.px); xii
40 [123] sprites[i].attribute[2]=apple.tilenumber; [124] } [125] else{ [126] sprites[i].attribute[0]=attr0_disabled; [127] } [128] } [129] updateoam(); [130] } [131] [132] bool kagocheck(int x, int y){ [133] if(x>=8&&x<=10&&y>=4&&y<=10){ [134] return true; [135] } [136] else{ [137] return false; [138] } [139] } [140] [141] void applemove(applecolor* apple, int x, int y) { [142] if(apple->red){ [143] point=point+100; [144] } [145] else{ [146] point=point-100; [147] yellow--; [148] } [149] applefield[apple->x][apple->y] = NULL; [150] apple->visible=false; [151] count--; [152] } [153] [154] void applecheck(applecolor* apple){ [155] int time=0, start=0, end=0; [156] if(apple->visible){ [157] end=timecount(); [158] start=apple->timestart; [159] time=end-start; [160] apple->timeend=end; [161] apple->time=time; [162] if(time>=3){ [163] apple->visible=false; xiii
41 [164] apple->timestart=0; [165] apple->timeend=0; [166] apple->time=0; [167] count--; [168] if(!(apple->red)){ [169] yellow--; [170] } [171] } [172] } [173] } [174] [175] void treeimg(){ [176] for(int i=0;i<256*192;i++){ [177] ((u16*)bg_bmp_ram(0))[i] = ((u16*)treeimgbitmap)[i] BIT(15); [178] } [179] } [180] [181] int main(void){ [182] poweron(power_all_2d); [183] irqinit(); [184] irqset(irq_vblank, 0); [185] [186] videosetmode(mode_5_2d DISPLAY_BG3_ACTIVE DISPLAY_SPR_ACTIVE DISPLAY_SPR_1D_LAYOUT); [187] videosetmodesub(mode_0_2d DISPLAY_BG0_ACTIVE); [188] vramsetmainbanks(vram_a_main_bg_0x , VRAM_B_MAIN_SPRITE_0x , VRAM_C_SUB_BG, VRAM_D_LCD); [189] lcdmainonbottom(); [190] SUB_BG0_CR = BG_MAP_BASE(31); [191] BG_PALETTE_SUB[255]=RGB15(31, 31, 31); [192] consoleinitdefault((u16*)screen_base_block_sub(31), (u16*)char_base_block_sub(0),16); [193] BG3_CR=BG_BMP16_256x256; [194] BG3_YDX=0; [195] BG3_XDX=1<<8; [196] BG3_XDY=0; [197] BG3_YDY=1<<8; [198] BG3_CX=0; [199] BG3_CY=0; [200] xiv
42 [201] treeimg(); [202] initsprites(); [203] copysprites(); [204] initializeapplefieldstart(); [205] updateapplecoloroam(); [206] [207] int x, y, i, j, target=0, totaltime=0, ts=0, te=0; [208] ts=timecount(); [209] [210] bool isdrag=false; [211] struct Position{ [212] int x, y; [213] } dragposition; [214] dragposition.x=0; [215] dragposition.y=0; [216] [217] while(1){ [218] te=timecount(); [219] totaltime=te-ts; [220] printf("\x1b[10;0h"); [221] printf(" %i:%i:%i\n", hours, minutes, seconds); [222] printf(" time %5d second\n", totaltime); [223] printf(" point %5d\n", point); [224] if(totaltime>=15){ [225] break; [226] } [227] touchposition t=touchreadxy(); [228] scankeys(); [229] if(!isdrag){ [230] if(keysdown()&key_touch){ [231] for(i=0;i<100;i++){ [232] AppleColor apple=applecolor[i]; [233] if(apple.visible&&(apple.px<=t.px)&&(t.px<=apple.px+24) &&(apple.py<=t.py)&&(t.py<=apple.py+24)){ [234] isdrag=true; [235] applecolor[0]=apple; [236] target=i; [237] applecolor[i].visible=false; [238] dragposition.x=t.px; [239] dragposition.y=t.py; [240] break; xv
43 [241] } [242] } [243] } [244] } [245] else { [246] AppleColor* apple=&applecolor[target]; [247] if(keysup()&key_touch){ [248] isdrag=false; [249] applecolor[0].visible=false; [250] apple->visible=true; [251] x=(applecolor[0].px+12)/24+1; [252] y=(applecolor[0].py+12)/24+1; [253] if(kagocheck(x, y)){ [254] applemove(apple, x, y); [255] } [256] } [257] else{ [258] applecolor[0].px=apple->px+t.px-dragposition.x; [259] applecolor[0].py=apple->py+t.py-dragposition.y; [260] } [261] } [262] for(i=1;i<100;i++){ [263] AppleColor* apple=&applecolor[i]; [264] applecheck(apple); [265] } [266] if(count<8){ [267] initializeapplefield(); [268] } [269] swiwaitforvblank(); [270] updateapplecoloroam(); [271] } [272] consoleinitdefault((u16*)screen_base_block_sub(31), (u16*)char_base_block_sub(0),16); [273] printf("\x1b[10;0h"); [274] printf(" Total Point %5d\n", point); [275] printf("\n\n\n game over\n"); [276] return 0; [277] } xvi
2008 DS T050049
DS T050049. PSP DS DS DS RPG DS OS Windows XP DevkiPro OS DS CPU ARM devkitarm MSYS MinGW MSYS MinGW Unix OS C++ C++ make nds nds DS DS micro SD Card nds DS DS DS nds C Java C++ nds nds DS 2008 DS T050049
More information7 i 7 1 2 3 4 5 6 ii 7 8 9 10 11 1 12 13 14 iii.......................................... iv................................................ 21... 1 v 3 6 7 3 vi vii viii ix x xi xii xiii xiv xv 26 27
More information9 i 9 1 2 3 4 5 6 ii 7 8 9 10 11 12 .......................................... iii ... 1... 1........................................ 9 iv... v 3 8 9 3 vi vii viii ix x xi xii xiii xiv 34 35 22 1 2 1
More informationi ii iii iv v vi vii viii ix x xi xii xiii xiv xv xvi 2 3 4 5 6 7 $ 8 9 10 11 12 13 14 15 16 17 $ $ $ 18 19 $ 20 21 22 23 24 25 26 27 $$ 28 29 30 31 $ $ $ 32 33 34 $ 35 $ 36 $ 37 38 39 40 $ 41 42 43 44
More informationdevkitpro msys
2009 RPG T050017 1 1 2 1 2.1 devkitpro msys....................... 1 2.2................................. 2 2.3......................... 2 2.4........... 2 3 3 3.1........................... 3 3.1.1.............................
More informationStep2 入門
ii iii iv v vi NEC Corporation 1999 vii C O N T E N T S PART 1 PART 2 PART 3 viii PART 4 ix C O N T E N T S PART 5 x PART 6 xi C O N T E N T S PART 7 xii PART 8 PART 9 xiii C O N T E N T S xiv xv PART
More information™…
i 1 1 1 2 3 5 5 6 7 9 10 11 13 13 14 15 15 16 17 18 20 20 20 21 22 ii CONTENTS 23 24 26 27 2 31 31 32 32 33 34 37 37 38 39 39 40 42 42 43 44 45 48 50 51 51 iii 54 57 58 60 60 62 64 64 67 69 70 iv 70 71
More information01_SWGuide_V8.50.fm
ii iii iv v 2 vi vii viii ix x xi xii xiii xiv xv xvi xvii 1 CHAPTER 1-1 1-2 1-3 2 CHAPTER 2-1 2-2 2-3 2-4 1 2 2-5 3 4 2-6 5 6 2-7 7 8 2-8 9 2-9 10 11 2-10 12 13 2-11 14 15 2-12 16 17 18 2-13 1 2 2-14
More informationパソコン機能ガイド
PART12 ii iii iv v 1 2 3 4 5 vi vii viii ix P A R T 1 x P A R T 2 xi P A R T 3 xii xiii P A R T 1 2 3 1 4 5 1 6 1 1 2 7 1 2 8 1 9 10 1 11 12 1 13 1 2 3 4 14 1 15 1 2 3 16 4 1 1 2 3 17 18 1 19 20 1 1
More informationパソコン機能ガイド
PART2 iii ii iv v 1 2 3 4 5 vi vii viii ix P A R T 1 x P A R T 2 xi P A R T 3 xii xiii P A R T 1 2 1 3 4 1 5 6 1 2 1 1 2 7 8 9 1 10 1 11 12 1 13 1 2 3 14 4 1 1 2 3 15 16 1 17 1 18 1 1 2 19 20 1 21 1 22
More information困ったときのQ&A
ii iii iv NEC Corporation 1998 v C O N T E N T S PART 1 vi vii viii ix x xi xii PART 2 xiii PART 3 xiv P A R T 1 3 1 2 PART 3 4 2 1 1 2 4 3 PART 1 4 5 5 6 PART 1 7 8 PART 1 9 1 2 3 1 2 3 10 PART 1 1 2
More informationI
I II III IV V VI VII VIII IX X XI XII XIII XIV 1. 2 3 4 5 2. 6 7 8 3. 1 2 3 9 4 5 10 6 11 4. 1 2 3 1 2 12 1 2 3 1 2 3 13 14 1 2 1 15 16 1. 20 1 21 1 22 23 1 2 3 4 24 1 2 ok 25 1 2 26 1 2 3 27 2. 28
More information3 5 18 3 5000 1 2 7 8 120 1 9 1954 29 18 12 30 700 4km 1.5 100 50 6 13 5 99 93 34 17 2 2002 04 14 16 6000 12 57 60 1986 55 3 3 3 500 350 4 5 250 18 19 1590 1591 250 100 500 20 800 20 55 3 3 3 18 19 1590
More informationvi アハ ート2 アハ ート3 アハ ート4 アハ ート5 アハ ート6 アハ ート7 アハ ート8 アハ ート9 アハ ート10 アハ ート11 アハ ート12 アハ ート13 アハ ート14 アハ ート15 アハ ート16 アハ ート17 アハ ート18 アハ ート19 アハ ート20 アハ
iii vi アハ ート2 アハ ート3 アハ ート4 アハ ート5 アハ ート6 アハ ート7 アハ ート8 アハ ート9 アハ ート10 アハ ート11 アハ ート12 アハ ート13 アハ ート14 アハ ート15 アハ ート16 アハ ート17 アハ ート18 アハ ート19 アハ ート20 アハ ート21 アハ ート22 アハ ート23 vii アハ ート 24 アハ ート 25 アハ ート26
More information:30 12:00 I. I VI II. III. IV. a d V. VI
2017 2017 08 03 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF X [ S ] a S S ; X X X, S [, a, ], ; BNF X (parse tree) (1) [a;a] (2) [[a]] (3) [a;[a]] (4) [[a];a] : [a] X 2 222222
More informationC ontents VI VII
I ntroduction C ontents IV V C ontents VI VII C ontents VIII IX C ontents X XI C ontents XII XIII C ontents XIV XV XVI 01 192 193 02 C olumn 194 195 C olumn C olumn 196 197 03 C olumn C olumn C olumn
More information活用ガイド (ハードウェア編)
(Windows 98) 808-877675-122-A ii iii iv NEC Corporation 1999 v vi PART 1 vii viii PART 2 PART 3 ix x xi xii P A R T 1 2 1 3 4 1 5 6 1 7 8 1 9 10 11 1 12 1 1 2 3 13 1 2 3 14 4 5 1 15 1 1 16 1 17 18 1 19
More informationSPP24_Program_WOC(J)-15
9:00-9:10 9:20-10:00 Invited Lecture A1-01-I 1 10:00-10:20 A1-02 3 10:20-10:40 A1-03 5 9:20-9:40 B1-01 7 9:40-10:00 B1-02 9 10:00-10:20 B1-03 11 10:20-10:40 B1-04 13 - i - 11:00-12:00 Plenary Lecture S-01
More informationuntitled
vii ix xi xii xiii xiv xv 1 2 1 2 3 3 4 5 4 6 5 7 8 6 9 7 10 11 12 13 14 8 15 1 2 16 3 17 4 18 19 20 5 21 22 23 24 6 25 7 8 26 27 28 29 9 30 31 10 32 33 34 11 35 36 37 12 38 39 40 13 41 14 42 43 44
More information困ったときのQ&A
Help i 1 ii iii v iv 2 C Alt Delete v iv vii vi vii vi viii ix x x xi 1 2 3 4 5 xii xiii xiv xv xvi xvii c c c xviii xix P A R T 1 P A R T 2 xx P A R T 3 xxi P A R T 4 xxii xxiii P A R T 1 2 1 1 2 3
More informationエクセルカバー入稿用.indd
i 1 1 2 3 5 5 6 7 7 8 9 9 10 11 11 11 12 2 13 13 14 15 15 16 17 17 ii CONTENTS 18 18 21 22 22 24 25 26 27 27 28 29 30 31 32 36 37 40 40 42 43 44 44 46 47 48 iii 48 50 51 52 54 55 59 61 62 64 65 66 67 68
More information<4D6963726F736F667420506F776572506F696E74202D208376838C835B83938365815B835683878393312E707074205B8CDD8AB78382815B83685D>
i i vi ii iii iv v vi vii viii ix 2 3 4 5 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
More informationSC-85X2取説
I II III IV V VI .................. VII VIII IX X 1-1 1-2 1-3 1-4 ( ) 1-5 1-6 2-1 2-2 3-1 3-2 3-3 8 3-4 3-5 3-6 3-7 ) ) - - 3-8 3-9 4-1 4-2 4-3 4-4 4-5 4-6 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9 5-10 5-11
More information1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22 8... 22 3... 22 1... 22 2... 23 3... 23 4... 24 5... 24 6... 25 7... 31 8... 32 9... 3
3 2620149 3 6 3 2 198812 21/ 198812 21 1 3 4 5 JISJIS X 0208 : 1997 JIS 4 JIS X 0213:2004 http://www.pref.hiroshima.lg.jp/site/monjokan/ 1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22
More information困ったときのQ&A
Help i 1 ii iii v iv 2 C Alt Delete v iv vii vi vii vi viii ix x http://121ware.com/support/ 0120-977-121 x xi xii xii xii 1 2 3 4 5 xiii xiv xv xvi xvii xviii xix xx P A R T 1 P A R T 2 xxi P A R T 3
More information01_.g.r..
I II III IV V VI VII VIII IX X XI I II III IV V I I I II II II I I YS-1 I YS-2 I YS-3 I YS-4 I YS-5 I YS-6 I YS-7 II II YS-1 II YS-2 II YS-3 II YS-4 II YS-5 II YS-6 II YS-7 III III YS-1 III YS-2
More informationリファレンス
STEP1 STEP 2 STEP 3 ii iii iv v NEC Corporation 1998 vi C O N T E N T S P A R T 1 viii ix C O N T E N T S P A R T 2 x P A R T 3 xi C O N T E N T S P A R T 4 xii P A R T 5 xiii C O N T E N T S P A R T
More informationOFISTAR H7000ファクス編(2版 )
i ii A iii A A A A A A A A A B C D A A B C D iv B A AB A A B A B A v A C B A ABC A B C A A vi A B B A A A A A A vii A A viii ix 4 5 6 8 9 0 x xi 5 6 9 6 06 C 4 5 8 6 9 0 C 06 06 06 064 065 066 06 068 069
More information『保守の比較政治学』
v vi vii viii ix x xi xii xiii xiv 3 3 3 9 20 25 25 27 30 32 37 xvi 43 47 57 57 60 66 72 74 81 81 83 86 91 xvii 98 101 111 111 111 115 118 125 128 135 135 136 143 151 157 xviii 163 163 167 173 179 185
More informationMultiPASS B-20 MultiPASS Suite 3.10使用説明書
TM MultiPASS Suite Ver.3.10 for Windows ii iii Copyright 1999 Canon Inc. ALL RIGHTS RESERVED iv v vi vii viii ix x 1 2 3 4 5 6 7 8 9 xi xii 1 1 1-1 1 2 3 1-2 4 5 1 1-3 6 1-4 1 7 8 1-5 9 10 11 1-6 1 1-7
More informationColor MultiWriter 9900C/9800C ユーザーズマニュアル
l l l l l i ii iii iv v vi vii viii ix x xi xii xiii xiv xv xvi xvii xviii xix xx xxi xxii xxiii xxiv xxv xxvi 1.1 1 2 3 1 1 4 5 1 1 6 7-1 1.2 1 8 1.3 1 9 1 1.3.1 10 1 2 11 1 1 1.3.2 12 13 1 1 14 1.4
More information困ったときのQ&A
ii iii iv NEC Corporation 1997 v P A R T 1 vi vii P A R T 2 viii P A R T 3 ix x xi 1P A R T 2 1 3 4 1 5 6 1 7 8 1 9 1 2 3 4 10 1 11 12 1 13 14 1 1 2 15 16 1 2 1 1 2 3 4 5 17 18 1 2 3 1 19 20 1 21 22 1
More informationI117 7 School of Information Science, Japan Advanced Institute of Science and Technology
I117 7 School of Information Science, Japan Advanced Institute of Science and Technology time time t long typedef long time_t; 1970/01/01 0:00:00 time t = time(null); Japan Advanced Institute of Science
More information活用ガイド (ソフトウェア編)
(Windows 95 ) ii iii iv NEC Corporation 1999 v P A R T 1 vi P A R T 2 vii P A R T 3 P A R T 4 viii P A R T 5 ix x P A R T 1 2 3 1 1 2 4 1 2 3 4 5 1 1 2 3 4 6 5 6 7 7 1 1 2 8 1 9 1 1 2 3 4 5 6 1 2 3 4
More informationIII
III 1 1 2 1 2 3 1 3 4 1 3 1 4 1 3 2 4 1 3 3 6 1 4 6 1 4 1 6 1 4 2 8 1 4 3 9 1 5 10 1 5 1 10 1 5 2 12 1 5 3 12 1 5 4 13 1 6 15 2 1 18 2 1 1 18 2 1 2 19 2 2 20 2 3 22 2 3 1 22 2 3 2 24 2 4 25 2 4 1 25 2
More informationiii iv v vi vii viii ix 1 1-1 1-2 1-3 2 2-1 3 3-1 3-2 3-3 3-4 4 4-1 4-2 5 5-1 5-2 5-3 5-4 5-5 5-6 5-7 6 6-1 6-2 6-3 6-4 6-5 6 6-1 6-2 6-3 6-4 6-5 7 7-1 7-2 7-3 7-4 7-5 7-6 7-7 7-8 7-9 7-10 7-11 8 8-1
More information( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h>
2007 12 5 1 2 2.1 ( ) 1 1: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #define H WIN 400 // 8 #define W WIN 300 // 9
More information‚æ4›ñ
( ) ( ) ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 (OUS) 9 26 1 / 28 ( ) ( ) ( ) A B C D Z a b c d z 0 1 2 9 (OUS) 9
More informationこれわかWord2010_第1部_100710.indd
i 1 1 2 3 6 6 7 8 10 10 11 12 12 12 13 2 15 15 16 17 17 18 19 20 20 21 ii CONTENTS 25 26 26 28 28 29 30 30 31 32 35 35 35 36 37 40 42 44 44 45 46 49 50 50 51 iii 52 52 52 53 55 56 56 57 58 58 60 60 iv
More informationパワポカバー入稿用.indd
i 1 1 2 2 3 3 4 4 4 5 7 8 8 9 9 10 11 13 14 15 16 17 19 ii CONTENTS 2 21 21 22 25 26 32 37 38 39 39 41 41 43 43 43 44 45 46 47 47 49 52 54 56 56 iii 57 59 62 64 64 66 67 68 71 72 72 73 74 74 77 79 81 84
More informationこれでわかるAccess2010
i 1 1 1 2 2 2 3 4 4 5 6 7 7 9 10 11 12 13 14 15 17 ii CONTENTS 2 19 19 20 23 24 25 25 26 29 29 31 31 33 35 36 36 39 39 41 44 45 46 48 iii 50 50 52 54 55 57 57 59 61 63 64 66 66 67 70 70 73 74 74 77 77
More informationi
i ii iii iv v vi vii viii ix x xi ( ) 854.3 700.9 10 200 3,126.9 162.3 100.6 18.3 26.5 5.6/s ( ) ( ) 1949 8 12 () () ア イ ウ ) ) () () () () BC () () (
More informationuntitled
i ii iii iv v 43 43 vi 43 vii T+1 T+2 1 viii 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 a) ( ) b) ( ) 51
More information2
1 2 3 4 5 6 7 8 9 10 I II III 11 IV 12 V 13 VI VII 14 VIII. 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 _ 33 _ 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 VII 51 52 53 54 55 56 57 58 59
More informationI
I II III IV V VI VII VIII IX X XI XII XIII XIV XV XVI XVII XVIII XIX XX XXI XXII XXIII XXIV XXV XXVI XXVII XXVIII 1 1. 2 3 2. 4 1 5 6 7 8 9 10 1 2 3 11 3. 12 13 14 1 2 3 15 4 5 16 1 2 3 17 4 18 4. 1 2
More information平成18年版 男女共同参画白書
i ii iii iv v vi vii viii ix 3 4 5 6 7 8 9 Column 10 11 12 13 14 15 Column 16 17 18 19 20 21 22 23 24 25 26 Column 27 28 29 30 Column 31 32 33 34 35 36 Column 37 Column 38 39 40 Column 41 42 43 44 45
More informationVB-C50i/VB-C50iR 使用説明書
a ii iii iv a v vi vii viii d a a d ix a a d b a a a b x a a g a g a e a a xi a a a xii a a xiii xiv 1-2 1-3 d 1-4 1-5 1-6 1-7 1-8 1-9 1-10 1-11 1-12 2-2 2-3 a 2-4 a 2-5 a 2-6 2-7 2-8 2-9 2-10 2-11 2-12
More informationAP-50W[導入編]
POWER MODE LAN WIRELESS WIRELESS ACCESS POINT AP-50 R 1 WIRELESS ACCESS POINT AP-50W 2 3 4 5 6 i Icom Inc. ii iii POWER MODE LAN WIRELESS WIRELESS ACCESS POINT AP-50 iv SA-3 v vi vii viii q w ix x xi xii
More information活用ガイド (ソフトウェア編)
(Windows 98 ) ii iii iv v NEC Corporation 1999 vi P A R T 1 P A R T 2 vii P A R T 3 viii P A R T 4 ix P A R T 5 x P A R T 1 2 3 1 1 2 4 1 2 3 4 5 1 1 2 3 4 5 6 6 7 7 1 1 2 8 1 9 1 1 2 3 4 5 6 1 2 3 10
More informationI. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (
2016 2016 07 28 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF : 11011 N N 0 N N 11 1001 N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) 1100100 (2) 1111011 (3) 1110010 (4) 1001011
More informationI. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *
2015 2015 07 30 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) +
More informationレーザビームプリンタ Satera ユーザーズガイド
JPN CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM ii iii iv v vi vii viii ix x xi xii a b c d b c d a xiii xiv xv xvi xvii xviii xix xx 1 CHAPTER 1-1 1-2 1-3 1-4 b a n m l k j c d f g e i h a b c d
More informationDocuPrint CG 835 II 取扱説明書(サーバー編)
DocuPrint CG835 II i ii iii iv v vi vii viii ix 1 2 3 4 5 6 x xi xii 1.1 1 2 1.1.1 1 1.1.2 3 1 4 1.2 1 5 1.3 1.3.1 1 6 1 7 1.3.2 1 8 1 2 1 3 4 9 1 5 10 6 1 1 11 2 1 3 4 12 1 5 13 6 1 7 8 14 1.3.3 1 1
More information1... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12 9... 13 10... 13 11... 13 12... 14 2... 14 1... 14 2... 16 3... 18 4... 19 5... 19 6.
3 2620149 1 3 8 3 2 198809 1/1 198809 1 1 3 4 5 JISJIS X 0208 : 1997 JIS 4 JIS X 0213:2004 http://www.pref.hiroshima.lg.jp/site/monjokan/ 1... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12
More informationユーザーズガイド
JPN CD-ROM CD-ROM CD-ROM CD-ROM ii iii iv v vi vii viii ix x 11 xi xii xiii xiv a b c d b c d a a xv xvi xvii xviii xix xx xxi xxii 1 CHAPTER 1-1 1-2 1-3 1-4 1-5 1-6 a g h i j b c k l m d e f a b c d
More informationii iii iv CON T E N T S iii iv v Chapter1 Chapter2 Chapter 1 002 1.1 004 1.2 004 1.2.1 007 1.2.2 009 1.3 009 1.3.1 010 1.3.2 012 1.4 012 1.4.1 014 1.4.2 015 1.5 Chapter3 Chapter4 Chapter5 Chapter6 Chapter7
More information:30 12:00 I. I VI II. III. IV. a d V. VI
2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx
More informationSR-53V[接続編]
1 WIRELESS BROADBAND VoIP ROUTER SR-53V 2 3 4 5 6 7 8 9 i Icom Inc. ii iii iv v vi vii viii ix x q w xi xii q w e r t y q w e r t q w e r t y u i o!0!1!2 xiii q w e r t q w e q w e r t q w e r t q w e
More informationi ii iii iv v vi vii ( ー ー ) ( ) ( ) ( ) ( ) ー ( ) ( ) ー ー ( ) ( ) ( ) ( ) ( ) 13 202 24122783 3622316 (1) (2) (3) (4) 2483 (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) 11 11 2483 13
More information20 2008 ( bone collar Hematoxlyin-Eosin staining Alizarin Red S / Alcian Blue staining 1
More information初等協会5
v vi vii viii ix x xi xii xiii xiv 1 2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 Keystone 40 41 42 43 44 45 46 47 48 49 50 51 Eternal Life Gate
More informationITR Market View:アイデンティティ/アクセス管理市場2018目次
ITR Market View: 2018... 1 1-1... 2 1-2... 3 1-2-1... 3 1-2-2... 5 1-2-3... 5 1-2-4... 5 1-3... 6... 9 2-1... 10 2-1-1... 10 2-1-2... 14 2-2 IDM IAM... 16 2-2-1 IDM IAM... 16 2-2-1-1... 16 2-2-1-2... 19
More informationPHP4徹底攻略 改訂版
PHP Copyright 2002 The PHP Development Team. All rights reserved. PostgreSQL Data Base Management System formerly known as Postgres, then as Postgres95. Copyright 1994-2002 Regents of the University of
More information1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main
C 2007 5 29 C 1 11 2 2.1 main() 1 FORTRAN C main() main main() main() 1 return 1 1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return
More informationPHP Copyright 2000 The PHP Development Team. All rights reserved. PostgreSQL Data Base Management System formerly known as Postgres, then as Postgres95. Copyright 1994-2000 Regents of the University of
More informationMultiPASS Suite 3.20 使用説明書
TM MultiPASS Suite Ver.3.20 for Windows ii iii Copyright 2000 Canon Inc. ALL RIGHTS RESERVED iv v vi vii viii ix x 1 1 1-1 1 1 2 3 1-2 4 5 1 1-3 1 6 1-4 7 1 8 9 1-5 10 1 11 1-6 1 1-7 1 1-8 2 1 1-9 1 1
More informationC B
C 095707B 2010 6 8 1 LEVE1 2 1.1 LEVEL 1.1................................................ 2 1.1.1 1................................................ 2 1.1.2 1.2..............................................
More informationN(なんて)D(どうでもいい)S(作文だろうか)
N( なんて ) D( どうでもいい ) S( 作文だろうか ) N( 名前 )D( ですよ )S( さびたコイル ) 1. はじめに ここでは NDS( 任天堂 DS) 上で動くプログラムの作り方を説明しています 実機で動作させ るためには 別途マジコンが必要です 2. 開発環境の導入まずは開発環境の導入です NDS の CPU ARM で動くプログラムをコンパイルするために gcc ベースのコンパイラを使います
More informationII ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D
II 8 2003 11 12 1 6 ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 Daisuke 8 =>. 73 Daisuke 35 Hiroshi 64 Ichiro 87 Junko
More informationuntitled
16 8 ...1...8...8...9...13...15...22...32...39...51...51...52...54...56...63...73 TMO...74 TMO...74 TMO...75...76...80...88...90 14 17 22 1_0-i *1 WAKAYAMA *1 X_Y-ZX Y Z -1- 1_0-ii 01 P.56 10 JR P.57
More informationLASER SHOT LBP-1210 ユーザーズガイド
レーザビームプリンタ ユーザーズガイド 最初にお読みください ご使用前に必ずこの取扱説明書をお読みください 将来いつでも使用できるように大切に保管してください JPN 1 1 3 4 5 6 3 4 5 6 i i ii iv vi viii ix x xiv xv 1 4 7 10 11 17 19 5 8 30 31 3 34 5 53 69 73 81 83 84 86 111 ii 11
More information活用ガイド (ソフトウェア編)
ii iii iv NEC Corporation 1998 v vi PA RT 1 vii PA RT 2 viii PA RT 3 PA RT 4 ix P A R T 1 2 3 1 4 5 1 1 2 1 2 3 4 6 1 2 3 4 5 7 1 6 7 8 1 9 1 10 1 2 3 4 5 6 7 8 9 10 11 11 1 12 12 1 13 1 1 14 2 3 4 5 1
More information解きながら学ぶC++入門編
!... 38!=... 35 "... 112 " "... 311 " "... 4, 264 #... 371 #define... 126, 371 #endif... 369 #if... 369 #ifndef... 369 #include... 3, 311 #undef... 371 %... 17, 18 %=... 85 &... 222 &... 203 &&... 40 &=...
More information『戦時経済体制の構想と展開』
1 15 15 17 29 36 45 47 48 53 53 54 58 60 70 88 95 95 98 102 107 116 v 121 121 123 124 129 132 142 160 163 163 168 174 183 193 198 205 205 208 212 218 232 237 237 240 247 251 vi 256 268 273 289 293 311
More informationLBP-350 ユーザーズガイド
1 3 4 5 6 7 8 i ii viii x xii xii xiii xiv 1 ii 3 4 5 6 9 9 10 1 1 1 13 14 14 15 16 16 18 19 0 1 3 3 4 5 5 6 7 8 8 30 30 31 34 36 4 45 48 51 51 5 54 54 55 56 57 57 57 58 59 60 60 6 64 65 65 66 67 iii 68
More informationTaro-リストⅢ(公開版).jtd
リスト Ⅲ 0. 目次 2. 基本的な操作 2. 1 リストから要素の削除 2. 2 リストの複写 2. 3 リストの連結 2. 4 問題 問題 1 問題 2-1 - 2. 基本的な操作 2. 1 リストから要素の削除 まず 一般的な処理を書き つぎに 特別な処理を書く 一般的な処理は 処理 1 : リスト中に 削除するデータを見つけ 削除する場合への対応 特別な処理は 処理 2 : 先頭のデータを削除する場合への対応
More informationuntitled
13 13ECE/CEP/158 1 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71
More information(報告書まとめ 2004/03/ )
- i - ii iii iv v vi vii viii ix x xi 1 Shock G( Invention) (Property rule) (Liability rule) Impact flow 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 (
More informationAccessflÌfl—−ÇŠš1
ACCESS ACCESS i ii ACCESS iii iv ACCESS v vi ACCESS CONTENTS ACCESS CONTENTS ACCESS 1 ACCESS 1 2 ACCESS 3 1 4 ACCESS 5 1 6 ACCESS 7 1 8 9 ACCESS 10 1 ACCESS 11 1 12 ACCESS 13 1 14 ACCESS 15 1 v 16 ACCESS
More information長崎県地域防災計画
i ii iii iv v vi vii viii ix - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - 玢 - 10 - - 11 - - 12 - - 13 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - -
More informationi
14 i ii iii iv v vi 14 13 86 13 12 28 14 16 14 15 31 (1) 13 12 28 20 (2) (3) 2 (4) (5) 14 14 50 48 3 11 11 22 14 15 10 14 20 21 20 (1) 14 (2) 14 4 (3) (4) (5) 12 12 (6) 14 15 5 6 7 8 9 10 7
More information