Add a quick way to check the size of ponydos binary
This commit is contained in:
parent
d258a1ad81
commit
8da69da9a2
2 changed files with 8 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -25,4 +25,9 @@ clean:
|
||||||
|
|
||||||
distclean: 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
|
; Padding and boot sector signature
|
||||||
; ------------------------------------------------------------------
|
; ------------------------------------------------------------------
|
||||||
|
|
||||||
|
%ifndef SIZE
|
||||||
times 510-($-$$) db 0
|
times 510-($-$$) db 0
|
||||||
|
%endif
|
||||||
|
|
||||||
db 0x55
|
db 0x55
|
||||||
db 0xaa
|
db 0xaa
|
||||||
|
|
Loading…
Reference in a new issue