f2a081cfe4
- Added magic numbers to pretend the NEC original program version 2.70. - Added string display routine with Shift-JIS code support. - Added three nop instructions at start1 in start.s since the installaer of the IPLware put 'call $0x09ab' instruction. - Put the near return instruction at 0x9ab in selector.s. Since the Shit-JIS display routine must be located at 0x1243, the linker script file (ldscript) is applied.
27 lines
618 B
Makefile
27 lines
618 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= ${BOOT}.out
|
|
INTERNALPROG=
|
|
FILES= ${BOOT}
|
|
NO_MAN=
|
|
SRCS= start.s boot.s boot0.5.s disk.s selector.s support.s syscons.s \
|
|
putssjis.s
|
|
CLEANFILES= ${BOOT} ${BOOT}.bin
|
|
|
|
BOOT= boot0.5
|
|
|
|
# The base address that we the boot0 code to to run it. Don't change this
|
|
# unless you are glutton for punishment.
|
|
BOOT_BOOT0_ORG?= 0x0000
|
|
|
|
LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-T,ldscript
|
|
|
|
# The size of boot0.5 must be 7168 bytes
|
|
${BOOT}: ${BOOT}.bin
|
|
cat ${BOOT}.bin /dev/zero | dd of=${BOOT} bs=1 count=7168
|
|
|
|
${BOOT}.bin: ${BOOT}.out
|
|
objcopy -S -O binary ${BOOT}.out ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|