Hello everyone,
I know this forum is more about asm86 but I thought maybe someone knows enough about assembly in general or had some expirience in asm51 as well and can help me with my questions(wich are simple),
I needed a 16bit(word) counter and I didn't have appropriate register for that in 89S52,so I wrote the following code in asm51 for the 89S52 microcontroller:
ORG 50h
counter DW #0FA0h
...
DEC counter
...
JZ counter,label3
...
(the "..." comes instead of large pieces of code,"label3" is a label later in the code) my questions are:
Is my code correct,
can I use a defined memory cell the way I used it?
Am I decriecing the word correctly or I need special instructions for that?
Thank you,
Arctic wolf.