GIDForums  

Go Back   GIDForums > Computer Programming Forums > Assembly Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Jan-2008, 22:44
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 400
Peter_APIIT is on a distinguished road

Standard Assembly Languages


Hello 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  
Old 26-Jan-2008, 05:35
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 400
Peter_APIIT is on a distinguished road

Re: Standard Assembly Languages


I not urge for help but i really run out of idea.
__________________
Linux is the best OS in the world.
  #3  
Old 26-Jan-2008, 22:14
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,534
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: Standard Assembly Languages


Assembly 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  
Old 12-Mar-2008, 01:59
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 400
Peter_APIIT is on a distinguished road

Re: Standard Assembly Languages


Thanks 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  
Old 12-Mar-2008, 20:45
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,534
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: Standard Assembly Languages


The 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  
Old 13-Mar-2008, 19:35
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 400
Peter_APIIT is on a distinguished road

Re: Standard Assembly Languages


I have a 16 bit simple assebmly program. I hope you can explain.

CPP / C++ / C Code:
..model small
.stack 100h
.data
.code

main proc

        ;called 02h (Dispaly character function) to memory
        mov ah, 02h 
        mov dl, 'A'
        int 21h

        mov ah, 02h
        mov dh, 'L'
        int 21h

        mov ah, 02h
        mov dx, 'I'
        int 21h

        mov ax, 4c00h
        int 21h
main endp
end main



CPP / C++ / C Code:
.model small
.stack 100h
.data
.code

main proc

        ;called 02h (Dispaly character function) to memory
        mov ah, 02h 
        mov dl, 'A'
        int 21h

        mov ah, 02h
        mov dx, 'L'
        int 21h

        mov ah, 02h
        mov dx, 'I'
        int 21h

        mov ax, 4c00h
        int 21h
main endp
end main


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  
Old 13-Mar-2008, 20:19
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 400
Peter_APIIT is on a distinguished road

Re: Standard Assembly Languages


Why 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  
Old 14-Mar-2008, 05:02
baccardi baccardi is offline
Junior Member
 
Join Date: Mar 2006
Posts: 44
baccardi is on a distinguished road

Re: Standard Assembly Languages


because 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  
Old 14-Mar-2008, 06:19
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 400
Peter_APIIT is on a distinguished road

Re: Standard Assembly Languages


That 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  
Old 15-Mar-2008, 04:05
baccardi baccardi is offline
Junior Member
 
Join Date: Mar 2006
Posts: 44
baccardi is on a distinguished road

Re: Standard Assembly Languages


don'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 GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 06:12.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.