For the past few months in my class we've been writing programs in Pep/9 in machine language, which made it easy to figure out which memory addresses need to be loaded and used to store data. I'd just write it on paper and count down the addresses like this. If its D1 FC 15 then
- D1
- FC
- 15
etc.
Now we're using assembly language where you assign it like:
LDBA 0x000D,d
Now I understand what this means but I do not understand how I'm supposed to figure out what memory address I store data when writing a program from scratch. How do I know to load it from 000D if I cant count down on paper the memory addresses? The memory dump doesn't give a clear answer. I just cannot grasp the concept of it for some reason and my textbook doesn't explain, its as if the answer is extremely basic that it'd assume I know.
Am I just supposed to count down like this? LDBA 0x000D,d
- 0x
- 00
- 0D
etc.
Because this doesn't seem right nor does it workout.
Or am I supposed to write the program in machine language to figure out the memory addresses, then translate to assembly and assign it like that?