Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.241.658 Times

AppleII::Disk 0.08

  Date Added: August 07, 2010  |  Visits: 1.350

AppleII::Disk

Report Broken Link
Printer Friendly Version


Product Homepage
Download (103 downloads)



AppleII::Disk is a Perl module for block-level access to Apple II disk image files. SYNOPSIS use AppleII::Disk; my $disk = AppleII::Disk->new(image.dsk); my $data = $disk->read_block(1); # Read block 1 $disk->write_block(1, $data); # And write it back :-) AppleII::Disk provides block-level access to the Apple II disk image files used by most Apple II emulators. (For information about Apple II emulators, try the Apple II Emulator Page at http://www.ecnet.net/users/mumbv/pages/apple2.shtml.) For a higher-level interface, use the AppleII::ProDOS module. AppleII::Disk provides the following methods: $disk = AppleII::Disk->new($filename, [$mode]) Constructs a new AppleII::Disk object. $filename is the name of the image file. The optional $mode is a string specifying how to open the image. It can consist of the following characters (case sensitive): r Allow reads (this is actually ignored; you can always read) w Allow writes d Disk image is in DOS 3.3 order p Disk image is in ProDOS order If you dont specify d or p, then the format is guessed from the filename. .PO and .HDV files are ProDOS order, and anything else is assumed to be DOS 3.3 order. If you specify w to allow writes, then the image file is created if it doesnt already exist. $size = $disk->blocks([$newsize]) Gets or sets the size of the disk in blocks. $newsize is the new size of the disk in blocks. If $newsize is omitted, then the size is not changed. Returns the size of the disk image in blocks. This refers to the logical size of the disk image. Blocks outside the physical size of the disk image read as all zeros. Writing to such a block will expand the image file. When you create a new image file, you must use blocks to set its size before writing to it. $contents = $disk->read_block($block) Reads one block from the disk image. $block is the block number to read. $contents = $disk->read_blocks(@blocks) Reads a sequence of blocks from the disk image. @blocks is a reference to an array of block numbers. As a special case, block 0 cannot be read by this method. Instead, it returns a block full of 0 bytes. This is how sparse files are implemented. If you want to read the actual contents of block 0, you must call $disk->read_block(0) directly. $contents = $disk->read_sector($track, $sector) Reads one sector from the disk image. $track is the track number, and $sector is the DOS 3.3 logical sector number. This is currently implemented only for DOS 3.3 order images. $disk->fully_allocate() Expands the the physical size of the disk image file to match the logical size of the disk image. It will be expanded as a sparse file if the filesystem containing the image file supports sparse files. $disk->write_block($block, $contents, [$pad]) Writes one block to the disk image. $block is the block number to write. $contents is the data to write. The optional $pad is a character to pad the block with (out to 512 bytes). If $pad is omitted or null, then $contents must be exactly 512 bytes. $disk->write_blocks(@blocks, $contents, [$pad]) Writes a sequence of blocks to the disk image. @blocks is a reference to an array of block numbers to write. $contents is the data to write. It is broken up into 512 byte chunks and written to the blocks. The optional $pad is a character to pad the data with (out to a multiple of 512 bytes). If $pad is omitted or null, then $contents must be exactly 512 bytes times the number of blocks. As a special case, block 0 cannot be written by this method. Instead, that block of $contents is just skipped. This is how sparse files are implemented. If you want to write the contents of block 0, you must call $disk->write_block directly. $disk->write_sector($track, $sector, $contents, [$pad]) Writes one sector to the disk image. $track is the track number, and $sector is the DOS 3.3 logical sector number. $contents is the data to write. The optional $pad is a character to pad the sector with (out to 256 bytes). If $pad is omitted or null, then $contents must be exactly 256 bytes. This is currently implemented only for DOS 3.3 order images. $padded = AppleII::Disk::pad_block($data, [$pad, [$length]]) Pads $data out to $length bytes with $pad. Returns the padded string; the original is not altered. Dies if $data is longer than $length. The default $pad is " ", and the default $length is 512 bytes. If $pad is the null string (not undef), just checks to make sure that $data is exactly $length bytes and returns the original string. Dies if $data is not exactly $length bytes. pad_block is a subroutine, not a method, and is not exported. You probably dont need to call it directly anyway, because the write_XXX methods will call it for you..

Requirements: No special requirements
Platforms: Linux
Keyword: Apple Ii Appleii Appleiidisk Block Blocks Contents Disk Disk Image Image Image File Out To Pad Perl Module Prodos
Users rating: 0/10

License: Freeware Size: 37.89 KB
USER REVIEWS
More Reviews or Write Review


APPLEII::DISK RELATED
Utilities  -  Appnimi Disk Image Maker 1.0
Appnimi Disk Image Maker Appnimi Disk Image Maker is a tool create an image of the disk without the content. It lets the user carry the information about the files of a disk without having to carry the disk itself. It creates exact replica of...
2.59 MB  
Backup Utilities  -  Active@ Disk Image for DOS 2.1
Active@ Disk Image is a free DOS-based solution designed for complete backup and restoration of the whole HDD as well as the particular FAT / NTFS partitions and logical drives. You can create compressed and non-compressed raw images...
2.4 MB  
Backup Utilities  -  Lazesoft Disk Image & Clone Home 3.0.0
Lazesoft Disk Image & Clone Home Edition - Fast, safely, upgrade your hard disk, backup your disk or partition. Free bootable CD to clone your entire hard disk, backup or restore your hard disk on off-line easy and safely. Lazesoft Disk Image &...
62.19 MB  
Screen Savers  -  Disk Image Icons for Mac OS 3.1
With disk image icons, you can get five free custom made icons for your disk images to give them a more personal look. - Slight colour changes
2 MB  
Audio Tools  -  2Tware Mount Disk Image 2012 5.1
2Tware Mount Disk Image will offer users the possibility to mount their raw disk image with ease. Furthermore, this software can also be used to generate virtual disks to the location chosen by the user.
 
Automation Tools  -  Mount HTTP Disk Image 1.0
Mount HTTP Disk Image is a free Automator action which will attempt to download and mount disk images, hosted on HTTP servers, whose URLs are passed from the previous action. All the URLs passed to the Mount HTTP Disk Image action must...
133.12 KB  
Utilities  -  Open-Apple Apple II emulator for Linux 1.0
Open-Apple is an Apple II emulator for Linux that currently features full emulation of an enhanced Apple IIe computer with several useful peripheral cards including clock, mouse, memory expansion, and hard drive.
153.6 KB  
Input Device Utilities  -  ISODisk 1.0
ISODisk is a FREE and powerful ISO disk image file tool, allows you to create virtual CD/DVD driver up to 20 drivers, mount an .ISO disk image and access the files on it as if it were burned to CD or DVD. This free program can quickly create ISO...
526.24 KB  
Utilities  -  UltraISO 9.6.1.3016
The disk image term refers to many data storage mediums such as optical disk, hard drive, USB flash drive, tape drive or even floppy disk. Their creation process comprises a 100% sector-by-sector copy of the source resulting in a complete...
710 KB  
Utilities  -  ISO to USB 1.0
ISO to USB is a free and small software that can burn the ISO image file directly to the USB drives, these USB drives include USB flash drives, memory sticks and other USB storage devices, it also supports to create a bootable USB disk with...
1.4 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB