Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I cant understand the function of ORG exactly...
Thank you
I thought ORG moves the following code up to the memory address given.
It doesn't 'move' anything, it just sets the current address, so everything after it will be assembled from that address onwards - it's a directive to the assembler.
I thought ORG moves the following code up to the memory address given.
Expanding upon what I said, just for clarity, I mean that if you go
ORG 0x0004
(something)
ORG 0x0008
(something)
It'd end up compiling into NOP's until 0x0004, the instruction, then NOP's until 0x0008.
hi AG,
It wouldnt fill the gaps in ORG 0x0004 to ORG 0x0008 with NOP's if the 'something' in your example was a program/assembler instruction.
No, it won't create any code for those addresses - unless it's been told to.
It wouldnt fill the gaps in ORG 0x0004 to ORG 0x0008 with NOP's if the 'something' in your example was a program/assembler instruction.