Why align ?

From: sugaray (ruicui_at_sohu.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 22:59:38 +0000 (UTC)

The following is MASM generated assembly code for the helloworld
program, I don't know why a 'ORG $+2' after the Hello string. is
it for the alignment purpose ? and why align ? thanx.

_DATA SEGMENT
Hello DB 'Hello, World!', 00H
        ORG $+2
Format DB '%s', 0aH, 00H
_DATA ENDS



Relevant Pages

  • String Serialization issue
    ... I created a WebService with the default ... Public Function HelloWorld() As String ... and when I invoke it on my server I get ...
    (microsoft.public.dotnet.xml)
  • UDF Error Handling is ignored. Not for everyone?
    ... Public Function HelloWorld(causeError As Boolean) As String ... On Error GoTo ErrorHandler ... HelloWorld = "ERROR HAPPENED" ...
    (microsoft.public.excel.programming)
  • Re: Searching a string with spaces and nospaces in a table.
    ... Adam -- I guess I have not made it clear.your solution actually wont help ... > FROM #org ... I dont want to hardcode the string name. ...
    (microsoft.public.sqlserver.programming)
  • Re: Searching a string with spaces and nospaces in a table.
    ... set @var = 'GC Systems' ... > INSERT INTO #org Values ... > I want to return all the 4 rows when the search criteria is LIKE GC ... I dont want to hardcode the string name. ...
    (microsoft.public.sqlserver.programming)
  • Re: SIP Quiz
    ... sixth claw, patent gate, tenth life, stretched fore, string ... structure, main concourse ... Change "nospam" to my first name and .org to .com to reply ...
    (rec.arts.sf.written)