Friday, July 30, 2010

Compilation of various source code - free



name free
page 60,132
title''FREE --- Report free space on disk''

; FREE --- a utility to report free space on
; The default or selected disk drive.
;
; Requires PC-DOS or MS-DOS 2.0.
;
; Used in the form:
; A> FREE [unit:]
; (Item in square brackets is optional)
;
; Version 1.0 July 4, 1984
; Copyright (c) 1984 by Ray Duncan
; May be freely reproduced for non-commercial use.

cr equ 0dh; ASCII carriage return
lf equ 0ah; ASCII line feed
blank equ 20h; ASCII space code
eom equ''$''; end of string marker


; Here we define a dummy segment containing labels
; For the default file control block and the command tail buffer,
; So that the main program can access those locations.
;
psp segment para public''PSP''

org 05ch
fcb label byte; default file control block

org 080h
command label byte; default command buffer

psp ends


cseg segment para public''CODE''

assume cs: cseg, ds: psp, es: data, ss: stack


get_drive proc near; get drive selection, if any,
; Otherwise obtain the identity
; Of the current disk drive.
; Return drive (1 = A, 2 = B, etc) in AL.
;
mov al, fcb; Pick up the drive code, parsed
; By DOS into the default file
; Control block.
or al, al; Is it the default?
jnz get_drive1; no, use it
mov ah, 19h; Yes, get the actual current
int 21h; drive from PC-DOS.
inc al; Increment to match FCB code.
get_drive1:; Return drive code in AL.
ret
get_drive endp


free proc far; entry point from PC-DOS

push ds; save DS: 0000 for final
xor ax, ax; return to PC-DOS
push ax
mov ax, data; make our data segment
mov es, ax; addressable via ES register.
mov ah, 30h; check version of PC-DOS.
int 21h
cmp al, 2
jae free1; proceed, DOS 2.0 or greater.
mov dx, offset msg2; DOS 1.x --- print error message
mov ax, es; and exit. First fix up DS register
mov ds, ax; so error message is addressable.
jmp free4

free1: call get_drive; get drive selection into DL.
push es; copy ES to DS for remainder
pop ds; of the program ...
assume ds: data; and tell assembler about it.
mov dl, al
add al,''A''-1; form drive letter from drive code,
mov outputb, al; and put it into the output string.
mov ah, 36h; now call DOS to get free disk space.
int 21h
cmp ax, -1; was drive invalid?
je free3; yes, go print error message
; Drive was ok, so now registers are ...
; AX = number of sectors per cluster
; BX = available clusters,
; CX = number of bytes per sector,
; DX = total clusters per drive.
; Calculate free space:
mul cx; sectors per cluster backup bin conf config data eshow_sitemap.html generate.sh log maint sitemap.html svn tmp bytes per sector
; (We assume this won''t overflow into DX)
mul bx; then backup bin conf config data eshow_sitemap.html generate.sh log maint sitemap.html svn tmp available clusters

; DX: AX now contains free space in bytes.
; SI = last byte address for converted string.
mov si, offset (outputa +9)
mov cx, 10; CX = 10, radix for conversion
call bin_to_asc; convert free space value to ASCII,
mov dx, offset output
jmp free4; and print it out.

free3: mov dx, offset msg1; illegal drive, print error

free4: mov ah, 9; print the string whose address
int 21h; is in DX.
ret; then return to DOS.

free endp


; Convert 32 bit binary value to ASCII string.
;
; Call with DX: AX = signed 32 bit value
; CX = radix
; SI = last byte of area to store resulting string
; (Make sure enough room is available to store
; The string in the radix you have selected.)
;
; Destroys AX, BX, CX, DX, and SI.
;
bin_to_asc proc near; convert DX: AX to ASCII.
; Force storage of at least 1 digit.
mov byte ptr [si],''0''
or dx, dx; test sign of 32 bit value,
pushf; and save sign on stack.
jns bin1; jump if it was positive.
not dx; it was negative, take 2''s complement
not ax; of the value.
add ax, 1
adc dx, 0
bin1:; divide the 32 bit value by the radix
; To extract the next digit for the
; Forming string.
mov bx, ax; is the value zero yet?
or bx, dx
jz bin3; yes, we are done converting.
call divide; no, divide by radix.
add bl,''0''; convert the remainder to an ASCII digit.
cmp bl,''9''; we might be converting to hex ASCII,
jle bin2; jump if in range 0-9,
add bl,''A''-''9''-1; correct it if in range AF.
bin2: mov [si], bl; store this character into string.
dec si; back up through string,
jmp bin1; and do it again.
bin3:; restore sign flag,
popf; was original value negative?
jns bin4; no, jump
; Yes, store sign into output string.
mov byte ptr [si ],''-''
bin4: ret; back to caller.
bin_to_asc endp


