Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Help with Assembly


  • Please log in to reply

#1
in_texas_dallas

in_texas_dallas

    Member

  • Member
  • PipPip
  • 77 posts
I am looking to build my own ASM - Machine Language Assembler. I found all the mnemonics/opcodes.
There was something that I had a question about. I think they are called Directives, not sure though.

Basically, I need to know the beginning format of an executably program for DOS and WIN32 applications beginning with the very start of a program to when the code begins executing, main() basically

If somebody knows something, it would be greatly appreciated

NOTE: I have built a ASseMbler before on an old TRS-80 Z-80 computer, and I had the same problem, because I lacked the necessary documentation, I just sort of winged it.

Figured, that Windows won't let me just wing it.. lol.


PS: Steps to making an assembler

(1) Code Assembler in C++
(2) Used assembler coded in C++ to assemble Assembler in assembly
(3) if confused, you are not alone
  • 0

Advertisements


#2
in_texas_dallas

in_texas_dallas

    Member

  • Topic Starter
  • Member
  • PipPip
  • 77 posts
I am not sure exactly the kind of information goes here.. Just from viewing other ASM source code, I would imagine it would specify what platform it was written for as well as how much memory to reserve for the program and how big the program is\

E.g. ".i386" .. etc..

If anybody could post some good reference data with corresponding opcodes and hexadecimal numbers this would be appreciated
  • 0

#3
inoxx.net

inoxx.net

    Member

  • Member
  • PipPip
  • 16 posts
Are you just going to use the ASM code generated by the C++ compiler?
  • 0

#4
in_texas_dallas

in_texas_dallas

    Member

  • Topic Starter
  • Member
  • PipPip
  • 77 posts
I will make programs as well as libraries. IF that is what you meant.

Edited by in_texas_dallas, 03 August 2005 - 09:42 AM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP