For those interested in operating system development, this snippet tests status of A20. It is the line that allows memory beyond 1 meg to be addressed, otherwise it will just wrap around which some applications and versions of DOS depend on.
My bootloader MBR1_44 has switched system to protected (32 bit) mode at this point.
Written for FASM 1.71.17