Home » questions » microcontroller 89C52 programming problem?
microcontroller 89C52 programming problem?
I’m programming the ATMEL 89C52 using its assembly language and I have a problem making part of a program... I want to compare two values stored in two different registers, say R0 and R1 and I want to make a program that would do the function of:
CJNE R0,R1,HERE
I tried putting one of the two values in the accumulator A but it didn't work as I’m still getting "unknown instruction" error each time I run the assembler
please help
CJNE A,R0,HERE didn't work either

Answers
vazk
On 2006-08-05 06:11:44
justme
On 2006-08-05 07:03:59