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

util/shell/APeek.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Peek value(s) from given memory address
Author:flype
Uploader:flype44 gmail com (flype)
Type:util/shell
Version:1.02
Architecture:m68k-amigaos
Date:2016-06-10
Distribution:Aminet
Download:util/shell/APeek.lha - View contents
Readme:util/shell/APeek.readme
Downloads:5114

Small tool to peek value(s) from a given memory address.

Version :

$VER: APeek 1.02 (9.6.2016)

Arguments :

A=ADDRESS/A - Mandatory, Address to peek.
              Can be decimal or hexa number (using $ or 0x).
S=SIZE/N    - Optional, Number of bytes to peek.
              Default value: 2.
              Valid values: 1=Byte, 2=Word, 4=Long.
C=COUNT/N   - Optional, Number of values to peek.
              Default value: 1.
              Valid values: from 1 to 99.

Examples of usage :

>APeek ?            ; Help.
>APeek $F80000      ; Read ROM Identifier.
>APeek $F8000C 2 2  ; Read ROM Version and Revision.
>APeek 0xBFE601 1   ; Read CIAA Timer B Low byte register.
>APeek 0xBFE701 1   ; Read CIAA Timer B High byte register.
>APeek 0xDFF300 2 9 ; Read SAGA Video Core ModeLine registers.
>Version FULL APeek ; Read Version of APeek.

Examples of output :

> APeek ADDRESS=$BFE601 SIZE=1
[00] $00BFE601: $93   147

> APeek ADDRESS=$F8000C SIZE=2 COUNT=2
[00] $00F8000C: $0028     40
[02] $00F8000E: $003F     63

> APeek ADDRESS=$F80000 SIZE=2 COUNT=10
[00] $00F80000: $1114   4372
[01] $00F80002: $4EF9  20217
[02] $00F80004: $00F8    248
[03] $00F80006: $00D2    210
[04] $00F80008: $0000      0
[05] $00F8000A: $FFFF  65535
[06] $00F8000C: $0028     40
[07] $00F8000E: $003F     63
[08] $00F80010: $0028     40
[09] $00F80012: $000A     10

Return Codes ($RC) :

If all OK         =>  0 (OK)
Invalid Count     => 10 (ERROR)
Invalid Size      => 10 (ERROR)
Invalid Address   => 10 (ERROR)
Invalid Arguments => 10 (ERROR)
Fail to open DOS  => 20 (FAIL)

Compilation :

Full ASM Source code is provided in archive.
Written with Devpac 3.18, code compatible with MC68020+.


Contents of util/shell/APeek.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                  749    1236  60.6% -lh5- c467 Jun  9 13:46 APeek
[unknown]                  909    1974  46.0% -lh5- 1db3 Jun  9 15:59 APeek.readme
[unknown]                 1867    7339  25.4% -lh5- 2ddd Jun  9 13:30 APeek.s
[unknown]                  917    5177  17.7% -lh5- dd9e Jun  9 02:24 hex.i
[unknown]                  576    1650  34.9% -lh5- ca99 Jun  9 11:46 os3.i
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         5 files    5018   17376  28.9%            Jun 10 16:03
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>