Assembly with %include at the top – Printing Outputs Unexpected Result: just an ” S”

You included stuff at the top of your bootloader, where it will executes first. Instead include extra functions where they aren’t in the main path of execution and are only reached by call. This should work, placing the %include directives where it’s safe to put extra function or data, just like if you were writing … Read more

NASM Error Parsing, Instruction Expected

That assembly language is MASM, not NASM. For starters, NASM segments are defined differently. Instead of Code segment word public ‘CODE’ we write .section text And that “ASSUME” declaration… You must have an ancient book. That is old, old MASM code. Brings back memories from the early 1980s for me! There are many differences between … Read more