![]() |
|
#1
|
|||
|
|||
Standard Assembly LanguagesHello all expert programmers, I'm truly new to assembly.
Therefore, I wonder what is the standard assembly language. As far as I know, all assemblers follow Intel standard. Thanks for your help. __________________
Linux is the best OS in the world. |
|
#2
|
|||
|
|||
Re: Standard Assembly LanguagesI not urge for help but i really run out of idea.
__________________
Linux is the best OS in the world. |
|
#3
|
||||
|
||||
Re: Standard Assembly LanguagesAssembly is based on the processor your targeting. For example, writing assembly for an Nvidia GPU will be different than writing for an Intel CPU. And Intel CPUs are different from ARM processors.
Once you determine which processor you will be coding for, then you just have to find out what assembly language it uses; typically the manufacturer will have that information on its web site. If you're looking for the "standard" desktop PC CPU, then you want to look for the Intel x86 assembly language. However, if you're just getting your feet wet with assembly, you may want to look at a kit that includes the CPU, motherboard, and associated equipment or perhaps an emulator. I learned assembly on an 8080 processor board kit but I also used a 68000 CPU emulator in college. __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#4
|
|||
|
|||
Re: Standard Assembly LanguagesThanks for your reply. Any good 16 bit assembly tutorial for Intel or DOS.
What is the difference between 16 bit and 32 bit assembly in window ? I read an article mentioned that we need not worried about segment anymore. Is it true ? __________________
Linux is the best OS in the world. |
|
#5
|
||||
|
||||
Re: Standard Assembly LanguagesThe only thing I know is that the address registers are bigger so you can access more memory and perform the same action in fewer steps. Beyond that, I don't know.
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#6
|
|||
|
|||
Re: Standard Assembly LanguagesI have a 16 bit simple assebmly program. I hope you can explain.
CPP / C++ / C Code:
CPP / C++ / C Code:
Why the first program cannot display ALI but AAI and second program it do ? I know hy second program do because it is a two different registers. As far as i know, a char is 8 bit where my first A is dl and second is dh and third one is dx. Why this cannot display correctly ? Thanks for your help. __________________
Linux is the best OS in the world. |
|
#7
|
|||
|
|||
Re: Standard Assembly LanguagesWhy function should put in ah register and not ax ?
For instance, mov ah, 09h; Thanks for your explanation __________________
Linux is the best OS in the world. |
|
#8
|
|||
|
|||
Re: Standard Assembly Languagesbecause some services that you are calling are checking exactly the ah register and if you put your value 9h to ax then it will look like this:
al=9h ah=0h |
|
#9
|
|||
|
|||
Re: Standard Assembly LanguagesThat means some function will specifically look in ah.
What all function will look in ah register rather than a whole ? How about if i mov al, 09h; ? How about my post 6 program ? Thanks for your help. Your help is greatly appreciated by me and others. __________________
Linux is the best OS in the world. |
|
#10
|
|||
|
|||
Re: Standard Assembly Languagesdon't ask why dos services look a function in ah it's just programmed to do like that and you can't change it.
if you use mov al, 9h it still won't work cause ah will be 0. and about your program: when you use dos function 02h you must put your value into dl and if you put it into dh it doesn't matter the function will print what is in dl |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| List of programming related questions | juvenile386 | Miscellaneous Programming Forum | 4 | 05-Jul-2007 07:49 |
| Assemblers & assembly language | BlueFireCO. | Assembly Language | 2 | 26-Mar-2007 09:56 |
| Why so many languages? What if……… | hostbreak | Miscellaneous Programming Forum | 7 | 19-Jul-2005 12:08 |
| [Tutorial] Standard I/O | aaroncohn | C Programming Language | 20 | 27-Feb-2004 21:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The