Archive for August 13th, 2007

Easy assembly by using ASSEM.OBJ

Monday, August 13th, 2007

This library is just for my own fun, but others may use it. As far as I know, it is the easiest way to create simple program by using assembly language. The lack of this library is just for dos operating only.
You can still run this program in Microsoft Windows 95 to Windows XP from command prompt.
This library is called dedeslib.obj
All commands always use \ (backslash) sign to begin.
Maximum column is 79.
Maximum row is 24
Here are some commands that included in object file:
Print character to the right direction
The symbol used to print is \?Rnumbercharacter
\?R09* print * 9 times to the right from cursor position.
Create single box
The symbol used to create single box is \xrow,colS
Don’t forget to insert coma between row and column
\x10,05S create single box at row 10 and column 5
Create double box
The symbol used to create single box is \xrow,colD
Don’t forget to insert coma between row and column
\x11,09S create single box at row 11 and column 9
Using tabs with certain color
\t0 cursor position in column 0 with 0Fh color
\t1 cursor position in column 10 with 0Ah color
\t2 cursor position in column 20 with 0Bh color
\t3 cursor position in column 30 with 0Ch color
\t4 cursor position in column 40 with 0Dh color
\t5 cursor position in column 50 with 0Eh color
\t6 cursor position in column 60 with 09h color
\t7 cursor position in column 70 with 07h color
Using certain color to print character, word or sentences
\&09 the output color is 09h
\&0A will produce 0Ah color
\&0B will produce 0Bh color
\&0C will produce 0Ch color
\&0D will produce 0Dh color
\&0E will produce 0Eh color
\&0F will produce 0Fh color
\&F1 will produce 1Fh color
\&F2 will produce 2Fh color
\&F3 will produce 3Fh color
\&F4 will produce 4Fh color
\&F5 will produce 5Fh color
\&F6 will produce 6Fh color
Cursor position
To set cursor position is easy by using \@row,column
Don’t forget to insert coma between row and column
\@12,15 will set cursor positon to row 12 and column 15
Set to the next line
\~0 to the next line to column 0
\~1 to the next line to column 1
These commands work for those number only.
Please see Assembly for fun topic in this site to see how to use this library in Assembly category.