Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

关于align的写法

10 views
Skip to first unread message

高流水

unread,
Mar 26, 2013, 7:01:12 PM3/26/13
to osfrom...@googlegroups.com
执行书里的代码对齐用的是

   [SECTION .data]
    ALIGN n,

为什么我这样用时代码并不会对齐,但是如果将其改为

    [SECTION .data align=16]

就可以对齐了?谢谢。

xiaoyao

unread,
Mar 27, 2013, 3:48:55 AM3/27/13
to osfrom...@googlegroups.com
没必要纠结于那么多细节,毕竟我们不用维护这个系统的代码。建议你看看nasm的参考手册,这本书我看完了也就忘了差不多了,无法回答


2013/3/27 高流水 <waffe3...@gmail.com>
--
--
You received this message because you are subscribed to the Google
Groups "自己动手写操作系统" group.
To post to this group, send email to osfrom...@googlegroups.com
To unsubscribe from this group, send email to
osfromscratc...@googlegroups.com
For more options, visit this group at
https://groups.google.com/group/osfromscratch?hl=en
 
---
You received this message because you are subscribed to the Google Groups "自己动手写操作系统" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osfromscratc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

小高

unread,
Mar 27, 2013, 5:15:14 AM3/27/13
to osfrom...@googlegroups.com
嗯,谢谢。


2013/3/27 xiaoyao <xiaoy...@gmail.com>
Reply all
Reply to author
Forward
0 new messages