Архітектура комп'ютера ЗПІ-91-20210115T104819Z-001 / приклад - програма
.docx; сума чисел до ff
jmp start
db 01
db 02
db 03
db 04
db 05
db 06
db ff
start:
mov al, 02
mov cl, 0
l1: mov bl, [al]
cmp bl, ff
jz l2
add cl, bl
push al
;MOV AL, cl
push cl
pop al
out 01
pop al
inc al
jmp l1
l2:
mov [a0], cl
add cl, 10
mov [a1], cl
MOV AL,dd
MOV [75],AL
MOV BL,[15]
MOV [75],CL
MOV DL,[AL]
MOV [CL],AL
MOV AL,55
MOV cL,02
ADD AL,12
SUB BL,15
MUL CL,03
DIV DL,02
AND AL,20
OR CL,F0
push al
XOR AL,AA
;jldfjgldfskjglsdkfl
pop al
mov al, 33
sub al, 33
pushf
mov al, 34
sub al, 33
popf
push al
pop bl
ROL AL
ROL AL
ROL AL
ROR BL
SHL CL
SHR DL
mov bl, 02
SHR bL
SHR bL
SHR bL
mov bl, 08
ROR bL
ROR bL
ROR bL
mov al, 2
SHL Al
SHL Al
mov bl, 05
ROR bL
ROR bL
end