Nvis 5586A
Nvis Technologies Pvt. Ltd.
114
Program 9:
Comparing two strings.
Address
Opcode
Mnemonic
Comment
400
8D 36 00 05
LEA SI, [500]
LOCATION OF 1 STRING
404
8D 3E 50 05
LEA DI,[550]
LOCATION OF 2 STRING
408
B9 03 00
MOV CX,0003
SIZE OF STRING
40B
FC
CLD
40C
F3
REPE
40D
A6
CMPSB
40E
75 07
JNE 417
410
B0 01
MOV AL,01
1 IF STRING ARE EQUAL
412
88 06 00
MOV [600], AL
STORE RESULT ON 600 LOCATION
416
F4
HLT
417
B0 00
MOV AL,00
419
88 06 00 06
MOV [600], AL
STORE 0 RESULT ON 600 LOCATION IF
NOT EQUAL
41D
F4
HLT
Note:
Press F7 button of keyboard (connected to techbook) and then press D, enter address
(from where data is to be entered), press enter and start feeding data.
Enter the string at address 500.
Ex-AA,BB,CC
Enter the 2 string at address 550.
Ex-AA,BB,CC
If both string are same then result is 01 at 600 location and string are not matching then 00 at
600 memory location
Содержание 5586A
Страница 2: ...Nvis 5586A Nvis Technologies Pvt Ltd 2...
Страница 23: ...Nvis 5586A Nvis Technologies Pvt Ltd 23 Memory Read Timing in Maximum Mode...
Страница 30: ...Nvis 5586A Nvis Technologies Pvt Ltd 30...
Страница 48: ...Nvis 5586A Nvis Technologies Pvt Ltd 48 Diagram of module RESET power Instruction Set Note...
Страница 170: ...Nvis 5586A Nvis Technologies Pvt Ltd 170...