I am trying to make a program that can convert decimals to binary. But there's no standard out that prints in binary. Can some one explain how I can do this. Any help will be appreciated. thanks.
program DecimalToBinary;
#include( "stdlib.hhf" );
static
iNumber: int8 := 8;
begin DecimalToBinary;
stdout.put( "Give me a decimal value please: " );
stdin.get( iNumber );
mov( iNumber, AH );
stdout.put( "The number ",iNumber, "in binary is %", AH, nl );
end DecimalToBinary;