BIOS Code

Hi,

We have a 32-bit code which is now supposed to be recompiled along
with the initialization routine of the BIOS. As we all know, today’s
BIOS ROMs are 16 bit BIOS. Is there a way to compile this code
without changing or will the BIOS routine be able to access 32-bit
registers. That won’t be possible because BIOS would normally execute
in real mode. Real mode won’t have access to 32-bit environment.

Any possible solutions? I would appreciate your advice / suggestions.

Thanks for your time.
Niraj