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.
Do'stlaringiz bilan baham: |