Add a quick way to check the size of ponydos binary
This commit is contained in:
parent
d258a1ad81
commit
8da69da9a2
7
Makefile
7
Makefile
|
@ -25,4 +25,9 @@ clean:
|
|||
|
||||
distclean: clean
|
||||
|
||||
.PHONY: all run clean distclean
|
||||
size: ponydos.asm
|
||||
@$(NASM) -fbin -d SIZE -o ponydos_size.bin ponydos.asm
|
||||
@wc -c ponydos_size.bin
|
||||
@rm ponydos_size.bin
|
||||
|
||||
.PHONY: all run clean distclean size
|
||||
|
|
|
@ -437,7 +437,9 @@ hang:
|
|||
; Padding and boot sector signature
|
||||
; ------------------------------------------------------------------
|
||||
|
||||
%ifndef SIZE
|
||||
times 510-($-$$) db 0
|
||||
%endif
|
||||
|
||||
db 0x55
|
||||
db 0xaa
|
||||
|
|
Loading…
Reference in New Issue