Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Learning binary file formats (2003) (flatassembler.net)
37 points by pome on Aug 4, 2018 | hide | past | favorite | 5 comments


This is not from 2003. The date on the posts is 2018.

fasm is a very good assembler to start with, and I've used it a lot for various things over the years. Unfortunately one of the executable formats it's not able to generate (natively) is the 16-bit segmented protected-mode "NE" format (16-bit Windows), which forced me back to MASM for a recent project.

That said, like these posts show, it is possible to make fasm generate it "byte-by-byte" and perhaps macro-ise it for future use, although I had other constraints at the time which meant MASM was the easier choice.


My original title - "Learning binary file formats (work in progress) from flat assembler Author". Someone edited it and I can't change title anymore looks like. :-)


calling dang...


> This is not from 2003. The date on the posts is 2018.

The OP likely mistook the posters Join Date for the date it was posted:

> Joined: 16 Jun 2003


A lot of people don't realize this, but macroassemblers are generally quite good at generating arbitrary binary data. Case in point: https://github.com/corkami/pocs/tree/master/mini




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: