Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-27-2006, 09:10 AM   #1 (permalink)
wit
 
Newb Techie

Join Date: Sep 2006

Posts: 3

wit

Default assembly lang programming

is this instruction valid: ADD [BX], 25 ??
wit is offline  
Old 09-27-2006, 10:52 AM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

Well, that depends on the processor. Assembly instructions are specific to processors. So it's impossible to know with the information you've given.
jaeusm is offline  
Old 09-27-2006, 11:13 AM   #3 (permalink)
wit
 
Newb Techie

Join Date: Sep 2006

Posts: 3

wit

Default

say an intel processor for example.
wit is offline  
Old 09-27-2006, 01:43 PM   #4 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

For future reference, you need to be more specific than giving a company name. There are thousands of processors, with each having unique (or overlapping in some cases) instruction sets. For instance, the Motorola 68HCS12 has some different instructions than the Motorola 68HC11.

Intel makes many different processors, like the IXP400 series network processors, the IOP300 series I/O processors, the IXC1100 control plane processors, etc. When you have decided what the processor is, Google that processor with the string "instruction set" and you should probably be able to find a complete listing with examples.
jaeusm is offline  
Old 10-01-2006, 07:26 PM   #5 (permalink)
 
Newb Techie

Join Date: Apr 2006

Posts: 9

codemeisterx86

Default

It all depends on the processor and assembler. I myself have mostly used FASM for assembly programming. This compiles to the x86 processor series.

Also, why do you need to know if "ADD [BX], 25" is valid? It would be easier to answer this question if you provided us with more info.
codemeisterx86 is offline  
 
Closed Thread

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On