Jump to content
Sign in to follow this  
Robert M

Question about DASM segments.

Recommended Posts

Hi,

 

I am trying to make use of segments in the Gravity Ball code, but I am not sure if I am using them correctly. The first time I declare a new segment, should I put the ORG pseudo-op before or after the SEG pseudo-op? Like this:

 

ORG $0080

SEG.U RAM

 

ORG $F000

SEG CODE

 

Or, like this:

 

SEG.U RAM

ORG $0080

 

SEG CODE

ORG $F000

 

Thanks,

Share this post


Link to post
Share on other sites

Typically you'd place your segment marker first, then one or more ORG's inside the segment. The segment contains blocks of code/data, each ORG'd to some location, not the other way around.

Cheers

A

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...