Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 4th, 2007, 05:24 AM
ronaldo09 ronaldo09 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 1 ronaldo09 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 m 32 sec
Reputation Power: 0
[Help]Assembler

Can some1 help me make assembler that can convert decimal to hexadecimal to biner to octal in 1 program....?
I need a code for make this assembler...

Reply With Quote
  #2  
Old May 5th, 2007, 04:10 AM
xnemesis64 xnemesis64 is offline
Google's No1 Supporter!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2007
Location: irc.superirc.info
Posts: 569 xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 15 h 48 m 12 sec
Reputation Power: 145
Send a message via MSN to xnemesis64 Send a message via Yahoo to xnemesis64 Send a message via Google Talk to xnemesis64 Send a message via Skype to xnemesis64
Welcome to the DevShed forums

If anyone is going to help you we need a little more information. What assembler are you using or wanting to use? There are many out ther such as FASM, GAS*, High Level, etc. They all vary in their syntax and so on.
Can I also point out that if you are simply wanting it written for you try a code bank, as that isn't our purpose here. Perhaps show us your effort at it and we can work from there?
__________________
Did this post help? Please Click The Next To My Post
Need help? Did you try Google?
Take a look over at my current work in progress http://crispycrisp.org

Last edited by xnemesis64 : May 5th, 2007 at 04:11 AM. Reason: Typo

Reply With Quote
  #3  
Old July 23rd, 2007, 05:05 AM
krylite krylite is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 17 krylite User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 51 sec
Reputation Power: 0
Are you doing this for a class? Most beginning assembly classes teach about this problem of conversion. The conversion processes involves converting binary to decimal to hex etc. Probably the easiest way is dividing by the base number and storing the remainders. Let's say you have a decimal number like 100. The smallest digit is the remainder of the first division by the base number. Let's say we want it to be hex. so 100/16 = 6 Remainder 4. or 6 R 4. 4 is our first place digit. then divide 6 by 16 which is 0 remainder 6. When we reach 0, we stop. So it's 64h which is 64 HEX = 100 Decimal. Same thing can be done with binary or any number base("radix"). And most assembly languages can do simple division , (after all assembly is one step above machine language) which most any CPU's ALU(Arithmetic Logic Unit) implements as a primary basic function( composed of logic gates). Hope I got it mostly right. Good luck.

Reply With Quote
  #4  
Old July 23rd, 2007, 12:33 PM
Yegg`'s Avatar
Yegg` Yegg` is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2004
Location: Meriden, Connecticut
Posts: 1,676 Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 13 h 50 m 24 sec
Reputation Power: 68
Send a message via AIM to Yegg`
Also, point out the operating system you are using. There are different system calls used for outputting data depending on the OS. I'm confident I could easily write such a program with GNU Assembler on Linux. If you need help, respond back before I forget that I even made this post.

PS. Just realized this thread was created in May... was posting according to the date of the guy before me. In other words, this post can be ignored.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > [Help]Assembler


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway