Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://al.cs.msu.ru/files/launch_asm.pdf
Äàòà èçìåíåíèÿ: Tue Apr 15 17:24:56 2014
Äàòà èíäåêñèðîâàíèÿ: Sat Apr 9 22:32:16 2016
Êîäèðîâêà:
« - MASM'. 1 » 2012 .


.., ..

2014


( 2014). I. zip­ . 1. Internet­. , Microsoft Internet Explorer (2L) 2. http:// al.cs.msu.su / ­ "" , Enter 3. () . « Windows , , , Notepad++ ». (1R). " .." assembler.zip. ( assembler.zip ) " ". assembler.zip " " ­ " " ( ). "" ( ) , " " assembler.zip . II zip­ . 4. " " , " " . «» (2L) () WinRAR' (assembler.zip) ( , Assembler) 5. Assembler . WinRAR « » . , Assembler . «», . Assembler . WinRAR Microsoft Internet Explorer. assembler.zip .
. .., ..

. .1. . .1 . .2. .3.

. .3

. .4 . .4. . .5. .5 .5, . .6 . .6 . .7 . .7 . .8

. 2 43


III ASSEMBLER. 6. Assembler (2L) . Assembler : masm npp ; : assembler.cmd ­ "" ; io.asm, ioproc.asm, ioproc.obj ­ /; readme.txt ­ - ; schem.asm ­ . IV. . 7. assembler (*.cmd) (2L). Notepad++, schem (*.asm). 8. Notepad++ OEM866 (DOS ), - - - OEM866. 1*) 9. schem.asm Notepad++, « ­ ­ (pr1) ­ » Notepad++ , schem.asm 10. 11. MASM-4 Notepad++ . , Ctrl + F9 2 **).

.9,

.10 .11, .12. .13. .14. .15. .16,17. .18.

1

1 , " ", , OEM866. 2 Notepad++ MASM 4.0.
. 3 43

2

. .., ..


V. . 12. assembler.cmd «» schem.asm . , , pr2.asm, .7­11. , .lst. . ! asm- . Ctrl . . readme.txt .9 . Notepad++ , . 13. Assembler ( ) .

..19, 20,22,23 .26 .24

..25



,

.

(*.zip) , , Windows, .



. .., ..

. 4 43


1. Internet­. , Microsoft Internet Explorer (2L) . .1



.1.

. .., ..

. 5 43


2. http:// al.cs.msu.su / ­ . .1. "" , Enter . .2.

.1.

. .., ..

. 6 43


.2.

3. () . .3.

.2.

. .., ..

. 7 43


.3.

« Windows , , , Notepad++ ».

(1R). " .." . .3 ( ). assembler.zip. ( assembler.zip )

.3.
. 8 43

. .., ..


" ". " " assembler.zip . .4 . " " ­ " " ( ).

.4.
. .., .. . 9 43


"" ( ) . .4 .

.4.

. .., ..

. 10 43


, " " . .5 . .5 " ".

.5.
assembler.zip .

.5.
. «» (2L)

(
. .., ..

)

.,

. 11 43


4. assembler.zip .

" " , " " . .5. «» (2L)

.5.

. .., ..

. 12 43


( ) WinRAR (assembler.zip) . .6 ( , Assembler).

.6.
« », Assembler .

. .., ..

. 13 43


5.

. WinRAR « » . .6 . , .7 ( ), ­ Assembler. .7 ( ). «», .

.7.

.7.

. .., ..

. 14 43


Assembler . WinRAR Microsoft Internet Explorer .

assembler.zip .

.8.

. .., ..

. 15 43


6. Assembler (2L) . Assembler : masm npp ; : assembler.cmd ­ Notepad++, ; io.asm, ioproc.asm, ioproc.obj ­ / ; readme.txt ­. .9 ; schem.asm ­ .

.9.

. .., ..

. 16 43


assembler (*.cmd) (2L).

2L

.9.

. .., ..

. 17 43


assembler (*.cmd) (2L) ; Notepad++, schem (*.asm) . . 10 .

() , ANSI, Windows. schem.asm 866 ( DOS).

.10.

. .., ..

. 18 43


Notepad++ OEM866, , OEM866 .11. OEM866 ( 1L ). .12.

.11.

. .., ..

. 19 43


.12 Notepad++ OEM866 . () , "" OEM866 . . , OEM866 , . , ANSI.

.12.

. .., ..

. 20 43


assembler.cmd schem.asm ( read only). schem.asm (*.asm) . Ctrl + Alt + S ( .13 ) , .14, ( ).

.13.

. .., ..

. 21 43


« » pr1 ..14.

