TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Learning binary file formats (2003)

37 点作者 pome将近 7 年前

2 条评论

userbinator将近 7 年前
This is not from 2003. The date on the posts is 2018.<p>fasm is a very good assembler to start with, and I&#x27;ve used it a lot for various things over the years. Unfortunately one of the executable formats it&#x27;s not able to generate (natively) is the 16-bit segmented protected-mode &quot;NE&quot; format (16-bit Windows), which forced me back to MASM for a recent project.<p>That said, like these posts show, it is possible to make fasm generate it &quot;byte-by-byte&quot; and perhaps macro-ise it for future use, although I had other constraints at the time which meant MASM was the easier choice.
评论 #17688959 未加载
评论 #17688468 未加载
fasquoika将近 7 年前
A lot of people don&#x27;t realize this, but macroassemblers are generally quite good at generating arbitrary binary data. Case in point: <a href="https:&#x2F;&#x2F;github.com&#x2F;corkami&#x2F;pocs&#x2F;tree&#x2F;master&#x2F;mini" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;corkami&#x2F;pocs&#x2F;tree&#x2F;master&#x2F;mini</a>