Wednesday, August 4, 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:



Graphics come from paint in



MSVIDEO



Ts To Mpg



Hou Ziqiang: CCTV Spring Festival Evening show the fate of P2P to be the wave of IMS Solutions



brief TEACHING And Training Tools



Host Address Changes By Malicious Shielding PPS



Shenzhen Julong year launched China's first SIX-GENERATION LCD line



Convert mp3 to m4a



Beijing Grand Century Ocean Ka Hei signed real estate brokerage industry Co., Ltd.



Directory Audio CD Burners



In 2010, Desktop Sales Will Reach 26.002 Million



mp3 to aac CONVERTER



Let my mailbox, "all set" to complete easy collection



Thursday, July 22, 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:



Teach you from complex background using Photoshop cutout dress



"Virtual Beijing," The Official Opening Of



free download mp4 to mpeg CONVERTER



Simple Education



Evaluation Audio Presentation Tools



Mkv To Vob



Youtube to iPod Application



Procurement into the decision-making problems faced IN China



SuperBurner AVI To 3GP



C2C has to eat free meals



Convert mpeg to avi



Promote the integration of content and process



Youtube to mpg



Easy Communications Tools



Comparison Project Management



User Experience Better! See The Latest Features TT4.4.1



Tuesday, November 17, 2009

CollSoft DVD to Mobile Video Suite


CollSoft DVD to Mobile Video Suite is an All-in-One solution to create Mobile Phone 3GP movies from DVDs, TV shows and downloaded videos. The software combines DVD to 3GP Converter and 3GP Video Converter in one package for discounted price. The software is easy to use. It features superb video & audio quality and the fastest conversion techniques availabe on the market (Up to 3x faster). Features: (1) Convert DVD, MPEG, Tivo, WMV, AVI, DivX/Xvid, RM, MOV videos, etc to mobile phone 3gp video (2) Adjustable video resolution. Compress video into very small size so that a full length movie can be fitted into a 128MB memory card. (3) Built-in X!-Speed? transcode technology. Up to 3x faster than conventional converter. (4) Easy to use. Designed for dummies. (5) Compatible with all cellphones with 3gp video capability (6) Optimized settings for mobile video playback on cellphone. (7) Support conversion in batch mode.

Monday, November 2, 2009

Open AVI to iPod


Open AVI to iPod has the easy convert almost all popular video formats to iPod Video and other various video formats. It supports converting among AVI, MPG, MPEG, WMV, MP4, 3GP, MOV, RM, PSP Video, iPod Video, Zune Video, iPhone Video. VOB to iPod MP4 video and extracting audio from video file and converting to MP3, WAV, AC3, WMA, M4A, OGG, AAC etc.

Open AVI to iPod is a best video and movie converter to iPod! This product offers convert movie to iPod, Easy Convert AVI, MPEG, WMV, MOV, MP4, RM, RMVB, DivX, ASF, VOB, 3GP and etc. Open AVI to iPod helps you watch your music videos and movies on your iPod. In addition, you can also extracting audio from movie or music video and converting to iPod supported MP3 file format!

Wednesday, October 7, 2009

Extra DVD to Audio MP3 Ripper


Extra DVD to Audio MP3 Ripper is a DVD movie soundtrack ripper and DVD to MP3 ripper that can extract audio from a DVD and rip DVD audio to MP3, WMA, WAV formats.

As a DVD audio extractor, DVD Audio Ripper has fast ripping speed, exceeding all expectations. It is a real time saver. The concise interface ensures that you can use the DVD to MP3 ripper with ease even the first time. It helps you extract music from DVD and provides you luxuriant sound effects.

What can Extra DVD to Audio MP3 Ripper do for you:
1. Extracts DVD movie audio to iPod MP3 format.
2. Extracts DVD movie audio to WMA format.
3. Extracts DVD movie audio to WAV format.
4. Specify the start and end positions of DVD Audio Track and Rip it to MP3 file.
5. Converts each chapter to an individual file.
6. Quick setting panel lets you easily choose Format, Audio Bit-rate, Channels, Genre, Author, Album, and Comments for each task in the list.
7. Allows for automatic shutdown of your computer after a long batch conversion.
8. Lifetime FREE Technical Support and FREE upgrades for registered users. Free trial download. 30-day money back guarantee. Download and try it out today!

more information: http://www.dvdcopyrip.com/extra-dvd-to-mp3-ripper.html

Monday, October 5, 2009

Explosion DVD Cloner


Explosion DVD Clone is a most popular powerful dvd movie clone software. It produces perfect copies every time, and does it quickly and efficiently. Video quality of copied discs is perfect, since there's no recompression or altering of the VOB files from the original disc. Explosion DVD Clone was designed to backup your precious DVD without any quality loss. backup you DVDs in 20 mins. Explosion DVD Clone comes complete with numerous customizable video/audio controls that can deliver the highest quality viewing and listening experience.

Explosion DVD Clone is Burn DVD Video Disc: you can duplicate the DVD or DVD disc which kept in DVD content folder to DVD disc,so that you can watch the DVD from a home DVD player. Duplicate DVD disc from a DVD disc directly, real 1:1 perfectly clone dvd. Copy DVD to the harddisk, so that you can edit or play the dvd from HDD, and burn it to the DVD disc later as a DVD video disc. Explosion DVD Clone offers feature-rich navigation controls, for a more interactive and tailored DVD experience. Explosion DVD Clone is guaranteed to deliver the highest quality and personalized DVD Copy experience possible on the PC today!

Thursday, October 1, 2009

Valentino iPod Movie/Video Converter


Valentino iPod Movie/Video Converter is the easiest-to-use video converter software for Apple iPod Movie and iPod Video. It can convert almost all video format, e.g. DivX, XviD, MOV, RM, rmvb, MPEG, VOB, DVD, WMV, AVI to iPod Movie / iPod Video format. It is also a powerful iPod movie/video converter with fast conversion speed. And the output iPos movie/video supports iPod screen, you can enjoy your favorite movie on your iPod as a MPEG-4 Player. Now you can get this iPod video converter at a very competitive price!