Off-topic Talk Where overpaid, underworked S2000 owners waste the worst part of their days before the drive home. This forum is for general chit chat and discussions not covered by the other off-topic forums.

Can all the computer programmers please read!!! I have a question for you.

Thread Tools
 
Old Jan 31, 2002 | 03:32 PM
  #51  
chroot's Avatar
Registered User
 
Joined: Aug 2001
Posts: 1,607
Likes: 0
From: Santa Clara
Default

I get paid to sit here and talk on s2ki.com to Josh about how he gets paid to look at porn. Not too bad, if I do say so myself. Except... I think that makes me a poser.

- Warren
Reply
Old Jan 31, 2002 | 03:46 PM
  #52  
Shinji's Avatar
Thread Starter
Registered User
 
Joined: Jul 2001
Posts: 1,985
Likes: 0
Default

Well no one typed this up for a TI-86 calculator.

P.S. Adding fuel to the fire...
Reply
Old Jan 31, 2002 | 04:08 PM
  #53  
chroot's Avatar
Registered User
 
Joined: Aug 2001
Posts: 1,607
Likes: 0
From: Santa Clara
Default

Real men use the TI-81.

- Warren
Reply
Old Feb 1, 2002 | 06:51 AM
  #54  
Luder94's Avatar
Moderator
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2000
Posts: 12,904
Likes: 93
From: Big Box suburb, IL
Default

Real programmers need no fluff and should be able to do this in assembly language for the 80x86.....

...man if i had the time to go back to my notes for a refresher, I'd show you young bucks a thing or two.
Reply
Old Feb 1, 2002 | 07:09 AM
  #55  
TimTheFoolMan's Avatar
 
Joined: Nov 2001
Posts: 432
Likes: 0
From: Louisville
Default

Originally posted by Luder94
Real programmers need no fluff and should be able to do this in assembly language for the 80x86.....

...man if i had the time to go back to my notes for a refresher, I'd show you young bucks a thing or two.
Nah... use a 68000 so you don't have to use all those funky addressing modes.

<sigh> I can remember when having a 16-bit index register seemed soooooooooooo cool...

Tim
Reply
Old Feb 1, 2002 | 08:10 AM
  #56  
WestSideBilly's Avatar
20 Year Member
Liked
Loved
Community Favorite
 
Joined: May 2001
Posts: 93,305
Likes: 820
From: Nowhere
Default

[QUOTE]Originally posted by RSXTypeR
[B]Well no one typed this up for a TI-86 calculator.
Reply
Old Feb 1, 2002 | 09:38 AM
  #57  
josh3io's Avatar
Registered User
25 Year Member
 
Joined: Oct 2000
Posts: 2,584
Likes: 0
From: Mountain View
Default

anyway, here's some code that should compile under tasm

Extrn Getdec:Far
Extrn Putdec:Far
Extrn PutStrng:Far

Data Segment
Prompt db "ENTER TEMPERATURE IN DEGREES FAHRENHEIT ";
Annotation db " TEMPERATURE IN DEGREES CENTIGRADE ";
Data Ends

Code Segment
Assume Cs:Code, Dsata, Ss: SSeg
main Proc Far
Mov Ax, Seg Data
Mov Ds, Ax
Mov Es, Ax

Mov Cx, 40
Lea Di, Prompt
Call Putstrng

Call Getdec

Sub Ax, 32
Mov Bx, 5
Imul Bx
Mov Bx, 9
Idiv Bx
Xchg Ax, Dx

Mov Bl, 5
Idiv Bl
Cbw
Add Ax, Dx

Mov Cx, 40
Lea Di, Annotation
Call Putstrng

Mov Bh, 0
Call Putdec

Mov Ah, 4ch
Int 21h
main Endp
Code Ends

SSeg Segment STACK
DB 254 dup(?)
SSeg Ends

End main
Reply
Old Feb 1, 2002 | 11:19 AM
  #58  
Luder94's Avatar
Moderator
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2000
Posts: 12,904
Likes: 93
From: Big Box suburb, IL
Default

I'm amazed that I could still read assembler....and I'm futher amazed that the code looks pretty kosher.
Reply
Old Feb 1, 2002 | 02:31 PM
  #59  
yamo's Avatar
Registered User
 
Joined: Jun 2001
Posts: 350
Likes: 0
From: Mountain View
Default

Originally posted by chroot
Real men use the TI-81.

- Warren
Real men use the HP 48

something about RPN!

-Marc
Reply
Old Feb 1, 2002 | 02:43 PM
  #60  
chroot's Avatar
Registered User
 
Joined: Aug 2001
Posts: 1,607
Likes: 0
From: Santa Clara
Default

yamo,

Touche. I amend my post:

Real men build their own damn analog computers out of vacuum tubes.

Don't even bring the Babbage machine up.

- Warren
Reply



All times are GMT -8. The time now is 11:23 AM.