ページへ戻る

− Links

 印刷 

guide​/wintro0002 のバックアップ差分(No.5) :: OSASK計画

osaskwiki:guide/wintro0002 のバックアップ差分(No.5)

« Prev[4]  Next »[5]
4: 2004-12-15 (水) 18:06:26 ソース[6] 5: 2004-12-15 (水) 18:06:26 ソース[7]
Line 149: Line 149:
--''以下未完成'' +-nask版:"cntdwnn1.nas" [osa_dir2では 251バイト]
- +
--nask版:"cntdwnn1.nas" [osa_dir2では バイト]+
 ; "cntdwnn1.nas":countdwnをnaskで記述した例  ; "cntdwnn1.nas":countdwnをnaskで記述した例
 ;  stack:4k malloc:0k  ;  stack:4k malloc:0k
Line 182: Line 180:
     JMP  .mainloop      JMP  .mainloop
- setdec2:+ setdec3:
     PUSH EDX      PUSH EDX
     PUSH ECX      PUSH ECX
Line 206: Line 204:
     POP  EDX      POP  EDX
     RET      RET
- ;;;+
 [SECTION .data]  [SECTION .data]
     ALIGNB 4      ALIGNB 4
 init:  init:
     DD 0x0004, work ; lib_init      DD 0x0004, work ; lib_init
-     DD 0x0020, window, 0x0200, 20 * 8, 8 * 16 ; lib_openwindow +     DD 0x0020, window, 0x0200, 18 * 8, 1 * 16 ; lib_openwindow 
-     DD 0x0028, 0x1000, wintitle, 0, 7, 1, 0, 0, window, 0x00c0, 0 ; lib_opentextbox +     DD 0x0028, 0x1000, wintitle, 0, 8, 1, 0, 0, window, 0x00c0, 0 ; lib_opentextbox 
-     DD 0x0028, 0x0001, textbox, 0, 20, 8, 0, 0, window, 0x00c0, 0 ; lib_opentextbox +     DD 0x0028, 0x0000, textbox, 0, 3, 1, 56, 0, window, 0x00c0, 0 ; lib_opentextbox 
-     DD 0x0040, 0x1000, 0, 0, wintitle, 0, 0, 0,  7, 'colorn1' ; lib_putstring1+     DD 0x0040, 0x1000, 0, 0, wintitle, 0, 0, 0,  8, 'cntdwnn1' ; lib_putstring1
     DD 0x0000 ; end of functions      DD 0x0000 ; end of functions
- putstr+ putnum
-     DD 0x0040, 0x1000, 0, 0, textbox,  0, 0, 0, 8, 'color  ' ; lib_putstring1+     DD 0x0040, 0x1000, 0, 0, textbox,  0, 0, 0, 3, '000' ; lib_putstring1 
 +     DD 0x0018, 0x0007, 0, 0, 0, 1, 0 ; lib_waitsignaltime
     DD 0x0000 ; end of functions      DD 0x0000 ; end of functions
- sleep+ putgo: 
-     DD 0x0018, 0x0001, 0, 0 ; lib_waitsignal+     DD 0x0040, 0x1000, 0, 0, textbox,  0, 0, 0, 3, 'GO!' ; lib_putstring1 
 +     DD 0x0018, 0x0007, 0, 0, 0, 10, 0 ; lib_waitsignaltime
     DD 0x0000 ; end of functions      DD 0x0000 ; end of functions
Line 229: Line 229:
     RESB 128 ; ウィンドウ構造体      RESB 128 ; ウィンドウ構造体
 wintitle:  wintitle:
-     RESB  64 + 7 * 1 * 8; テキストボックス構造体(7x1文字分)+     RESB  64 + 8 * 1 * 8; テキストボックス構造体(8x1文字分)
 textbox:  textbox:
-     RESB  64 + 20 * 8 * 8; テキストボックス構造体(20x8文字分)+     RESB  64 + 3 * 1 * 8; テキストボックス構造体(3x1文字分)
*** 説明 *** 説明
 +-''以下未完成''
-概要: -概要:
--このプログラムは、ウィンドウを一つ開き、そのウィンドウに16色のメッセージを表示するだけのプログラムです。 --このプログラムは、ウィンドウを一つ開き、そのウィンドウに16色のメッセージを表示するだけのプログラムです。
Line 259: Line 260:
*** おまけ *** おまけ
-次回(no.0003)はキー入力を少しやります。これで、キー入力を反映できるようになるでしょう。 -次回(no.0003)はキー入力を少しやります。これで、キー入力を反映できるようになるでしょう。
--読んでいる人が追いつけないほど先に進んでもしょうがないので、こめんと欄でリクエストきたら次回を書き始めます。+-読んでいる人が追いつけないほど先に進んでもしょうがないので、こめんと欄でリクエストがきたら次回を書き始めます。
* こめんと欄 * こめんと欄
#comment #comment
« Prev[4]  Next »[5]