15-VARIANT
M1 manzilli birinchi massivdan SHARTga togri keladigan elementlarni (ikkilik tizimda berilgan) aniqlang va M2 manzili bilan ikkinchi massivga o'tkazing.
M1 = 0900
M2 = F000
SHART = X>175
1752 = X16
(ostatok 15)
102 = A016
152 = 0F16
A0 + 0F = AF
0000 21 LXI H, d16
0001 00 NOP
0002 09 DAD B
0003 01 LXI B, d16
0004 00 NOP
0005 F0 RP
0006 16 MVI D, d8
0007 0A LDAX B
0008 7E MOV A, M
0009 E6 SUI
000A AF XRA A
000B F2 JP
000C 12 STAX D
000D 00 NOP
000E 7E MOV A, M
000F --------------------------
0010 02 STAX B
0011 23 INX H
0012 03 INX B
0013 23 INX H
0014 15 DCR D
0015 C2 JNZ adr
0016 00 NOP
0017 F0 RP
0018 76 HLT
Do'stlaringiz bilan baham: |