chris.vargas.773 0 Newbie Poster

Having trouble starting this program which states that i have to create a 4x4 table using int8 which a user in puts a number and that number appears as an x paatern on the table with the rest of the numbers that fill in postions be less than nputed number.

//    File:   numberCross.hla
program numberCross;
#include( "stdlib.hhf" );
static
   iNumberData : int8;

begin numberCross;
//creates the title for table
stdout.put( " X Table ", nl );

//statement telling user to enter an integer

stdout.put( "Enter a Number, Any Number,... Like 1,2 or 3" );
stdin.get( iNumberData );
mov(iNumberData, EAX );
//gets the input value and moves it to register eax
sub(1, EAX );
mov(EAX, iNumberData );
// subtracts 1 number from inputed value

stdout.put( ", iNumberData:4 ",nl );
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.