Whats wrong with this?
NAM test // Namee
ORG 0 // Memory start point
LDA 100 / Load to register A memory adress 100, A=100
ADA 200 // Addd to register A memory address 200, A = 100+200
END
Whats wrong with this?
NAM test // Namee
ORG 0 // Memory start point
LDA 100 / Load to register A memory adress 100, A=100
ADA 200 // Addd to register A memory address 200, A = 100+200
END
...nore really sure with your version of ASM, but I use ORG 100h because I make .com files.
i assume that you use 8085 assembly.
In that case the argument used by LDA is a memory address the content of which
is going to be loaded to register A.The content of memory address 100 might not be 100.There is no ADA in 8085 reference,you might want to take a look at ADI (ADd Immediately ) which adds the byte in the argument to register A.
ORG 0 might be correct but that depends to memory mapping used by your system so you have to consult the manual.
In case you use another version of assembly it is going to be a different story so please specify.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.