Install bin86 by entering the following commands in the terminal:
sudo apt update sudo apt install bin86
16-bit x86 assembler and loader
This is the as86 and ld86 distribution written by Bruce Evans. It's a complete 8086 assembler and loader which can make 32-bit code for the 386+ processors.