Why align ?
From: sugaray (ruicui_at_sohu.com)
Date: 02/27/04
- Next message: sugaray: "What's the difference between TEST and CMP ?"
- Previous message: sugaray: "When to Sign Extension and when to Zero Extension ?"
- Next in thread: Tim Roberts: "Re: Why align ?"
- Reply: Tim Roberts: "Re: Why align ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: sugaray: "What's the difference between TEST and CMP ?"
- Previous message: sugaray: "When to Sign Extension and when to Zero Extension ?"
- Next in thread: Tim Roberts: "Re: Why align ?"
- Reply: Tim Roberts: "Re: Why align ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|