Welcome to Dream.In.Code
Getting Help is Easy!

Join 105,772 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,339 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Assmnly Language

 
Reply to this topicStart new topic

Assmnly Language, Simple subroutine question

scorpionviolinist
post 25 Jun, 2008 - 05:39 AM
Post #1


New D.I.C Head

*
Joined: 29 Feb, 2008
Posts: 36

I have to create a subroutine where the code and any other data must not be below $1000.
Is it correct to put and ORG at a subroutine?
Ex:
is this correct?
ORG $1000
REVERSE MOVE.L SR,-(SP)
....
User is offlineProfile CardPM

Go to the top of the page


perfectly.insane
post 13 Jul, 2008 - 08:35 AM
Post #2


D.I.C Regular

Group Icon
Joined: 22 Mar, 2008
Posts: 414



Thanked 26 times
My Contributions


Yes... I think you can legally put it nearly anywhere, actually, but for your purposes, the ORG should be place before the code that should originate from 0x1000. It's possible to have multiple ORG directives in a source (from my general experience, though your assembler may differ).
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 04:00PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month