Tears of the Sun
A movie based on the clashes in Africa, help
How the races fight in the congo?
that DVD has special features like interviews of the victims..etc
Really good movie after black hack down…
March 22, 2007
· Pratyush · Comments Closed
Posted in: art & culture
Border Town (2007)
damn good movie….
I really like the way the movie ended….
Human rights activists…have to work on these kinda issues too…
March 20, 2007
· Pratyush · Comments Closed
Posted in: art & culture
????? ??????? ????????????……
??????? ???????? ??. ???????? ????????? ???????? ??.. ?? ????????. ? ?????.????? ?????. ????? ??????? ?????????. ???? ?? ???????????.”?????” ????????????..
?????, sildenafil ?????????? ????????? ???????? ???????????. ????? ???? ????? ?????? ???????? ??????????? ??????? ??? ?????????? ????? ?????. ????????? ???????? ???????? – ????, treat ??????, ????, ?????, ????, ???? ??? ??? ?????? ????? ????? ?????? ???????. ???????? ???????? ???????? ???? ???????, ???? ??????? ???????? ?????????????? ?????????? ????? ?????? ????????.
????? – ???? ??????????? ??????? ????? ???????????? !
???? ??????????? ??????? ????? ???????????? !
March 18, 2007
· Pratyush · Comments Closed
Posted in: art & culture
Assembly Language Program to Print Date,Time and Day of the week
;*********************
;Pratyush kotturu
;No:#28
;CwID:#500-19-313
;ASSIGNMENT 1
;E-mail:[email protected]
;*********************
;Started: March 1st 2007
;Last Modified: March 9th 2007
;*********************
.MODELÂ Â Â SMALL
.STACKÂ Â Â 200h
.DATA
; Constants and Variable Declarations
AsciiOut DBÂ Â Â Â Â Â Â 5 DUP (‘ ‘) ; Output area for To_Ascii procedure
; Display Messages
saveday db ?
twelve db 4
daystab db ‘Sun$Â ‘, site ‘Mon$Â ‘
db ‘Tue$Â ‘, cialis ‘Wed$Â ‘
db ‘Thu$Â ‘, hospital ‘Fri$Â ‘
db ‘Sat$Â ‘
Msg1Â Â DBÂ Â Â Â Â 0DH,0AH,0Dh,0Ah,’************************’
DBÂ Â Â Â Â Â Â ‘************************************’,0Dh,0Ah,0Dh,0Ah
DBÂ Â Â Â Â Â Â ‘Â Â Hello -I am’
DBÂ Â Â Â Â Â Â ‘ Pratyush kotturu & class ID # 28′
DBÂ Â Â Â Â Â Â 0Dh,0Ah
DBÂ Â Â Â Â Â Â 13,10,’**************************’
DBÂ Â Â Â Â Â Â ‘***********************************’
DBÂ Â Â Â Â Â Â ‘$’
Msg2Â Â Â Â DBÂ Â Â Â Â Â Â 13,10,’Â Â The Current Date is :Â ‘
MsgMon  DB       2 DUP (‘ ‘) ; month
DBÂ Â Â Â Â Â Â ‘/’
MsgDay  DB       2 DUP (‘ ‘) ; day
DBÂ Â Â Â Â Â Â ‘/’
MsgYear DB       4 DUP (‘ ‘) ; edited year
DBÂ Â Â Â Â Â Â 0Dh,0Ah
DBÂ Â Â Â Â Â Â 13,10,’**************************’
DBÂ Â Â Â Â Â Â ‘***********************************’
DBÂ Â Â Â Â Â Â ‘$’
Msg3Â Â Â Â DBÂ Â Â Â Â Â 13,10, ‘ The Current Time is: ‘
MsgHr   DB       2 DUP (‘ ‘) ; Hour
DBÂ Â Â Â Â Â Â ‘:’
MsgMin  DB       2 DUP (‘ ‘) ; Minute
DBÂ Â Â Â Â Â Â ‘:’
MsgSec  DB       2 DUP (‘ ‘) ; Second
DBÂ Â Â Â Â Â Â ‘ ‘
AmPm    DB       2 DUP (‘ ‘) ; AM or PM
DBÂ Â Â Â Â Â 0DH,0AH,0Dh,0Ah
DBÂ Â ‘$’
Msg4Â Â Â Â DBÂ Â Â Â Â Â 0DH,0AH,0Dh,0Ah
DBÂ Â Â Â Â Â 13,10, ‘Â Today is : ‘
DBÂ Â Â Â Â Â ‘$’
MsgAgain DBÂ Â Â Â Â Â Â 0DH,0AH,0Dh,0Ah; cr,lf
DBÂ Â Â Â Â Â Â ‘Press t to update time, d for date, w for day and enter to exit. ‘
DBÂ Â Â Â Â Â Â Â 0DH,0AH,0Dh,0Ah
DBÂ Â Â Â Â Â Â ‘$’
MsgEnd  DB       13,10,13,10 ; cr,lf,cr,lf
DBÂ Â Â Â Â Â Â ‘Â Â Thank You – Have a Nice Day!’,13,10
DBÂ Â Â Â Â Â Â ‘Â Â Press the Enter Key to End’,13,10
DBÂ Â Â Â Â Â Â 2 DUP (13,10)Â ; 2 cr,lf
DBÂ Â Â Â Â Â Â ‘$’
;Â Â Â Â Â Â Â Area to input data for the Keyboard
KbBuff  DB     3          ; max no of input chars
; ( +1 for the enter key)
KbNoRead DBÂ Â Â Â Â 0Â Â Â Â Â Â Â Â Â Â ; No of chars actualy read
; This field is returned
; ( the enter key don’t count)
KbIn1Â Â Â DBÂ Â Â Â Â ‘ ‘Â Â Â Â Â Â Â Â ; room for char 1
KbIn2Â Â Â DBÂ Â Â Â Â ‘ ‘Â Â Â Â Â Â Â Â ; room for char 2
KbIn3Â Â Â DBÂ Â Â Â Â ‘ ‘Â Â Â Â Â Â Â Â ; room for char 3
KbEntKey DBÂ Â Â Â Â ‘ ‘Â Â Â Â Â Â Â Â ; room for the enter key (0Dh)
.CODE
;The Main Program
Main  PROC                 ; Start the MAIN Procedure
mov      ax,@data   ; Set up the DS Reg
mov      ds,ax
DoAgain:
call     ClrScreen  ; Clear the screen
call     PrtMsg     ; Print to the screen
;call     ClrScreen  ; Clear the screen
call     PrtMsg_T   ; Print to the screen
call     ReadKB     ; Read from the Keyboard
cmp      KbIn1,’t’  ; Did they enter a t?
je       DoAgain    ; True – Then do it again
call     ClrScreen  ; Clear the screen
call     PrtMsg_D    ; Print to the screen
call     ReadKB     ; Read from the KB
cmp      KbIn2,’d’  ; Did they enter a d?
je       DoAgain    ; True – Then do it again
call     ClrScreen  ; Clear the screen
call     PrtWDay     ; Print to the screen
call     ReadKB     ; Read from the KB
cmp      KbIn3,’w’  ; Did they enter a w?
je       DoAgain    ; True – Then do it again
call     ClrScreen  ; Clear the screen
call     PrtEnd     ; Print the ending message
;Â Â Â Â Â Â Â End the Program and return to the Operating System
mov      ax,4C00h   ; load ah and al
int      21h        ; tell OS to end the prog
Main    ENDP               ; End of the MAIN Procedure
ClrScreen  Proc            ; Procedure to clear the screen
push     ax         ; Save all registers used in this proc
push     bx
push     cx
push     dx
;Â Â Â Â Â Â Â call BIOS to Clear the Screen
mov      ah,6       ; Clear the screen command
mov      al,0       ; clear the whole screen
mov      ch,0       ; Start X Cord.
mov      cl,0       ; Start Y Cord.
mov      dh,24      ; End X Cord.
mov      dl,79      ; End Y Cord.
mov      bh,7       ; Clear to normal Attributes
int      10h        ; BIOS interrupt
;Â Â Â Â Â Â Â Set the cursor to line 1 position 1
mov      ah,2       ; Set Cursor command
mov      dh,1       ; row 1
mov      dl,1       ; column 1
mov      bh,0       ; page 0
int      10h        ; BIOS interrupt
pop      dx         ; Restore all registers
pop      cx
pop      bx
pop      ax
ret                  ; Returned from the called proc
ClrScreen ENDP
PrtMsg  PROC               ; Write the message to the screen
push     ax         ; Save all registers
push     bx
push     cx
push     dx
;Â Â Â Â Â Â Â Call OS to Print the Message
mov      dx,OFFSET Msg1
mov      ah,9h      ; Function code for display string
int      21h        ; call OS to do it
pop      dx         ; Restore all registers
pop      cx
pop      bx
pop      ax
ret
PrtMsg  ENDP
PrtMsg_DÂ Â PROCÂ Â Â Â Â Â Â Â Â Â Â Â Â Â ; Write the message to the screen
push     ax         ; Save all registers
push     bx
push     cx
push     dx
;Â Â Â Â Â Â Â Call OS to Print the Message
; mov      dx,OFFSET Msg2
; mov      ah,9h      ; Function code for display string
; int      21h        ; call OS to do it
;Â Â Â Â Â Â Â Â Â Compose the date message
call     GetDate    ; Read and Format the Date
mov      dx,OFFSET Msg2
mov      ah,9h      ; Function code for display string
int      21h        ; call OS to do it
pop      dx         ; Restore all registers
pop      cx
pop      bx
pop      ax
ret
PrtMsg_DÂ Â ENDP
PrtMsg_TÂ PROCÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â ; Write the message to the screen
push     ax         ; Save all registers
push     bx
push     cx
push     dx
;         Compose the time message
call     GetTime    ; Get the current time of Day.
mov      dx,OFFSET Msg3
mov      ah,9h      ; Function code for display string
int      21h        ; call OS to do it
pop      dx         ; Restore all registers
pop      cx
pop      bx
pop      ax
ret
PrtMsg_TÂ Â ENDP
PrtWDay proc
push     ax         ; Save all registers
push     dx
;Â Â Â Â Â Â Â Call OS to Print the Message
mov      dx,OFFSET Msg4
mov      ah,9h      ; Function code for display string
int      21h        ; call OS to do it
mov   ah,2Ah
int   21h
mov   saveday,dl
call  b10daywk
pop      dx         ; Restore all registers
pop      ax
ret
PrtWDay ENDP
b10daywk proc near
mul twelve
lea dx,daystab
add dx,ax
mov ah,09h           ;request display
int 21h              ;call interrupt service
ret
b10daywk endp
PrtEnd  PROC               ; Print the ending message
push     ax         ; Save all registers
push     bx
push     cx
push     dx
;Â Â Â Â Â Â Â call OS to Print the Message
mov      dx,OFFSET MsgEnd
mov      ah,9h      ; Function code for display string
int      21h        ; call OS to do it
;Â Â Â Â Â Â Â call OS to read any character from the keyboard
mov      ah,0Ah     ; Read keyboard function
mov      dx,offset KbBuff ; the input area
int      21h        ; Call OS to do it
pop      dx         ; Restore all registers
pop      cx
pop      bx
pop      ax
ret
PrtEnd  ENDP
GetTime PROC
;Â Â Â Â Â Â Â GetTime will read the current time from the system and
;       convert it to Ascii characters. If the Hour is 00 to 11,
;Â Â Â Â Â Â Â it will insert “AM” in AmPm. If the hour = 12 it will
;Â Â Â Â Â Â Â insert “PM”. If the Hour is 13 to 23 it will insert “PM”
;Â Â Â Â Â Â Â and subtract 12 from Hour.
;Â Â Â Â Â Â Â It will move the Hour to MsgHour (2 digits), minutes to MsgMinutes
;Â Â Â Â Â Â Â Â Â (2 digits), and seconds to MsgSec (2 digits).
push     ax         ; Save all registers
push     bx
push     cx
push     dx
mov      ah,2Ch     ; get the current time
int      21h
;On return – Hour in CH – Minute in CL – Sec in DH – 1/100 Sec in DL
;Set up the AM/PM Message
mov      AmPm,’P’   ; move PM to the message
mov      AmPm+1,’M’
cmp      ch,12      ; compare the hour to 12
je       AmPm_Ok    ; hour = 12 – just print it
ja       IsPM       ; hour > 12 – print PM and sub 12 from the hour
mov      AmPm,’A’   ; hour < 12 – move in AM
jmp      AmPm_Ok
IsPM:
sub     ch,12      ; sub 12 hours
AmPm_Ok:
;Â Â Â Â Â Â Convert the hours to Ascii
mov      al,ch       ; move the hour to AX
mov      ah,0        ; clear the high order of the reg
call     To_Ascii    ; convert it to characters
;Â Â Â Â Â Â Â Hours will be in AsciiOut in the form 000HH.
mov      al,AsciiOut+3 ; get the fourth digit
mov      MsgHr,al     ; save the first digit
mov      al,AsciiOut+4 ; get the fifth digit
mov      MsgHr+1,al   ; save the second digit
;Â Â Â Â Â Â Â Convert the minutes to Ascii
mov      al,cl        ; move the minutes to AX
mov      ah,0         ; clear the high order of the reg
call     To_Ascii     ; convert it to characters
;Â Â Â Â Â Â Â Minutes will be in AsciiOut in the form 000MM.
mov      al,AsciiOut+3 ; get the fourth digit
mov      MsgMin,al    ; save the first digit
mov      al,AsciiOut+4 ; get the fifth digit
mov      MsgMin+1,al  ; save the second digit
;Â Â Â Â Â Â Â Convert the seconds to Ascii
mov      al,dh        ; move the seconds to AX
mov      ah,0         ; clear the high order of the reg
call     To_Ascii     ; convert it to characters
; Seconds will be in AsciiOut in the form 000SS.
mov      al,AsciiOut+3 ; get the fourth digit
mov      MsgSec,al    ; save the first digit
mov      al,AsciiOut+4 ; get the fifth digit
mov      MsgSec+1,al  ; save the second digit
pop      dx           ; Restore all registers
pop      cx
pop      bx
pop      ax
ret
GetTime ENDP
;**************************************************************
GetDate PROC
;Â Â Â Â Â Â Â GetDate will read the current date from the system and
;       convert it to Ascii characters. It will then move the
;Â Â Â Â Â Â Â Year to MsgYear (4 digits), the Month to MsgMonth (2 digits)
;Â Â Â Â Â Â Â and the Day to MsgDay (2 digits).
push     ax            ; Save all registers
push     bx
push     cx
push     dx
mov      ah,2Ah        ; get the current date
int      21h
;Â Â Â Â Â Â Â Convert the Year from Binary to ASCII
mov      ax,cx         ; move the year to AX
call     To_Ascii      ; convert it to characters
;Â Â Â Â Â Â Â Year will be in AsciiOut in the form 0YYYY.
mov      al,AsciiOut+1 ; get the 1st digit
mov      MsgYear,al    ; move it to the message area
mov      al,AsciiOut+2 ; get the second digit
mov      MsgYear+1,al  ; save the second digit
mov      al,AsciiOut+3 ; get the third digit
mov      MsgYear+2,al  ; save the third digit
mov      al,AsciiOut+4 ; get the fourth digit
mov      MsgYear+3,al  ; save the fourth digit
;Â Â Â Â Â Â Â Convert the Month from Binary to ASCII
mov      al,dh         ; move the month to AX
mov      ah,0          ; clear the high order of the reg
call     To_Ascii      ; convert it to characters
;Â Â Â Â Â Â Â Month will be in AsciiOut in the form 000MM.
mov      al,AsciiOut+3 ; get the fourth digit
mov      MsgMon,al     ; save the first digit
mov      al,AsciiOut+4 ; get the fifth digit
mov      MsgMon+1,al   ; save the second digit
;Â Â Â Â Â Â Â Convert the Day from Binary to ASCII
mov      al,dl         ; move the day to AX
mov      ah,0          ; clear the high order of the reg
call     To_Ascii      ; convert it to characters
;Â Â Â Â Â Â Â Day will be in AsciiOut in the form 000DD.
mov      al,AsciiOut+3 ; get the fourth digit
mov      MsgDay,al     ; save the first digit
mov      al,AsciiOut+4 ; get the fifth digit
mov      MsgDay+1,al   ; save the second digit
pop      dx            ; Restore all registers
pop      cx
pop      bx
pop      ax
ret
GetDate ENDP
;****************************************************************************
To_Ascii PROC
;Â Â Â Â Â Â Â To_Ascii – Proc to take an unsigned binary value located in the
;Â Â Â Â Â Â Â AX Reg and convert it to a string of printable ASCII characters.
;Â Â Â Â Â Â Â The results are placed in AsciiOut (5 bytes in length).
push     ax        ; Save all registers
push     bx
push     cx
push     dx
push     si
mov      cx,5      ; number of out put characters
mov      si,4      ; Index value to ASCIIOut
mov      bx,10     ; value to divide by
Ascii_Loop:
mov      dx,0      ; clear dx for divide
div      bx        ; divide by 10
add      dx,30h    ; convert remainder to ascii
mov      AsciiOut[si],dl  ; move the char to the output
dec      si        ; sub 1 from the index
loop     Ascii_Loop ; do it 5 times
pop      si        ; Restore all registers
pop      dx
pop      cx
pop      bx
pop      ax
ret
To_Ascii ENDP
ReadKBÂ Â PROCÂ Â Â Â Â Â Â Â Â Â Â Â Â Â ; Read characters from the Key Board
push     ax        ; Save all registers
push     bx
push     cx
push     dx
;Â Â Â Â Â Â Â call OS to Print the Message
mov      dx,OFFSET MsgAgain
mov      ah,9h      ; Function code for display string
int      21h        ; call OS to do it
;Â Â Â Â Â Â Â call OS to read the input from the keyboard
mov      ah,0Ah     ; Read keyboard function
mov      dx,offset KbBuff ; the input area
int      21h        ; Call OS to do it
pop      dx         ; Restore all registers
pop      cx
pop      bx
pop      ax
ret
ReadKBÂ Â ENDP
ENDÂ Â Â Â Â Â main
March 12, 2007
· Pratyush · Comments Closed
Posted in: Tech
తెలà±à°—ౠఇపà±à°ªà±à°¡à± నా à°¬à±à°²à°¾à°—ౠలో కూడా వసà±à°¤à±à°‚దోచ౅.
à°¸à±à°µà±‡ à°šà±à°¹ వారి సౌజనà±à°¯à°‚తో నా à°¬à±à°²à°¾à°—ౠలో తెలà±à°—ౠసాదà±à°¯à°®à°¯à°¿à°¨à±à°¦à°¿.
March 12, 2007
· Pratyush · Comments Closed
Posted in: Tech
Day Light Saving….
When i woke up today, site Strange happend. My Wall Clock is showing 10:35 am where as my Lappy is showing 11:35 am… Stunned…
Then had the understanding that Day Light Saving Started. Pch…I lost an Hour in My life….
March 11, 2007
· Pratyush · Comments Closed
Posted in: general
Got new Mac book
Today i bought new Mac book
its cool …and presently hacking it…
March 1, 2007
· Pratyush · Comments Closed
Posted in: Personal
Learning Netware.312
In the first Networking Lab1
Learning Netware 3.12 installation, ed peer-to-peer network and all the stuff…
February 28, 2007
· Pratyush · Comments Closed
Posted in: Tech
Connecting Mysql to a PHP form…
Presently hacking how we can store a PHP form data into a MySql Database…
The form is submitted to a .dat file…but it is not storing in the localhost database…
Hope..i hack that code…
February 20, 2007
· Pratyush · Comments Closed
Posted in: Tech
*Movie*Pirates of Silicon Valley…..
Pirates of Silicon Valley..
The movie b/w Apple Inc and Microsoft….
Really good movie on the rivalry…
February 16, 2007
· Pratyush · No Comments
Posted in: fun