adspace


write a program that changes 74H to 47H in 8085 assembly
programming

Answer Posted / Jitendra Kumar Paswan

In 8085 assembly, you can't directly change data values like 74H to 47H. However, you can write a program to perform such an operation by using a subroutine that compares the current value with the desired value (74H) and updates it if necessary. Here is a simple example of how you could do this:

MOV A, H ; Load the current value into Accumulator A
CMP A, 74 ; Compare Accumulator A with 74H
JZ CHANGE ; If equal (Z flag set), jump to 'CHANGE' label

; Rest of your program here...

CHANGE: ; This is the label where we change the value
MOV H, 47 ; Load 47H into Higher Half Accumulator

; Continue with rest of your program...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i completed my b.tech.i want to prepare for civils. when new batch classes will start at rc reddy. plz mail me rajesh.mc28@gmail.com

2036


wbsedcl job in kolkata

2192


hello sir, could u plz send me a sample placement paper for hpcl trainee engg exam..(electrical stream)...hoping to hear from u at the earliest

1912


an anyone help me out to get hpcl officer's trainee paper's pattern....nithinjyothy@gmail.com

2162


I want previous rrb enteranse exam papers in section engineer. please send that papers to my id rohit_nist@yahoo.co.in

2797


plz send me previous question paper of RRB section Engineer- Electronics ,erpdayal@gmail.com

2216


I am a fresher and i have done testing course from orbit institute hyd.can any1 say me whether it is necessary to do project in testing.if it is that which is best institute in hyd.can you please inform me if there is any job 4 freshers.thanxs

2003


pls. send me 10 years modle papers for the post of section engg. (E&C) in rrb ajmer, at my mail id i.e. praveen.yugal@gmail.com.

2035


i want computer associates placement papers from u? pls post to me.

2790


hi...i had completed B.E.in Electronics & Communication.i had applied Section Engineer in railway recruit ment 2012.I need previous year exam papers.

2180


i am electronics & telecomm engg & appling 4 the AAI jr executive (electronics/ATC) written test. pls forward me the syllabus & old question papers.I will be very much thankful to you. NAZEEHA E.MAIL ID:- km.nazi.km@gmail.com

2158


please send me rrb gorakhpur je teli question paper

3786


Dear concern Plz provide me the solved papers of Railway section engineer in signal...

1976


i am a student i need the technical questions ased in wipro

2016


Please send BSNL TTA Question Answer

2198