I wrote a fairly frugal program to compare 2 numbers , the first JNC statement works fine, the second throws an error, I am using gnusim8085 . Here is my code
MVI B,03H
MVI C,02H
MOV A,B
CMP C
JNC NO_ZERO_1
MOV H,C
NO_ZERO_1: MOV A,C
CMP B
JNC FINAL
MOV H,B
FINAL:HLT
The error being shown is Invalid opcode or pseudo op. Basically I am checking for carry flag only, and moving the greater number to register H