please can you give me a code for converting binary to octal using 8086 assembly language;

It looks like you need to read the 8086 manual. Sorry, but we don't do your homework for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.