diff options
| author | Andrew <saintruler@gmail.com> | 2020-10-22 21:03:24 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-10-22 21:03:24 +0400 |
| commit | 143f34d941f32e0808fc9344d4c4126ff530d64a (patch) | |
| tree | c79fcf309ad00e52100c0da544d96d3cc6ab6617 /sem2/lab1 | |
Добавил решения второго семестра
Diffstat (limited to 'sem2/lab1')
| -rw-r--r-- | sem2/lab1/hel.bat | 3 | ||||
| -rw-r--r-- | sem2/lab1/hel1.bat | 3 | ||||
| -rw-r--r-- | sem2/lab1/hello1.asm | 17 | ||||
| -rw-r--r-- | sem2/lab1/hello11.asm | 17 | ||||
| -rw-r--r-- | sem2/lab1/hello2.asm | 22 | ||||
| -rw-r--r-- | sem2/lab1/hello3.asm | 15 |
6 files changed, 77 insertions, 0 deletions
diff --git a/sem2/lab1/hel.bat b/sem2/lab1/hel.bat new file mode 100644 index 0000000..946ebf1 --- /dev/null +++ b/sem2/lab1/hel.bat @@ -0,0 +1,3 @@ +TASM /L HELLO11 +TLINK HELLO11 +HELLO11.EXE diff --git a/sem2/lab1/hel1.bat b/sem2/lab1/hel1.bat new file mode 100644 index 0000000..00ca460 --- /dev/null +++ b/sem2/lab1/hel1.bat @@ -0,0 +1,3 @@ +TASM /L %1 +TLINK %1 +%1.EXE diff --git a/sem2/lab1/hello1.asm b/sem2/lab1/hello1.asm new file mode 100644 index 0000000..795d939 --- /dev/null +++ b/sem2/lab1/hello1.asm @@ -0,0 +1,17 @@ +; Program Hello1 +.MODEL small +.STACK 100h +.DATA +Hello DB 'Hello!$' + +.CODE +start: + MOV ax,@DATA + MOV ds,ax + LEA dx,Hello + MOV ah,09h + INT 21h + MOV ax,4c00h + INT 21h +END start + diff --git a/sem2/lab1/hello11.asm b/sem2/lab1/hello11.asm new file mode 100644 index 0000000..f039220 --- /dev/null +++ b/sem2/lab1/hello11.asm @@ -0,0 +1,17 @@ +; Program Hello1 +.MODEL small +.STACK 100h +.DATA +Hello DB 'Hello, World!$' + +.CODE +start: + MOV ax,@DATA + MOV ds,ax + LEA dx,Hello + MOV ah,09h + INT 21h + MOV ax,4c00h + INT 21h +END start + diff --git a/sem2/lab1/hello2.asm b/sem2/lab1/hello2.asm new file mode 100644 index 0000000..df7596d --- /dev/null +++ b/sem2/lab1/hello2.asm @@ -0,0 +1,22 @@ +; Program Hello2 +OurStack SEGMENT PARA STACK 'STACK' +DB 64 DUP (?) +OurStack ENDS + +OurData SEGMENT PARA PUBLIC 'DATA' +Hello DB 'Hello!$' +OurData ENDS + +OurCode SEGMENT PARA PUBLIC 'CODE' +ASSUME CS:OurCode, DS:OurData, SS:OurStack +Start: + MOV ax,OurData + MOV ds,ax + LEA dx,Hello + MOV ah,09h + INT 21h + MOV ah,4Ch + MOV al,00h + INT 21h +OurCode ENDS +END Start diff --git a/sem2/lab1/hello3.asm b/sem2/lab1/hello3.asm new file mode 100644 index 0000000..6149972 --- /dev/null +++ b/sem2/lab1/hello3.asm @@ -0,0 +1,15 @@ +; Program Hello3 +.MODEL small +.CODE +ORG 100h +begin: + JMP start + Hello DB 'Hello!$' +start: + LEA dx,Hello + MOV ah,09h + INT 21h + MOV ah,4Ch + MOV al,00h + INT 21h +END begin |