Topic 11 : Assembler language operators 11-mavzu: Assembler tili operatorlari


Kiritish va chiqarish buyruqlari. Dastur tuzilishi


Download 131.86 Kb.
bet4/5
Sana04.02.2023
Hajmi131.86 Kb.
#1157964
1   2   3   4   5
Bog'liq
11-Mavzu

Kiritish va chiqarish buyruqlari. Dastur tuzilishi
Quyidagi operator ishlatiladi
offset o’zgaruvchisi nomi
Bu o’zgarmas ifoda; qiymati ma’lumotlar segmentidagi o’zgaruvchining adresiga teng.
Buyruqlar
INCHAR op ;belgi kiritish, op - r8 yoki m8
ININT op ;son kiritish, op - r32 yoki m32
OUTCHAR op ;belgini chop etish, op - r8, m8 yoki i8
OUTI op ;ishorali sonni chop etish, op-r32, m32 yoki i32
OUTU op ;ishorasiz sonni chop etish, op-r32, m32 yoki i32
OUTSTR op ;op adresli baytdan =0h baytgacha satrni chop etish
op - r32 yoki offset satrning nomi
NEWLINE; Writeln
EXIT; dasturning tugashi
Buyruq nomlari katta yoki kichik harflar bilan yozilishi mumkin.
ESP registrini operandlarda ishlatish mumkin emas.
Yusupov RA, 2021
Program structure
INCLUDE settings.inc
INCLUDE Io2020.inc
.STACK 4096
; do not change
. DATA
; o ' variable _ description i
. CODE
start :
; commands
EXIT
END start
Yusupov R.A., 2021
Dastur tarkibi
INCLUDE settings.inc
INCLUDE Io2020.inc
.STACK 4096
; o’zgarmaslar
.DATA
; o’zgaruvchilarni tavsifi
.CODE
start:
; buyruqlar
EXIT
END start
Yusupov RA, 2021
Jump commands
Jump commands flags does not change .
Unconditionally jump _ _ _
JMP target ; to ' g ' ridan -to ' g ' ri o ' tish
JMP op; op - r32, m32, op da gi to the address indirect o ' tooth
Comparison command _ _
CMP op1, op2; op1-op2  CF, OF, SF, ZF flags
Operand Requirements SUB Command i _ with a kind of
Conditional transition
Syntax JXXX target ; XXX o ' tish condition defines
Mnemonic codes ro ' yxati
JE ; teng on o ' tooth
JNE ; teng it's not on
Yusupov R.A., 2021
O’tish buyruqlari
O’tish buyruqlari bayroqlarni o’zgartirmaydi.

Download 131.86 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling