Add a quick way to check the size of ponydos binary

This commit is contained in:
Juhani Krekelä 2023-03-18 14:23:32 +02:00
parent d258a1ad81
commit 8da69da9a2
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -437,7 +437,9 @@ hang:
; Padding and boot sector signature
; ------------------------------------------------------------------
%ifndef SIZE
times 510-($-$$) db 0
%endif
db 0x55
db 0xaa