in assembly language programming
1. increment, decrement operators could done in register itself in which weather alu took step for increment or decrement or incrementor latch
2. why carry flag is not effected in increment operation
for example inr B B->ff
after increment carry is carry generated or not
Firstly 8085 is a 8 bit up hence the range it can handle is from 00h to FFh thus on increamenting FFh the answer is 00h. On the other hand increment opreations are something like hand calculations for example when we start to count using out fingers we start form 1 upto 10 but we run out of fingers after 10 ! so what we cn do is make a reminder that we have counted till 10 and write it down elsewhere ...
The same is with the increment operation its just counting from 0 to 255 in this case, hope I have answered you !!!
for both increment and decrement operators up uses 2's complement arithmetic ckt. we neglect carry while performing addition or subtraction in 2's complement form.
that mean using the assemply machine
(at least you will get 0or1 to handle with )
so when we count in binary
we use the byte (2 nipple )means 8 bit
and we count from 0000 to ffff in the asci
and from 000 to 111
means 8 counts only
but when we reach 101 ,110 ,111, for example its will return from
111to 000 but in the carry case
(x)111 to (1)000
so it will go back without carry but you must use aremind to handle with