Sonic and Sega Retro Message Board: The Macro Assembler AS - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

The Macro Assembler AS Questions go here

#16 User is offline Xenowhirl 

Posted 11 August 2007 - 01:02 AM

  • Posts: 175
  • Joined: 26-November 06
  • Gender:Male
  • Wiki edits:30
You can define the RAM variables in the data segment like so:

eqd macro x,{INTLABEL}
__LABEL__ = x,DATA
	endm


then use eqd instead of equ when defining the variables.

This seems to do nothing besides put a D next to the symbol in the assembler listing. Using "segment DATA" generates an error that no such segment exists, so I suspect AS has no concept of a data segment in 68000 programs.

#17 User is offline Aurochs 

Posted 18 August 2007 - 11:28 PM

  • Единый, могучий Советский Союз!
  • Posts: 2343
  • Joined: 09-January 05
  • Gender:Male
  • Project:Whatever catches my fancy
  • Wiki edits:325
Xenowhirl is right. The 68k module only allows for a CODE segment.

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users