.14.

. .., ..

. 22 43


Notepad++ , schem.asm . .15 . "" "" pr1.asm , . .16 "" , . , , "" ..16.

.15.

. .., ..

. 23 43


pr1.asm . mov ax,-1000 outint ax outword ax ..17. . Ctrl + F9 ( ..18 ). :

.16.
. .., .. . 24 43


, .17, Tab . Enter .

.17.
. .., .. . 25 43


outword ax outword ax, 8 newline 11. MASM-4 Notepad++ Ctrl + F9 , :

.18.
. .., .. . 26 43


12. , , pr2.asm , . 7 ­ 11.

, Notepad++ , . Notepad++ , , «» (, ) schem.asm .

.19.
. .., .. . 27 43


pr2.asm : A:=A+B A 1024 = 210= 0400h , B 129 = ­127 = 0FF81h . mov ah, 0 B . , A A , .

.20.

. .., ..

. 28 43


pr2.asm , . ... ..13. pr2a.asm , . pr2.asm, .

.21.

. .., ..

. 29 43


pr2.asm : A:=A+B al ax cbw . ax . , , outint ax, 8 . pr2b.asm ..21.

.22.
. .., .. . 30 43


, pr2.asm bx:=A+B . A B , . outch A B, inint bx ax . , , DOSBox Ctrl . . , B ax . Ctrl + F9 pr2.lst, , Console, Notepad++ ..24.

.23.
. .., .. . 31 43


, pr2.ASM(34) : error 31: Operand types must match ! p

.lst. error . « ». r2.lst , pr2.asm .

.24.

. .., ..

. 32 43


, pr2b.asm ..22 . Assembler ( ) . pr2c.asm ..21.

.25.
. .., .. . 33 43


, . T : T db ' +B= $' mov dx, offset T outstr T $ . outint bx . ax cbw .

.26.
. .., .. . 34 43


1

.27.

. .., ..

. 35 43


.28.
. .., .. . 36 43


.29.

. .., ..

. 37 43


.30.

.31.

. .., ..

. 38 43


.32.
. .., .. . 39 43


.33.

.34.

. .., ..

. 40 43


2

.35.

.36.

.37.

. .., ..

. 41 43


.38.

fullma.bat @echo off if --%~x1==--.asm goto ext_ok echo '.asm' ( '%~x1'). set NAMEFAIL=true :ext_ok dir "%~dp1"\%~nx1 > nul 2>nul && goto name_ok echo ( '%~n1'). set NAMEFAIL=true :name_ok if not --%NAMEFAIL%==--true goto name_ext_ok echo . rem pause exit :name_ext_ok subst t: /d >nul set MP="%~dp0." subst t: %MP% subst u: /d >nul set FP="%~dp1." set FN=%~n1 subst u: %FP% if exist u:\%FN%.exe del u:\%FN%.exe call t:\dosbox\dosbox.exe -exit -c "t:\asmprog.bat %FN%" -conf t:\dosbox\dosbox.conf -noconsole if not exist u:\%FN%.exe goto err call t:\dosbox\dosbox.exe -c "t:\runprog.bat u:\%FN%.exe" -conf t:\dosbox\dosbox.conf -noconsole goto fin :err if exist u:\%FN%.obj del u:\%FN%.obj "%~dp0..\npp\notepad++" -n1 "%~dpn1.lst" echo . %~n1.lst, , . :fin subst t: /d subst u: /d

asmprog.bat rem t:\masm4\masm.exe /nologo /c /Fou:\%FN%.obj /Flu:\%FN%.lst /W3 /X /Zm /Zi /It: u:\%FN%.asm set FN=%1 u: t:\masm4\masm.exe %FN%,%FN%,%FN%; t:\masm4\link.exe %FN%+T:\masm4\ioproc.obj,%FN%; exit

runprog.bat @echo off echo ---------------------- ----------------------%1 echo ------------------- -------------------pause exit

. .., ..

. 42 43



, Windows 2014 , . [1] Windows, , MASM 4.0 , Notepad++, , DOSBOX . [2] , Notepad++. , , . Notepad++ [3] , [1] . [4] [5] . , , , [6] .3.1 3 .

.
[1] http:// al.cs.msu.su / classes / assembler / [5] .., .. « - MASM'. 1 » 2012. http:// al.cs.msu.su / books / [2] / Notepad++ http://notepad-plus.sourceforge.net/ [3] .. IBM . ­ -, 1994. [4] .. : - . , 2007. http:// arch.cs.msu.su / - « ». [6] .. : . , 2012. http:// www.stolyarov.info /

. .., ..

. 43 43