Article View: alt.lang.asm
Article #456Re: messy calculator code.. please try this out
From: Al Borowski
Date: Sat, 17 May 2003 07:32
Date: Sat, 17 May 2003 07:32
24 lines
2535 bytes
2535 bytes
<snip> aha - a fellow ITB420 student @ QUT. Here are my comments: 1)Don't try and do the whole thing at a time. Maybe get the display going doing first (EG print calculator picture), then try to print a number to the screen (Hint: google for "add 3" math bcd). Then try and get number entry going. etc, etc. 2) Avoid 'magic number's - yes, we ment through that in the tutes, but it makes sense. and why use binary when not necessary? 3) to get full marks, we need to use decmial places and negative signs. It might be easier to use the FPU. Email me for more info. 3) RPN is easier to create then infix. My effort can be found @ http://everest.fit.qut.edu.au/~n4403584/calc.htm cheers, Al
Technical Details
Message-ID:
<27bf520c.0305162332.715846db@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed.riddles.org.uk!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!news.crayne.org!clax86!robomod!not-for-mailReferences:
<3ec2edca@news.comindico.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111ae6,e011cb8cb61ece24 X-Google-Attributes: gid111ae6,public X-Google-Thread: f7d8d,e011cb8cb61ece24 X-Google-Attributes: gidf7d8d,public X-Google-Thread: 1093da,e011cb8cb61ece24 X-Google-Attributes: gid1093da,public X-Google-Thread: 114917,e011cb8cb61ece24 X-Google-Attributes: gid114917,public X-Google-ArrivalTime: 2003-05-17 02:56:36 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed.riddles.org.uk!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!news.crayne.org!clax86!robomod!not-for-mail From: a.borowski@student.qut.edu.au (Al Borowski) Newsgroups: alt.lang.asm,alt.os.assembly,comp.lang.asm.x86,it.comp.lang.assembly Subject: Re: messy calculator code.. please try this out Approved: CLAX86 Moderators <ccrayne@crayne.org> Date: 17 May 2003 00:32:18 -0700 Organization: http://groups.google.com/ Message-ID: <27bf520c.0305162332.715846db@posting.google.com> X-CLAX86-Policy: http://www.pacificsites.com/~ccrayne/clax86.html X-CLAX86-Faq: http://www2.dgsys.com/~raymoon/x86faqs.html X-CLAX86-Info-1: Send submissions to comp-lang-asm-x86@moderators.isc.org X-CLAX86-Info-2: Send technical complaints to ccrayne@crayne.org X-CLAX86-Info-3: Send complaints about policy to ccrayne@crayne.org X-Comment: moderators do not necessarily agree or disagree with this article. References: <3ec2edca@news.comindico.com.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-0.2, required 5, NOSPAM_INC, REFERENCES, SPAM_PHRASE_01_02) X-UIDL: _AF"!N^D!!Jco"!0L=!! X-Complaints-To: abuse@supernews.com Lines: 25