This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(?) | |
STACKSEG ENDS | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
NUM DW 0 | |
MESSAGE DB "PLEASE, ENTER YOUR NUMBER:", '$', 0AH, 0DH | |
DUMP DB 5, ?, 4 DUP('?') | |
DSEG ENDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(?) | |
STACKSEG ENDS | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
NUM DW 0 | |
FL DB 0 | |
MESSAGE DB "PLEASE, ENTER YOUR NUMBER:", '$', 0AH, 0DH | |
DUMP DB 5, ?, 4 DUP('?') | |
DSEG ENDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(?) | |
STACKSEG ENDS | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
NUM DW 0 | |
FL DB 0 | |
MESSAGE DB "PLEASE, ENTER YOUR NUMBER:", '$', 0AH, 0DH | |
DUMP DB 5, ?, 4 DUP('?') | |
DSEG ENDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(40x2-23) / x якщо 0 < x ≤ 7 | |
;38x3+5 якщо x ≤ 0 (DICH) | |
;126 / x якщо x > 7 (READY) | |
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(?) | |
STACKSEG ENDS | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
DUMP DB 5, ?, 4 DUP('?') | |
X DB 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;* СОЗДАНИЕ СЕГМЕНТА СТЭКА * | |
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(0) | |
STACKSEG ENDS | |
;* СОЗДАНИЕ СЕГМЕНТА ДАННЫХ * | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
; ПРОМЕЖУТОЧНЫЕ ПЕРЕМЕННЫЕ ДЛЯ УРАВНЕНИЙ | |
X DW ? | |
REZ DW ? | |
REZ2 DW ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; (40x 2 -23) / x якщо 0 < x ≤ 7 | |
; 38x 3 +5 якщо x ≤ 0 | |
; 126 /x якщо x > 7 | |
;* СОЗДАНИЕ СЕГМЕНТА СТЭКА * | |
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(0) | |
STACKSEG ENDS | |
;* СОЗДАНИЕ СЕГМЕНТА ДАННЫХ * | |
DSEG SEGMENT PARA PUBLIC "DATA" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;* СОЗДАНИЕ СЕГМЕНТА СТЭКА * | |
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(0) | |
STACKSEG ENDS | |
;* СОЗДАНИЕ СЕГМЕНТА ДАННЫХ * | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
MES1 DB 0AH,0DH,"START ARRAY - $" | |
MES2 DB 0AH,0DH,"SORTED ARRAY - $" | |
N EQU 9 | |
MAS DB 2,7,0,1,9,3,6,5,8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;* СОЗДАНИЕ СЕГМЕНТА СТЭКА * | |
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(0) | |
STACKSEG ENDS | |
;* СОЗДАНИЕ СЕГМЕНТА ДАННЫХ * | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
MES1 DB 0DH,"START ARRAY - $" | |
MES2 DB 0DH,"SORTED ARRAY - $" | |
MES3 DB 0DH,"ELEMENT SUM - $" | |
MES4 DB 0DH,"MAX ELEMENT - $" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;* СОЗДАНИЕ СЕГМЕНТА СТЭКА * | |
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(0) | |
STACKSEG ENDS | |
;* СОЗДАНИЕ СЕГМЕНТА ДАННЫХ * | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
MES1 DB 0DH,"START ARRAY - $" | |
MES2 DB 0DH,"SORTED ARRAY - $" | |
MES3 DB 0DH,"ELEMENT SUM - $" | |
MES4 DB 0DH,"MAX ELEMENT - $" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;* СОЗДАНИЕ СЕГМЕНТА СТЭКА * | |
STACKSEG SEGMENT PARA "STACK" | |
DW 32 DUP(0) | |
STACKSEG ENDS | |
;* СОЗДАНИЕ СЕГМЕНТА ДАННЫХ * | |
DSEG SEGMENT PARA PUBLIC "DATA" | |
MES1 DB 0DH,"START ARRAY - $" | |
N EQU 9 | |
TMP DW ? | |
I DW 1 |
OlderNewer