; General purpose 32 bit by 16 bit unsigned divide.
; This must be used instead of the plain machine unsigned divide
; For cases where the quotient may overflow 16 bits (for example,
; Dividing 100,000 by 2). If called with a zero divisor, this
; Routine returns the dividend unchanged and gives no warning.
;
; Call with DX: AX = 32 bit dividend
; CX = divisor
;
; Returns DX: AX = quotient
; BX = remainder
; CX = divisor (unchanged)
;
divide proc near; Divide DX: AX by CX
jcxz div1; exit if divide by zero
push ax; 0: dividend_upper / divisor
mov ax, dx
xor dx, dx
div cx
mov bx, ax; BX = quotient1
pop ax; remainder1: dividend_lower / divisor
div cx
xchg bx, dx; DX: AX = quotient1: quotient2
div1: ret; BX = remainder2
divide endp

cseg ends


data segment para public''DATA''

output db cr, lf
outputa db 10 dup (blank)
db''bytes free on drive''
outputb db''x:'', cr, lf, eom

msg1 db cr, lf
db''That disk drive does not exist.''
db cr, lf, eom

msg2 db cr, lf
db''Requires DOS version 2 or greater.''
db cr, lf, eom

data ends


stack segment para stack''STACK''
db 64 dup (?)
stack ends

end free







Recommended links:



MKV



Browser Tools for You



Mov To Avi



Flv to avi



Five tips for new job growth



CONVERT mp4 to mp3



Change the form size, the size of the control changes the



Observation: Dell Direct Model "short circuit" a CROSSROADS



The Economic Observer: Why choose Hong Kong-listed Alibaba



3Com's closing share price Friday rose 34.24%



Outlet, a "money map" it?



Best Animation Tools



COREL KNOCKOUT Matting examples Guide (4)



UUcall responsible for the first time to explain to stop taking



Wednesday, July 21, 2010

Science made simple with Flash MX animation scene



Preparations

1. Making ideas

English Courseware often need to design some animated scenes, we design such a scene animation: the little boy walking in the forest, a few birds flying around, the little boy stopped under a tree, and the rise of to see the nest tree.

2. Material preparation

(1) two little boys walking the pictures are named pic01.jpg, pic02.jpg (Figure 1).



(2) a background image named pic03.jpg.

(3) birds and butterflies, each one animated GIF.

Animation

1. Create a blank movie file, the file attributes parameter settings shown in Figure 2.



2. Click the [OK] button, press the previous period have learned ways to the above pictures and GIF animation into the film library panel, from the Library panel, we can see that GIF animation is continuous from the celebratory posed pictures, when, after importing them, Flash will automatically generate the appropriate movie clip.

3. The production of the little boy walk

(1) in the menu bar click "Insert / New symbol ..." command, create a movie clip, named "Little Boy", click [OK] after entering the "Little Boy" movie clip editor.

(2) in the Library panel, select the Pic01.jpg picture, drag it to "Little Boy" movie clip in the arena.

(3) select the picture, press the F8 or the implementation of the "Insert / Convert to symbol ..." command, select the "Graphic", to convert it into a graphic element.

(4) Double-click the picture into the work arena.

(5) The image file background color and background color different, to make animation more realistic, we should remove the background color of the image, which use to the toolbox in the lasso tool (Lasso Tool). Select the image, press "Ctrl + B" or the implementation of the menu bar of the "Modify / Break Apart" command, break up the file.

(6) Select the Lasso tool, it's [Options] There are three options.




[Next]



