kolibrios-fun/programs/emulator/PrMK/trunk/smpl/3.mkp.asm
Yogev Ezra 63cf01e274 Added sources: emulator/PrMK , games/klavisha
git-svn-id: svn://kolibrios.org@1863 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-02-15 11:55:49 +00:00

97 lines
4.9 KiB
NASM
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;” ©« ¯à®£à ¬¬ë ¤«ï PrMK. ‘ª®¬¯¨«¨à®¢ âì á ¯®¬®éìî FASM.
;ˆ£à  "<22>®á ¤ª  ­  ‹ã­ã"
;<3B>¥à¥¯¥ç â ­® á ª­¨£¨ "5 ¢¥ç¥à®¢ á ¬¨ªà®ª «ìªã«ïâ®à®¬" ˆ.„.„ ­¨«®¢, ƒ..‘« ¢¨­. Œ®áª¢ . "”¨­ ­áë ¨ áâ â¨á⨪ ", 1988
;Andriy Slezenko, student@uninet.kiev.ua
;1. ‚¢¥á⨠¯à®£à ¬¬ã.
;2. <20>¥à¥©â¨ ¢ ०¨¬ ¢ëç¨á«¥­¨©.
;3. /<2F> "0".
;4. h0 (­ ç «ì­ ï ¢ëá®â  ª®à ¡«ï) <20>€ v0 (­ ç «ì­ ï ᪮à®áâì) <20>.
; m0 (¨á室­ ï ¬ áá  â®¯«¨¢ ) <20> g (ã᪮७¨¥ ᢮¡®¤­®£® ¯ ¤¥­¨ï ¤«ï ¯« ­¥âë) <20>9.
;5. /<2F> "h" XY "v" ˆ<> "m" ˆ<>4 "t" (⥪ã騥 §­ ç¥­¨ï).
;6. S (à á室 ⮯«¨¢  ¢ á«¥¤ãîéãî ᥪ㭤ã).
;7. <20>¥à¥©â¨ ª ¯.5 ¨ ¯à®¤®«¦ âì ¤® ¯®á ¤ª¨ ª®à ¡«ï.
;–¥«ì ¨£àë - ¯®á ¤¨âì ª®à ¡«ì ­  ‹ã­ã.
; ‘¨âã æ¨ï ã ­ á á ¢ ¬¨ â ª ï â ª ï. <20> ª¥â  ­ å®¤¨âáï ­  à ááâ®ï­¨¨ N ¬¥â஢ ®â ‹ã­ë, ᪮à®áâì ¥¥ V ¬¥â஢ ¢ ᥪ㭤ã, § ¯ á ⮯«¨¢  ¢ ¡ ª å - S â®­­. ‚¥«¨ç¨­ë íâ¨, ª®­¥ç­®, ¨§¢¥áâ­ë ª®¬ ­¤¨àã. ‘®¯«  à ª¥âë ¯®¢¥à­ãâë ª ‹ã­¥ ¨, ¤®¡ ¢«ïï ⮯«¨¢® ¢ ¤¢¨£ â¥«ì, ¬ë ­ ç¨­ ¥¬ â®à¬®§¨âì. Š ¦¤ãî ᥪ㭤㠭  ᢥ⮢®¬ â ¡«® ¢ ª®¬ ­¤¨à᪮© à㡪¥ ¯®ï¢«ï¥âáï ¨­ä®à¬ æ¨ï ® ¢ëá®â¥ ª®à ¡«ï ­ ¤ ¯®¢¥àå­®áâìî ¯« ­¥âë, ᪮à®á⨠¥£® ¨ § ¯ á¥ ⮯«¨¢ . ’ ª ª ª ª®¬ ­¤¨à®¬ ª®à ¡«ï ¡ã¤¥â¥ ¢ë, â® §­ ©â¥, çâ® ¯¥à¥¤ ⥬, ª ª ¯®á¬®âà¥âì ­  â ¡«®, ­ã¦­® ­ ¦ âì â ª¨¥ ª« ¢¨è¨: XY ¯®ª §ë¢ ¥â ᪮à®áâì, ˆ<> ¤ ¥â ®áâ â®ª ⮯«¨¢  ¢ ¡ ª¥, ˆ<>4 - ¢à¥¬ï á ­ ç «  â®à¬®¦¥­¨ï. —â® ª á ¥âáï ¢ëá®âë à ª¥âë ­ ¤ ¯« ­¥â®©, â® ®­  ¡ã¤¥â § £®à âìáï ­  ¢ è¥¬ â ¡«® áࠧ㠯ਠ®áâ ­®¢ª¥ ª «ìªã«ïâ®à  ¯®á«¥ ¯à®¢¥¤¥­¨ï ®ç¥à¥¤­®£® ¬ ­¥¢à .
; ‡ ¤ ç  ¯®­ïâ­  - ¯®á ¤¨âì ª®à ¡«ì â ª, çâ®¡ë ¢ ¬®¬¥­â ¯®á ¤ª¨ ᪮à®áâì ¥£® ¡ë«  ¡«¨§ª  ª ­ã«î, ⮯«¨¢  ¯à¨ í⮬ ¦¥« â¥«ì­® ¨§à á室®¢ âì ¯®¬¥­ìè¥, ¤  ¨ ¯à®¢¥á⨠¯®á ¤ªã ¯®¡ëáâ॥ - ­¥§ ç¥¬ ¤®«£® ¬ãç¨âì ç«¥­®¢ íª¨¯ ¦ , ¢¥¤ì ¯¥à¥£à㧪¨ ¯à¨ ¯®á ¤ª¥ ­¥ ¬ «¥­ìª¨¥. „ , çâ® ª á ¥âáï ⮯«¨¢ , ¤®¯®«­¨â¥«ì­®¥ ãá«®¢¨¥ - ¥á«¨ ¥£® ®áâ ­¥âáï ¬¥­ìè¥ 95 â®­­, â® ®¡à â­ë© áâ àâ ­  ‡¥¬«î áâ ­¥â ­¥¢®§¬®¦­ë¬.
;Š®­â஫ì­ë© ¯à¨¬¥à:
;<3B>ãáâì ¢ëá®â  ¡ã¤¥â 1000 ¬¥â஢, ᪮à®áâì - 150 ¬/á, § ¯ á ⮯«¨¢  - 500 â®­­. „ , ¥é¥ ­ã¦­® ¢¢¥á⨠¢ ¡®à⮢®© ª®¬¯ìîâ¥à ã᪮७¨¥ ᢮¡®¤­®£® ¯ ¤¥­¨ï ­  ‹ã­¥ - 1,62 ¬/á^2. ‚¢®¤¨¬ í⨠ç¨á«  ᮮ⢥âá⢥­­® ¢ ॣ¨áâàë <20>€, <20>, <20> ¨ <20>9.
;<3B> ¦¨¬ ¥¬ /<2F> ¨ ­  ¨­¤¨ª â®à¥ ¯®ï¢¨« áì ­ ç «ì­ ï ¢ëá®â . ‚¢®¤¨¬ ¢ ¤¢¨£ â¥«ì ¯¥à¢ãî ¯®àæ¨î ⮯«¨¢  - 20 /<2F>. —¥à¥§ 10 ᥪ㭤 ­  ¨­¤¨ª â®à¥ ¯®ï¢¨« áì ¢ëá®â , ­  ª®â®à®© ⥯¥àì ­ å®¤¨«áï ª®à ¡«ì, 856.4. …é¥ á⮫쪮 ¦¥ ⮯«¨¢  - 20 /<2F> ¨ ¢ëá®â  áâ «  719.4. …é¥ ¯®àæ¨ï ¯®¡®«ìè¥ - 25 /<2F>. ‚ëá®â  591 ¬¥âà.
;<3B>஢¥à¨¬ ®áâ «ì­ë¥ ¯ à ¬¥âàë: ᪮à®áâì (ª« ¢¨è  XY) - 128,4 ¬/á, § ¯ á ⮯«¨¢  (ˆ<>) - 435 â®­­, ¢à¥¬ï ¢ ¯ã⨠(ˆ<>4) - 3 á.
;<3B>®á«¥ ¢¢®¤  ¤¢  à §  ¯®¤àï¤ ¯® 30 â®­­ £®àî祣®, ¢ëá®â  ª®à ¡«ï á­¨§¨« áì ¤® 366,9 ¬.
;<3B>®á«¥ ¤ «ì­¥©è¥£® ¢¢®¤  ¤¢  à §  ¯®¤àï¤ ¯® 35 â®­­ £®àî祣®, â ¡«® ¯®ª § «® ¢ëá®âã - 194,1 ¬, ᪮à®áâì - 76,6, ⮯«¨¢® - 305, ¢à¥¬ï - 7.
;„ «¥¥ ¯®«¥â ¯à®â¥ª « â ª:
; <09> á室 ⮯«¨¢  ‚ëá®â 
; 40 130.5
; 45 85.6
; 40 57.4
; 40 46.2
; 10 38.1
; 10 33.2
; 0 26.6
; 0 18.4
; 5 10.9
; 7 5.1
; 8 1.6
; 10 1.2
; 5 1.5
; (§¤¥áì ᪮à®áâì ®ª § « áì
; ®âà¨æ â¥«ì­®© (-0,3) ¨ ª®à ¡«ì
; ­ ç « á­®¢  㤠«ïâìáï ®â ¯®¢¥àå­®áâ¨)
; 0 0.3
; 3 3.1111111
;Š®á­ã«¨áì ¯®¢¥àå­®á⨠‹ã­ë. <20>®á«¥ ¯®á ¤ª¨ ¢ëïá­¨«®áì (ˆ<>), ç⮠⮯«¨¢  ®áâ «®áì 82 â®­­ë,   ¢à¥¬ï, § âà ç¥­­®¥ ­  íâ®â ¯à®æ¥áá (ˆ<>4), 21 ᥪ㭤 .
; ¨â®£¥ ¬ë ¢¨¤¨¬, ç⮠ᥫ¨ â殮«®¢ â®, ­® ª®à ¡«ì 楫, á íª¨¯ ¦¥¬ ¢á¥ ¢ ¯®à浪¥. ‚®â ⮫쪮 ⮯«¨¢  ¯¥à¥à á室®¢ «¨, ­  ®¡à â­ë© ¯ãâì ­¥ 墠â¨â. <20>ਤ¥âáï ­  ‹ã­¥ ¦¤ âì ª®à ¡«ì-ᯠá â¥«ì ¨ ­ ¤¥ïâìáï, çâ® ¥£® ª ¯¨â ­ á¯à ¢¨âáï á ¯®á ¤ª®© «ãçè¥ ¢ á.
;<3B>® ­¥ ®£®àç ©â¥áì. „«ï ¯¥à¢®£® à §  ¢¯®«­¥ ¯à¨«¨ç­®.
;<3B>ਬ¥ç ­¨ï:
;1. —¨á«  ¢ ª ¢ë窠å - íâ® ç¨á« , ¢ëᢥ稢 ¥¬ë¥ ­  íªà ­¥.
;2. ‚믮«­ïâì ¯.4 ­¥ ®¡ï§ â¥«ì­®. <20>® 㬮«ç ­¨î ¯à¥¤¯®« £ ¥âáï: h=1000 ¬, v0=150 ¬/á, m0+500 â, g=1,62 ¬/á^2 ¤«ï ‹ã­ë.
;3. ‘¬ëá« á®®¡é¥­¨© ® ª ç¥á⢥ ¯®á ¤ª¨ à áè¨ä஢ ­ ­¨¦¥.
;1,1111111 - ¨¤¥ «ì­ ï ¯®á ¤ª ;
;2,1111111 - ­®à¬ «ì­ ï ¯®á ¤ª ;
;3,1111111 - â殮« ï ¯®á ¤ª ;
;4,1111111 - ¯®á ¤ª  á «¥£ª® ãáâà ­¨¬ë¬¨ ¯®¢à¥¦¤¥­¨ï¬¨;
;5,1111111 - ¯®¢à¥¦¤¥­¨ï, ¯®«ã祭­ë¥ ¯à¨ ¯®á ¤ª¥, ­¥ãáâà ­¨¬ë. Ž¡à â­ë© áâ àâ ª ‡¥¬«¥ ¢àï¤ «¨ ¢®§¬®¦¥­;
;6,1111111 - ®ç¥­ì ᨫì­ë¥ ¯®¢à¥¦¤¥­¨ï;
;7,1111111 - à §£¥à¬¥â¨§ æ¨ï ®â¤¥«ì­ëå ¡«®ª®¢ ¢ १ã«ìâ â¥ ᨫ쭮£® 㤠à . †¨§­ì ç«¥­®¢ íª¨¯ ¦  ¯®¤ ã£à®§®©;
;8,1111111 - £¨¡¥«ì íª¨¯ ¦ ;
;9,1111111 - ¢§àë¢ ª®à ¡«ï.
db "<‘’…Š>"
;¤ «¥¥ á«¥¤ãîâ §­ ç¥­¨ï ॣ¨áâ஢ á⥪  (⮫쪮 qword)
;R.X1
dq 0.0
;R.X
dq 0.0
;R.Y
dq 0.0
;R.Z
dq 0.0
;R.T
dq 0.0
db "<<3C>ƒ>"
;<3B>¥£¨áâàë: (á R.0 ¯® R.E)
times 15 dq 0.0
db "<<3C><>ƒŒ>"
;<3B>ணࠬ¬  ¢ Ž<>ŠŽ„ å ŒŠ
db 0x0D,0x44,0x0C,0x03,0x4A,0x48,0x02,0x13,0x4C,0x01
db 0x05,0x00,0x4B,0x01,0x0A,0x06,0x02,0x49,0x0D,0x50
db 0x6B,0x6A,0x50,0x40,0xD4,0x14,0x6C,0x14,0x11,0x5C
db 36 ,0x0D,0x40,0x6C,0x51, 37 ,0x4C,0x68,0x13,0x02
db 0x10,0x60,0x14,0x13,0x69,0x14,0x11,0x6B,0x10,0x4B
db 0x6A,0x14,0x11,0x4A,0x5C, 20 ,0x0B,0x6B,0x22,0x21
db 0x10,0x01,0x10,0x4D,0xDD,0x6D,0x09,0x23,0x10,0x50