Converting C to nasm assembly in 16 bit

Viewed 79

I try to convert my c code in assembly with gcc and objconv with:

bash -c "gcc -m16 -fno-asynchronous-unwind-tables -s -c -o callBIOS.inc ../project/kernel/bootloader/callBIOS.c"
%objconv% -fnasm callBIOS.inc

but when I open it, it is write:

; Disassembly of file: callBIOS.inc
; Wed Feb 10 18:48:17 2021
; Mode: 32 bits
; Syntax: YASM/NASM
; Instruction set: 80386



SECTION .text   align=1 execute                         ; section number 1, code


SECTION .data   align=1 noexecute                       ; section number 2, data


SECTION .bss    align=1 noexecute                       ; section number 3, bss

and the mode here is the 32 bit, I need it in 16 bit. I wonder if you could help me to covert my c to nasm assembly in 16 bits instead of 32 bits.

0 Answers
Related