AminetAminet
Search:
84545 packages online
About
Recent
Browse
Search
Upload
Setup
Services

disk/misc/mem-handler.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Handler for accessing memory as a file
Author:Fredrik Wikstrom
Uploader:Fredrik Wikstrom <fredrik a500 org>
Type:disk/misc
Version:52.2
Architecture:ppc-amigaos
Date:2010-09-22
Download:http://aminet.net/disk/misc/mem-handler.lha - View contents
Readme:http://aminet.net/disk/misc/mem-handler.readme
Downloads:810

This handler works more or less the same as Peter Corlett's MEM-Handler on
Aminet: http://aminet.net/package/disk/misc/MEM-Handler371

It can be useful when programming, f.e. when you might have some data in memory
and for some reason you need to be able to access it as a file but do not want
to create a temporary file on disk or in "T:".

Installation:

1. Drag'n'drop MEM into DEVS:DOSDrivers
2. Copy MEM-Handler to L:

Usage:

MEM:<LENGTH/A>/<BASE>/<RO=READONLY/S>

LENGTH/A - size of the file to create
BASE - base address of memory for file (if not provided, MEM-Handler will
allocate MEMF_PRIVATE|MEMF_CLEAR memory using AllocVec)
RO=READONLY/S - if this is used the created file will be write protected

LENGTH and BASE can be in either decimal (no prefix), octal (beginning with
"0") or hexadecimal (beginning with "0x" or "$") number system.

Example (can cause DSIs, don't run!):

Read 13 bytes beginning at address 0x590eb038 to the file "RAM:test.bin":
copy MEM:13/0x590eb038 RAM:test.bin

Changes:

52.2 (22-Sep-2010)
 - Added support for ACTION_SHUTDOWN and ACTION_GET_DISK_FSSM packets

52.1 (26-Jun-2009)
 - First released version


Contents of disk/misc/mem-handler.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                   25      25 100.0% -lh0- c7f8 Sep 22 11:35 AutoInstall
[generic]                  707    1375  51.4% -lh5- f407 Sep 22 11:34 license.txt
[generic]                  194     267  72.7% -lh5- 44fa Aug  2  1994 mem
[generic]                 3289    5960  55.2% -lh5- e029 Sep 22 11:35 MEM-Handler
[generic]                  795    1353  58.8% -lh5- 790b Sep 22 11:33 mem-handler.readme
[generic]                 5769   12745  45.3% -lh5- 2f19 Sep 22 11:28 MEM.info
[generic]                 3622   12711  28.5% -lh5- 30d9 Sep 22 11:34 src/main.c
[generic]                  242     408  59.3% -lh5- 9c5f Sep 22 11:27 src/Makefile
[generic]                  117     206  56.8% -lh5- bfa1 Sep 22 11:34 src/MEM-Handler_rev.h
[generic]                  129     252  51.2% -lh5- 162c Sep 22 11:34 src/MEM-Handler_rev.i
[generic]                    2       2 100.0% -lh0- 6795 Sep 22 11:34 src/MEM-Handler_rev.rev
[generic]                  136     265  51.3% -lh5- 7d4e Sep 22 11:34 src/MEM-Handler_rev.s
[generic]                  316     611  51.7% -lh5- 0543 Jun 26  2009 src/test.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        13 files   15343   36180  42.4%            Sep 22 18:12

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>