Prev: RIP relative adresses
Next: ANSWERS
From: Evenbit on 11 May 2007 16:18 On May 11, 3:44 pm, Herbert Kleebauer <k...(a)unibwm.de> wrote: > Evenbit wrote: > > > (a) Write an assembly language program to accept a decimal number and > > > display it's two's complement representation in binary and hexadeimal > > > formats. > > > > (b) Write an 8086 assembly language program that will compute: > > > 2.0* log10 X for x = 0.1, 1.0, 10.0, 100.5, 1000.0, and six other > > > values using a loop. All values are in the single-precision (short > > > real) format. > > > (c ) Write a program that will input a positive integer and print > > > out the list of its prime factors. Comment on the run time of your > > > algorithm and state any limitations that you have imposed on the input > > > integers. > > > (d) Write an assembly language program to implement the queue > > > management. > > > If you provide your teacher's email address, we can save you the > > trouble of handing it in. ;) > > No, please post the answer, I really want to see it. If this are > really the questions he got, the teacher should go back to school > and learn how to formulate well specified questions. In the given > form they can't be answered. Or maybe he is using HLA where the > students only have to learn the "call" instruction to call the > proper function in the HLA standard library. You mean like this: // compile with "hla -v -sym -xg homework 2> HandMeIn.hla" program homework; #include( "STDanswers.hhf" ) begin homework; for ( mov( 1, cl ); cl < 6; inc( cl ) ) do stdout.putu8( cl ); stdout.put( ". ", answerQuestion( cl ), nl ); endfor; end homework; ;) Nathan.
From: Jim Carlock on 11 May 2007 17:38 "Umesh" <fraternitydisposal(a)gmail.com> wrote... :: SUBJECT: URGENT Open the back door and run outside for REALLY urgentness. -- Jim Carlock Post replies to the group.
From: Frank Kotler on 11 May 2007 17:47 Herbert Kleebauer wrote: > Evenbit wrote: > > >>>(a) Write an assembly language program to accept a decimal number and >>>display it's two's complement representation in binary and hexadeimal >>>formats. >>> >>>(b) Write an 8086 assembly language program that will compute: >>>2.0* log10 X for x = 0.1, 1.0, 10.0, 100.5, 1000.0, and six other >>>values using a loop. All values are in the single-precision (short >>>real) format. >>>(c ) Write a program that will input a positive integer and print >>>out the list of its prime factors. Comment on the run time of your >>>algorithm and state any limitations that you have imposed on the input >>>integers. >>>(d) Write an assembly language program to implement the queue >>>management. >> >>If you provide your teacher's email address, we can save you the >>trouble of handing it in. ;) > > > No, please post the answer, I really want to see it. If this are > really the questions he got, the teacher should go back to school > and learn how to formulate well specified questions. In the given > form they can't be answered. Or maybe he is using HLA where the > students only have to learn the "call" instruction to call the > proper function in the HLA standard library. No, with HLA you *don't* need to learn the "call" instruction! (it is alleged that one will eventually learn "real assembly" with HLA, but it occurs to me that I've never seen a question from an HLA user involving "call"...) (I strongly suspect that this is exactly what the assignment is supposed to do - doesn't look like HLA... maybe UCR std lib...?) In any case, the identical question (question 3 is expanded slightly this time) was posted to clax about a week ago under the subject "help". I wish those instructors would get their classes in synch so we only have to answer these questions once!!! My question for the OP: is "100.5" a typo, or what??? Does the instructor know there's no FPU on an 8086??? Another question for the OP: can you get your money back if you drop the course? Best, Frank
From: Evenbit on 11 May 2007 19:18 On May 11, 5:38 pm, "Jim Carlock" <anonym...(a)127.0.0.1> wrote: > "Umesh" <fraternitydispo...(a)gmail.com> wrote... > > :: SUBJECT: URGENT > > Open the back door and run outside for REALLY urgentness. > I guess that is ONE way to find out if the contractors remembered to build the back porch. ;) Nathan.
From: Frank Kotler on 11 May 2007 19:31
Evenbit wrote: > On May 11, 5:38 pm, "Jim Carlock" <anonym...(a)127.0.0.1> wrote: > >>"Umesh" <fraternitydispo...(a)gmail.com> wrote... >> >>:: SUBJECT: URGENT >> >>Open the back door and run outside for REALLY urgentness. >> > > > I guess that is ONE way to find out if the contractors remembered to > build the back porch. ;) If they didn't, *that* ought to relieve the urgency! :) Best, Frank |