reorganize source
[com32] / src / loader.asm
index f8bb1df..885cbc4 100644 (file)
@@ -8,7 +8,6 @@
        extern boot_mem_map_size
 
 %include 'macros.inc'
-%define CON_SERIAL
 
        [bits 16]
        global _start
@@ -35,7 +34,9 @@ _start:
        jmp exit
 
 .notvm86:
+%ifdef BUG_WARNING
        call warning    ; issue a warning and allow the user to abort
+%endif
 
 %ifdef CON_SERIAL
        call setup_serial
@@ -131,6 +132,7 @@ str_errvm86 db 'Error: memory manager detected! Stop it and try again (e.g. emm3
 str_enterpm db 'Entering 32bit protected mode ...',10,0
 
 
+%ifdef BUG_WARNING
        ; warns the user about the experimental and buggy state of this
        ; protected mode system, and allows aborting if having to reboot later
        ; is not acceptable.
@@ -148,6 +150,10 @@ str_warnmsg:
        db 'return cleanly to DOS on exit. You might be forced to reboot after quitting!',10
        db 'If this is not acceptable, press ESC now to abort.',10,10
        db 'Press ESC to abort and return to DOS, any other key to continue...',10,0
+%endif ; BUG_WARNING
+
+
+; ---------------------- A20 address line enable -----------------------
 
 enable_a20:
        call test_a20