944,116 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 4616
  • Assembly RSS
You are currently viewing page 1 of this multi-page discussion thread
Feb 14th, 2007
0

BIn files

Expand Post »
I need help as to how 2 change machine codes 2 binaries or hex like mov to mayb 101011111, yeah, u know like own compiler
Similar Threads
Reputation Points: 16
Solved Threads: 1
Junior Poster in Training
SamY is offline Offline
60 posts
since Jun 2006
Feb 14th, 2007
0

Re: BIn files

your question is not very clear -- what exactly do you want to do? This will move a binary file into ax register
Assembly Syntax (Toggle Plain Text)
  1. mov ax, 01010101B
Last edited by Ancient Dragon; Feb 14th, 2007 at 7:13 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is online now Online
21,961 posts
since Aug 2005
Feb 16th, 2007
0

Re: BIn files

u did't understand me.I meant converting instructions into binary like,
int mayb 10111 in binary conversion, u get right?
like all the machines codes to binaries.or a program into bin file. give me the equivalent of the codes in binaries
Reputation Points: 16
Solved Threads: 1
Junior Poster in Training
SamY is offline Offline
60 posts
since Jun 2006
Feb 16th, 2007
0

Re: BIn files

Click to Expand / Collapse  Quote originally posted by SamY ...
u did't understand me.I meant converting instructions into binary like,
int mayb 10111 in binary conversion, u get right?
like all the machines codes to binaries.or a program into bin file. give me the equivalent of the codes in binaries
It's called an assembler. Unless you want a text file consisting of strings of 1's and 0's; in which case there is unlikely to be any commercial or freeware program that can do that - it's too unusual, and you would have to write your own. You would need to start by downloading some technical reference manuals from Intel's website.
Reputation Points: 14
Solved Threads: 4
Junior Poster
mathematician is offline Offline
149 posts
since Nov 2006
Feb 17th, 2007
0

Re: BIn files

They're called opcodes it and depends on the processor.
example http://courses.ece.uiuc.edu/ece390/r...pcodes.html#HA
Last edited by Colin Mac; Feb 17th, 2007 at 7:14 pm.
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Feb 17th, 2007
0

Re: BIn files

Click to Expand / Collapse  Quote originally posted by Colin Mac ...
They're called opcodes it and depends on the processor.
example http://courses.ece.uiuc.edu/ece390/r...pcodes.html#HA
Given that we are told processor belongs to the x86 family, that is hardly in dispute, is it? A program which converts assembly language into machine code (opcodes) is definitely called an assembler.
Reputation Points: 14
Solved Threads: 4
Junior Poster
mathematician is offline Offline
149 posts
since Nov 2006
Feb 17th, 2007
0

Re: BIn files

It is true that some genius at AMD had the bright idea of reassigning the opcode for the inc instruction, so that is no longer available on 64 bit processors running in 64 bit mode, but otherwise opcodes generally don't change.
Reputation Points: 14
Solved Threads: 4
Junior Poster
mathematician is offline Offline
149 posts
since Nov 2006
Feb 17th, 2007
0

Re: BIn files

Given that we are told processor belongs to the x86 family...
The OP never said that. I still can't figure out what they want.
Reputation Points: 31
Solved Threads: 0
Light Poster
Purple Avenger is offline Offline
49 posts
since Jan 2007
Feb 17th, 2007
0

Re: BIn files

Given that we are told processor belongs to the x86 family, that is hardly in dispute, is it? A program which converts assembly language into machine code (opcodes) is definitely called an assembler.
Just like the OP never said he wanted a program to convert assembly to machine code, just like I never said a program that converted assembly to machine code wasn't an assembler, so that's hardly in dispute either, is it? :rolleyes:
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Feb 18th, 2007
0

Re: BIn files

Click to Expand / Collapse  Quote originally posted by SamY ...
I need help as to how 2 change machine codes 2 binaries or hex like mov to mayb 101011111, yeah, u know like own compiler
Not sure what you are wanting to do, but here are some resources to check out. First, take a look at Randall Hyde's discussion of a "Y86" simplified CPU --

some background:
3.12 Bit Fields and Packed Data
http://webster.cs.ucr.edu/AoA/Window...a7.html#999885

the "Y86" encoding explained:
5.3 Basic Instruction Design Goals
http://webster.cs.ucr.edu/AoA/Window...A.html#1013428

Then look at Daniel Sterling's SML: Simple Machine Language
http://www.lost-habit.com/sml/

You also might want to do some basic research into compiler construction. Here are a few usefull links:
http://www.faqs.org/faqs/compilers/faq/
http://www.freetechbooks.com/viewforum.php?f=14
http://cs.wwc.edu/~aabyan/464/Book/

Nathan.
Reputation Points: 99
Solved Threads: 5
Junior Poster
Evenbit is offline Offline
140 posts
since Mar 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: x86 Questions
Next Thread in Assembly Forum Timeline: Any assistance on MIPS sorting





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC