Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HLA Programming I keep getting an error at lines 45 abd 47 that says Operands must be the same size and at lines 59, 64,
HLA Programming
I keep getting an error at lines 45 abd 47 that says "Operands must be the same size" and at lines 59, 64, and 69 that says "Register and memory operands must be the same size". I'm not sure what to do to fix it any help would be greatly appreciated thank you!! (Please explain with step by step instructions).
program dateDemo; #include ( "stdlib.hhf" ) static day: month: uns8; year: uns16; 10 uns8; 12 13 14 15 16 17 18 19 20 21 packedDate: dword; begin dateDemo; //Reads input stdout.put("Enter the current month, day, and year: " stdin.get( month, day, year) //Pack the data into the following bits: /15 14 13 12 11 10 9876543210 23 24 25 26 27 28 29 30 31 32 mov( 0, eax mov( eax, packedDate; // Just in case there is an error if( month > 12 ) then stdout.put "Month value is too large", nl); elseif( month0 then stdout.put "Month value must be in the range 1..12", nl) elseif( day31) then 34 35 36 37 38 39 40 stdout.put "Day value is too large", nl elseif( day-0 then stdout.put "Day value must be in the range 1..31", nl ); elseif( year>99 thern stdout.put( "Year value must be in the range 0..99", nl); 42 43 else mov( month, ebx) shl( 16, eax); 45 program dateDemo; #include ( "stdlib.hhf" ) static day: month: uns8; year: uns16; 10 uns8; 12 13 14 15 16 17 18 19 20 21 packedDate: dword; begin dateDemo; //Reads input stdout.put("Enter the current month, day, and year: " stdin.get( month, day, year) //Pack the data into the following bits: /15 14 13 12 11 10 9876543210 23 24 25 26 27 28 29 30 31 32 mov( 0, eax mov( eax, packedDate; // Just in case there is an error if( month > 12 ) then stdout.put "Month value is too large", nl); elseif( month0 then stdout.put "Month value must be in the range 1..12", nl) elseif( day31) then 34 35 36 37 38 39 40 stdout.put "Day value is too large", nl elseif( day-0 then stdout.put "Day value must be in the range 1..31", nl ); elseif( year>99 thern stdout.put( "Year value must be in the range 0..99", nl); 42 43 else mov( month, ebx) shl( 16, eax); 45Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started