Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly 370 > Re: Translating...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 15 Topic 313 of 328
Post > Topic >>

Re: Translating Basic Assembler to C?

by glen herrmannsfeldt <gah@[EMAIL PROTECTED] > Oct 1, 2007 at 10:50 AM

Howard S Shubs wrote:

> Does anyone know of a way to do this?  Of course, free is best, but 
> quality is much more im****tant.  If not to C, then to SOMEthing more 
> useful than Basic Assembler?

It is possible to do a direct translation of assembler to C,
though the C won't be very readable and won't be near as fast
as if one wrote directly in C.

It gets complicated when you get to I/O, or almost any of the
system macros.

Consider, though, starting with 16 variables representing registers.

   LR R1,R2

translates to R1=R2;

   AR R1,R2

to R1 += R2;

Names defined through DS or DC translate as uninitialized or
initialized, probably static, variables in C.  That could all
be done in an automated fa****on.

Then hand translate any system macros such as I/O.

-- glen
 




 15 Posts in Topic:
Translating Basic Assembler to C?
Howard S Shubs <howard  2007-09-30 22:09:13 
Re: Translating Basic Assembler to C?
Roger S. <rogers_lists  2007-10-01 18:35:21 
Re: Translating Basic Assembler to C?
Arthur T. <arthur@[EMA  2007-10-01 10:54:39 
Re: Translating Basic Assembler to C?
"John W. Kennedy&quo  2007-10-01 23:12:58 
Re: Translating Basic Assembler to C?
ArarghMail710NOSPAM@[EMAI  2007-10-02 01:51:03 
Re: Translating Basic Assembler to C?
richgr@[EMAIL PROTECTED]   2007-10-02 15:37:03 
Re: Translating Basic Assembler to C?
ArarghMail710NOSPAM@[EMAI  2007-10-02 18:29:46 
Re: Translating Basic Assembler to C?
richgr@[EMAIL PROTECTED]   2007-10-02 23:54:43 
Re: Translating Basic Assembler to C?
ArarghMail710NOSPAM@[EMAI  2007-10-02 20:19:22 
Re: Translating Basic Assembler to C?
glen herrmannsfeldt <g  2007-10-02 12:25:01 
Re: Translating Basic Assembler to C?
"John W. Kennedy&quo  2007-10-02 23:24:46 
Re: Translating Basic Assembler to C?
Roger S. <rogers_lists  2007-10-03 00:14:00 
Re: Translating Basic Assembler to C?
glen herrmannsfeldt <g  2007-10-01 10:50:11 
Re: Translating Basic Assembler to C?
Michel Hack <hack@[EMA  2007-10-01 11:24:14 
Re: Translating Basic Assembler to C?
glen herrmannsfeldt <g  2007-10-01 14:15:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:18:39 CDT 2008.