Lasso tool is primarily used to select vector objects irregular region, while the polygon lasso tool options in the main rules used to select the object area. Option is mainly used in the Mobanggongju choose the same color or similar color area, click Mobanggongju option, pop-up dialog, "Threshold" value greater that one-time choice of colors Mobanggongju more similar to region large, whereas smaller. The "Smoothing" the extent that the selected area of smooth, generally choose "Normal" mode. The same color as the background image, so select Mobanggongju, the front of the background of a click, and then [Delete] key to remove the background color. If the background color to Debu clean, we can use zoom tool to enlarge the graphics come back clear.

(7) Click the Time Line Panel icon boy, the boy returned to work the stage, select the little boy element, use the arrow keys to move, until its center coincides with the center stage.

(8) In section 10 Department press F7 key, insert a blank key frame, the Pic02.jpg drag a picture to the stage in the work of a small boy.

(9) Repeat the above (3) ~ (7) step, the selected section 20, insert a common frame by F5.

(10) Click the "Enter" key, we can see the little boy walking animation effects.

4. The production of the main scene

Little boy walking movie clip do, we will look at how he walks in the forest.

(1) back to the main scene, the background image onto the stage, the stage and make the picture height and the height of the blank line editor.

(2) implementation of the "Insert / Convert to symbol ..." command, put it into a graphic element.

(3) in section 40 to insert a key frame, and adjust the picture position.

(4) Section 1 and 40 in the picture and the blank editor position shown in Figure 3.



(5) Select the first one, right-click in the pop-up menu select "Create Motion Tween" command, joined the campaign timeline.

(6) lock Layer1 layer, a new layer Layer2, the "Little Boy" movie clip to the stage in drag.

(7) in the menu bar implementation of the "Modify / Transform / Flip Horizontal" command, the little boy turned around to walk horizontally in the direction and inserted in the key frame 40, adjust the location of the boy.

(8) select Layer2 layer of the first one, insert the campaign timeline.

(9) repeat (6) ~ (8) steps, a new layer Layer3 and Layer4, birds and butterflies were to drop to the stage in the film clip.

(10) Press "Ctrl + Enter", we can see the effect of animated friends. To the little boy to stop, we can give each layer of the first 41 to insert a key frame, just where the little boy the first 41 Layer2 Layer Insert a blank key frame, shown in Figure 4.



(11) to pic01.jpg image or drag and drop the appropriate icons to a blank key frame components to readjust the level of its direction and size (the rise of action).

(12) new layer layer5, in section 41 to insert a blank keyframe, open the "Actions-Frame" panel, joined the [stop] command.

(13) this whole animation is complete, save the file, and export it as SWF animation, so you can enjoy your own animation friends.

Summary:

This animation is achieved by moving background animation effects, background images can actually static, change other elements to achieve animation effects, interested readers can try.







Recommended links:



Mov to avi converter



Advertising is losing confidence!



Christmasgift Wii Converter



WorldCup DVD to M4V



e-cology in the Pan Micro Series 22



Converter mp4 to 3gp free



[Aion] Korean clothing and equipment LEVELING frenzy 1.2 perfect



YOUTUBE Movie to iphone Gold



Youtube Movie To ASX Now



Firewall And Proxy Servers Introduction



E-Mail List MANAGEMENT evaluation



Christmas-Idea YouTube to iPod



Matroska video file



My favorite Anti-Spam And Anti-Spy TOOLS



what is Mkv



Christmasgift DVD Creator



Monday, July 5, 2010

Youtube to DVD Freeware

It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports YouTube video or any .flv and .swf file as input file. Supports not only YouTube video, but also various video formats as input file, including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Supports a wide variety of output file format., including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Provides various profiles, these profiles can meet the needs of most people. - is the most powerful YouTube assistant on the planet.



Recommand Link:



REVIEW Java And JavaScript



Pistonsoft MP3 Tags Editor



Youtube to QuickTime Now



IWellsoft RM RMVB to 3GP iPod Converter



video to ZEN X-Fi WLAN



Avchd to mov



Easy RM Producer



Wizard Audio CD Burners



Converting DVD to Sony NWZ-E438F



Wondershare DVD to PSP Ripper



WinX-Media DVD MP4 Video Converter



MP3 WAVE to AMR



Evaluation Audio Speech