assembly language lecture 4




Flags register status


OF
Overflow  flag
OV    (1)
NV    (0)
DF
Control  flag
DN    (1)     
UP    (0)
IF
Control  flag
EI      (1)
DI     (0)
SF
Sign flag
NG    (1)
PL    (0)
ZF
Zero flag
ZF     (1)
NF   (0)
AF
Auxiliary flag
AC    (1)
NC   (0)
PF
Parity flag
PE    (1)
PO   (0)
CF
Carry flag
CY   (1)
NC   (0)

   
Debug program

.model small
.stack 100h
.code
Main proc
Mov  ax,08000h
Mov  bx,0001h
Sub  ax,bx

Mov ah,4ch
Int 21h

Main endp
End main

 In black screen write debug  name.exe   press enter

_R 
حالة الريجسترز والفلاقز قبل تنفيذ أي تعليمه
_T
تنفيذ التعليمه الاولى

وهكذا  .. نرى حالة الفلاقز بعد كل تعليمه  .. التعليمات الي راح تؤثر على الفلاقز
Add   , sub
 اما تعليمة mov , xchg   لاتؤثر

assembly language 3


# Write a  program to : 
Display message  "Enter a small letter:"
and read a char , on the next line to print "The capital is:"

   .model small
   .stack 100h
   .data 
    m1 db "Enter a small letter:$"
    m2  db "The capital is:$"
     .code

    main proc 
    mov  ax,@data
    mov  ds,ax

    mov  ah,9
    lea  dx,m1
    int  21h

    mov  ah,1
     int  21h

    mov  bl,al

   mov  ah,2
    mov  dl,0dh
    int  21h

   mov  ah,2
   mov  dl,0ah
     int  21h

  sub  bl,20h

  mov  ah,9
 lea  dx,m2
  int 21h

  mov  ah,2
  mov  dl,bl
   int  21h

  mov  ah,4ch
  int  21h

  main endp
  end main 


computer skills (5)




LECTURE (5)


Today we r gonna study the Powe Point program … the interesting program ever ^_^

#power point  presentation : it’s a program specialized for  creating presentations

#to open  (power point ) :
Click on (start ) button > all programs >MS>MS power point 2007>the main window of  the  program  will appear directly  (p457)

#closing the program : press on  ALT+F4 or click on office button >close

#writing text on the slides :
The program presents special text boxes to write any text \ (like word)
*click over the desired text box  then start writing 
*write the subtitle in the same way 

 #  to select text , a word , delete a text ar part of it , to move the text left and right or center , thicken ,underling , italic ,to maximize , minimize ( like word program )

#to make other formats, use formatting tool bar:
Home >font >  (change the color)
More colors >to view extra color
 # to make a shadow  under the text :
Home >font >shadow    S

#saving presentation :
Press on CTRL+S keys >dialog box : select the desired location  , write name >save

#requesting a new file :
Press CTRL+N or office button >new >a new presentation will be opened

#changing the background color:
Right click on the desired slide > command list > format background >dialog box : >solid fill > color \ picture or texture fill.

NOTE: to remove the background color  or the fill effects from the slides :
Click on the box within (background) dialog box , and then click  on (automatic)

#adding  a new slide and setting its layout and design properties :
*new slide : press on CTRL +M
Home >slides>new slide

#to move between presentation slides: click over the wanted slide on the slides .

#change the slide layout:
Home>slides>layout

#inserting clip art :
Insert >illustration >clipart >organize clips>select office collection > picture

*to maximize or minimize the clip :by mouse
*to rotate :place  the mouse pointer on the green circle and start dragging .

#changing slide design :
Design tab> themes >make your changes for color ,fonts and effect

#add a background style to your presentation :
Design tab > background group> click the arrow next  to background style .

#inserting and formatting the auto shapes:
Insert tab >illustration >shapes  >click on the desired shape > it will appear directly 
*to add a text on the auto shape :right click on the desired shape  >edit text command

*formatting auto shapes : click on the shape  and use format tab (p 473)

*to delete insert auto shape :click over it  and press DELETE  key

#insert a smart art :
Insert >illustration >smart art >click on the desired diagram

*to write  text on the diagram : click on text boxes
*to delete  >press delete

#inserting (picture form file), formatting and deleting them ..
Insert >illustration >picture >dialog box (p 479)

*to resize the picture : by mouse

#undo and redo commands :    like word  program

That’s all for today's lecture …    :)

COMPUTER SKILLS LECTURE 4




LECTURE 4

#print and setting :

*page setup:
Click on (page layout)tab >page setup >orientation > select portrait or landscape

*preview before printing :
Click on office button >print >print review

*printing :
Click office button >print >print >dialog box  (p 232)
NOTE: you can directly print by pressing CTRL+P


#Bullets , Numbering :
Select  the list you wanna add numbering to ,
1-For  Bullets :Home tab>paragraph group >bullets >the bullets will appear ..
2-For Numbering : Home tab >paragraph group >click numbering


   # Insert Tables  and formatting them :
     *insert  tables:
  Click insert tab >table button >insert table >dialog box will  appear :
  specify num of  column \ row > ok  > the table will appear on the page .

start writing on the table
press (Tab ) to move between cells

*selecting  a table : move the mouse over the table until it selects the square  which appear .

*to select a row  or column or some cells :
Drag the mouse from first cell to the last one..

#Borders and shadows : ( to format table using  Border and shadow  order ) :
Click on the design tab >table style >border > click on dialog box foe border and shadow: {
>Click on the style of border
>Select the color
>Select the width of border
>ok
>select on the ( shading ) tab
>specify the background
>preview the color  }
Then click on the table to see the effects

#Insert columns and rows:
If u need  to insert rows or columns to the table :
1-To insert a column: select the column which u want to add a column (before ,after )>layout > rows &columns > click on insert right button  >a new column will appear directly  in the table  .


2-To insert a row : do the same but click  on insert below button .

#Deleting column or row : to delete any row or column :
Right click on the demanded  row or column  >select deleting rows  or delete column .

#Deleting cells :
Right click on the demanded cells >click on delete cells > click on the direction where u wanna to make a shift to  >ok
  
#Merging  cells :
If u need to merge a group of cells in one cell :
Select the cells which u wanna merge > merge group >click on merge cells >the cells will appear in one cell.

#Splitting cells :
Is the opposite of merging cell ,it divides the cell to many cells.
Select the cell >layout >merge group >click on split cells > dialog box will appear :deter  the number of columns and rows  > ok > the cell will appear  in many cells .

End of  lecture 4    ( End of MS word )
GOOD LUCK :)

Assembly language Lecture 2

 Second Lecture ...

.model small
.stack 100h
.data
msg  db  'Have a nice vacation$'
.code
main  proc
mov  ax,@data
mov  ds,ax
mov  ah,9
lea  dx,msg
int  21h
mov  ah,4ch
int  21h
main  endp
end  main


GOOD LUCK