The ORG command is a standard (almost universal) command that tells the assembler where
the program is to reside in memory
ORG 명령어는 메모리에 상주할 프로그램의 주소를 알려준다고 되어 있는데,
JMP 와는 다른 듯 한데 무슨 차이일려나..
[출처 : www.ordersomewherechaos.com/rosso/fetish/m102/web100/docs/assemb-tutorial.html]
링크가 깨져, 구글에서 저장된 페이지로 보시기 바랍니다.
23. ORG
Label Operation Operand
optional ORG expression
The ORG directive instructs the assembler to continue the assembly from the
memory location specified by the operand. The operand must be an expression
that can be immediately evaluated, and its value must be a valid address (i.e., it
cannot be negative). Thus the operand can be a number, a known symbol, or an
expression that can be evaluated by the assembler at this point. Such an operand
is called “definable.”
[출처 : http://www.davidsalomon.name/assem.advertis/asl.pdf]
ORG expression
Sets the location counter to expression.
[출처 : MASM reference]
ORG 명령어는 메모리에 상주할 프로그램의 주소를 알려준다고 되어 있는데,
JMP 와는 다른 듯 한데 무슨 차이일려나..
[출처 : www.ordersomewherechaos.com/rosso/fetish/m102/web100/docs/assemb-
링크가 깨져, 구글에서 저장된 페이지로 보시기 바랍니다.
23. ORG
Label Operation Operand
optional ORG expression
The ORG directive instructs the assembler to continue the assembly from the
memory location specified by the operand. The operand must be an expression
that can be immediately evaluated, and its value must be a valid address (i.e., it
cannot be negative). Thus the operand can be a number, a known symbol, or an
expression that can be evaluated by the assembler at this point. Such an operand
is called “definable.”
[출처 : http://www.davidsalomon.name/assem.advertis/asl.pdf]
ORG expression
Sets the location counter to expression.
[출처 : MASM reference]
'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글
gnome-avrdude : avrdude GUI frontend for gnome (0) | 2009.04.15 |
---|---|
linux에서 AVR 컴파일하기 (0) | 2009.04.07 |
어셈블리 언어 ORG 명령 (4) | 2009.03.19 |
AVR Studio / AVR-GCC 뜯어 보기 (0) | 2008.11.18 |
AVR 시작하기 - Hardware 갖추기 (0) | 2008.11.10 |
UTM-1925 PARALLEL to USB 로 PonyProg사용하기 (2) | 2008.11.07 |
댓글을 달아 주세요
해석이라도 좀 해주시지... 귀찮네 ㅋㅋ
2009.03.19 19:21 [ ADDR : EDIT/ DEL : REPLY ]단어들이 생소하네요.
-ㅅ-;;
저 ORG가 머의 약자인지 찾을려고 했는데 나오지도 않아서 포기했어요 ㅋㅋ
2009.03.19 19:24 [ ADDR : EDIT/ DEL ]어셈블리 명령어인데, 메모리 번지를 바꾸어주는 역활을 한다는데 정확하게 이해를 못하겠더라구요
에ㅔ... ORG라... 학부때만 써봐서 가물가물 하지만 어셈블리 프로그래밍할때 맨처음 시작주소(ORiGin)를 몇번지로하겠다. 이런거 아닌가요. 프로그램 맨 위에
2009.06.23 23:28 [ ADDR : EDIT/ DEL : REPLY ]ORG 0x0100
LDA 100
ADD 200
STA 0x3100
이런식으로 넣으면 LDA 100이 0x0100 번지에 저장되고 맨처음 부팅하면 0100번지부터 읽어서 시작하는......
음... 예전일이라 틀릴 수도 있음을 감안해주시길 / :)
헙 감사합니다 ^^
2009.06.23 23:53 [ ADDR : EDIT/ DEL ]조금 더 찾아 봐야겠네요 ㅎ