Submitted by Sharath Reddy on Thu, 2012-10-11 10:15.
Comment Id: 91178
Programs that were created using the assembly language consist of sequence of source statements. Every source statement in the program consists of a sequence of ASCII characters where it ends in a hard return. Each source statement may include up to four fields: a label, an operation [instruction mnemonic or assembler directive], an operand, and a comment.
A statement in an assembly language contains the following fields:
Label Field — used to define a symbol.
Operation Field — this defines the pseudo-op or the operation code.
Operand Field — this indicates either the data or the address.
Comment Field — this is where the programmer can enter the documentation of the program.
But when creating a program, it is not required that all 4 fields should be present in one statement. Sometimes a line may just contain a comment. The first token in these lines must begin with an asterisk [*] or a semicolon [;] like the ones below.
I have here some list of color codes....
'A' - white foreground and blue background (ASCII 0x41).
'B' - blue foreground and white backkground (ASCII 0x42).
'x' - red foreground and green background (ASCII 0x78).
'y' - green foreground and red background (ASCII 0x79).
'z' - nomar attribute and blilnking (0x7A).
'backspace' - red background (0x20).
example:
mov ax, 0x4720
Try this examples for practice..
here are some links for tutorials,, http://www.youtube.com/watch?v=4VNgd3WM95E
http://showmedo.com/videotutorials/series?name=qdrYRTz8Z
Programs that were created using the assembly language consist of sequence of source statements. Every source statement in the program consists of a sequence of ASCII characters where it ends in a hard return. Each source statement may include up to four fields: a label, an operation [instruction mnemonic or assembler directive], an operand, and a comment.
A statement in an assembly language contains the following fields:
But when creating a program, it is not required that all 4 fields should be present in one statement. Sometimes a line may just contain a comment. The first token in these lines must begin with an asterisk [*] or a semicolon [;] like the ones below.
; This line is a comment
* This is a comment too
* This line is a comment
For the rest of the guide, you may visit Developing Software in Assembly Language | Syntax.
Regards
Sharath Reddy