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.

How save data in memory?(8051 ASM)

Status
Not open for further replies.

panda1234

Full Member level 2
Full Member level 2
Joined
Jan 22, 2015
Messages
125
Helped
4
Reputation
8
Reaction score
4
Trophy points
18
Activity points
1,172
Hi,
I want to know how can i save data in memory?i write below code but it's wrong(This is part of code)
HTML:
MOV A,R7
MOV 00H,A     //Store 0.1F in 00H MEMORY
MOV A,R6
MOV 01H,A     //Store DC in 01H MEMORY
MOV A,R4
MOV 02H,A     //Store quotient(100/R7)
MOV A,R5
MOV 03H,A     //%Store Reminder(100/R7) in 03H MEMORY
ACALL div16_16
MOV A,R3    //High byte of R*DC/R7
MOV 04H,A
MOV A,R2    //LOW byte of R*DC/R7
MOV 05,A
 

How do you know it's wrong? All you're showing is some writes to memory.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top