-
Notifications
You must be signed in to change notification settings - Fork 13
How to build
640KB edited this page Jan 3, 2024
·
4 revisions
GLaBIOS is built using MASM 5.0 or MASM 6.1. Note: MASM 5.1 has some issues that cause problems with the build process so is not recommended.
-
MASM GLABIOS;
(note: add/L
to create the.LST
listing file). -
LINK GLABIOS;
Will create GLABIOS.EXE.
-
ML.EXE /I. /Zm /c GLABIOS.ASM
(note: add/Fl
to create the.lst
listing file) -
LINK GLABIOS;
Will create GLABIOS.EXE.
You may also specify CPU and ARCH types on the command line:
- MASM 5:
MASM /L /DCPU_TYPE="8" /DARCH_TYPE="T" GLABIOS;
- MASM 6:
ML.EXE /I. /Fl /Zm /DCPU_TYPE='8' /DARCH_TYPE='T' /c GLABIOS.ASM
- Run
GLA2ROM GLABIOS
(included insrc
folder) to convert to an 8 KiB ROM file.
Alternate step 3:
- Convert EXE manually by removing the EXE header (the first 512 bytes of the EXE file) and extracting the last 8 KiB
- Calculate 8-bit checksum byte and insert into relative file offset
1FFF
in GLABIOS.ROM. The low byte of sum of all bytes should equal0
.