Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question about incrementing 8085 in Assembly

Status
Not open for further replies.

toram16

Junior Member level 2
Junior Member level 2
Joined
Dec 19, 2006
Messages
23
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
banglore
Activity points
1,423
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
 

8085up

Hai there !

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 !!!
 

Re: abt 8085 up........

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.
 

Re: abt 8085 up........

hi all

my dear using the hex cods or binary

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

i hope that you are under stand me

try and say hi ....
:idea::D
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top