Program 1 Write an HLA Assembly program that prompts for an int8 value to inspect and then prints it in binary format. For example, here would be the program output for various entered values Gimme a

Programmer's Reference to HLA Assembly Language Typical Program Structure progID ; variable declarations progID ; statements progID ; Assembly Language Instructions Instruction Syntax Description MOV mov( source, dest ); dest = source; ADD add( source, dest ); dest += source; SUB sub( source, dest ); dest -= source; SHL shl( count, dest ); shuffles left a total of count bits in dest operand; sets carry when count=1 SHR shr( count, dest ); shuffles right a total of count bits in dest operand; sets carry when count=1 SAR sar( count, dest ); shuffles right a total of count bits in dest operand; sets carry when count=1; leaves H.O.

bit unchanged ROL rol( count, dest ); rotates left a total of count bits Available Datatypes int8 int16 int32 boolean Available I/O Routines stdout.put stdout.puti8 stdout.puti16 stdout.puti32 stdout.putb stdout.putw stdout.putd stdout.newln stdin.get stdin.geti8 stdin.geti16 stdin.geti32 stdin.getb stdin.getw stdin.getd in dest operand; sets carry when count=1 ROR ror( count, dest ); rotates right a total of count bits in dest operand; sets carry when count=1 NOT not( ); inverts the bits of the dest operand AND and( source, dest ); bitwise logical AND; result placed in dest operand OR or( source, dest ); bitwise inclusive OR; result placed in dest operand XOR xor( source, dest ); bitwise exclusive OR; result placed in dest operand LAHF lahf( ); pushes the lower 8 bits of EFLAGS register into AH