Nvis 5586A
Nvis Technologies Pvt. Ltd.
136
Program 22:
Find whether a no is positive or negative.
Address
Opcode
Mnemonic
Comment
0400
B8 FF FF
MOV AX, FFFF
COPY FFFF H IN AX
0403
D1 E0
SHL AX, 01
SHIFT LEFT 1-BIT OF AX THROUGH CARRY
0405
73 0E
JNC 415
JUMP TO MEMORY LOCATION 415 H IF NO
CARRY
0407
B8 FF FF
MOV AX, FFFF
COPY FFFF H IN AX
040A
89 06 5004
MOV [450], AX
MOVE AX DATA IN MEMORY LOCATION 450
040E
F4
HLT
0415
B8 55 55
MOV AX,5555
COPY 5555 IN AX
0418
89 06 70 04
MOV [470], AX
MOVE AX DATA IN MEMORY LOCATION 470
041C
F4
HLT
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 or on memory location 470. If
entered number is POSITIVE then result displayed on memory location 470 and if entered
number is NEGATIVE then result displayed on memory location 450.
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...