Nvis 5586A
Nvis Technologies Pvt. Ltd.
135
Program 21:
Find whether a no is even or odd.
Address
Opcode
Mnemonic
Comment
0400
B8 FF FF
MOV AX, FFFF
COPY FFFF H IN AX
403
D1 C8
ROR AX, 01
SHIFT RIGHT 1-BIT OF AX
405
73 0E
JNC 415
JUMP TO MEMORY LOCATION 415 H IF NO
CARRY
407
B8 FF FF
MOV AX, FFFF
COPY FFFF H IN AX
40A
89 06 5004
MOV [450], AX
MOVE AX DATA IN MEMORY LOCATION 450
40E
F4
HLT
HALT
0415
B8 55 55
MOV AX,5555
COPY 5555 IN AX
0418
89 06 70 04
MOV [470], AX
MOVE AL DATA IN MEMORY LOCATION 470
41C
F4
HLT
HALT
DATA: FFFF H OR 5555 H
One of above data can be moved in AX.
Here result can be analyzed either on memory location 450 H or on memory location 470 H.
If entered number is even then result displayed on memory location 470 H and if entered
number is odd then result displayed on memory location 450 H.
Summary of Contents for 5586A
Page 2: ...Nvis 5586A Nvis Technologies Pvt Ltd 2...
Page 23: ...Nvis 5586A Nvis Technologies Pvt Ltd 23 Memory Read Timing in Maximum Mode...
Page 30: ...Nvis 5586A Nvis Technologies Pvt Ltd 30...
Page 48: ...Nvis 5586A Nvis Technologies Pvt Ltd 48 Diagram of module RESET power Instruction Set Note...