freem / asm6f

A fork of loopy's ASM6, a 6502 assembler.
96 stars 24 forks source link

INCBIN/BIN: show error if fread() results in a short read #34

Closed koitsu closed 1 year ago

koitsu commented 1 year ago

This code might look odd at first glance, especially since in other software, fread() returning less bytes than asked for can be normal when near EOF. In asm6's case, the size is calculated in real-time.

Note: this may or may not conflict with PR https://github.com/freem/asm6f/pull/33 (I would merge that one first).