77.8.3
PATCH: Changing File Contents
This feature is not intended to replace the functions of the AMO PATCH. The displayer does not use memory address in order to change the appropriate memory area on the hard disk; in fact for the purpose of this displayer function it is irrelevant whether the file to be processed corresponds to any memory locations on the hard disk at all.
The file whose contents are to be modified must first be assigned with the E command.
In order to help avoid typing errors, the number of new values entered must correspond to the number of memory units to be changed. In addition the length of the new values must exactly correspond to the memory output option selected (e.g. a 2-digit hexadecimal number if BYTE was selected).
Command Syntax
The number of memory units to be changed must be entered in decimal form. The new values must be entered as hexadecimal numbers and separated by hyphens.
•
Modification using an Address Symbol
PATCH,ADR,name,input,number,values;
•
Modification using a Direct Address
PATCH,DA,offset,input,number,values;
The offset must be entered as hexadecimal numbers.
•
Modification using a logical Memory Definition
PATCH,LOGNAME,name,input,number,values,indices,offset;
The indices of the array elements concerned must be entered in decimal form; either linked single values or index ranges are permitted.
The offset of the memory area to be changed must be entered in decimal form; it is the displacement of the pointer relative to the beginning of the array element.
Example
In connection with the DUMP-example given above the user wants to correct the address of the second memory from 34C0:5170 to 34A0:CEDA.
Input:
*patch,logname,entry_tbl,dword,1,34a0ceda,1,1a;
Output:
DISPLAYER-INPUT IN A1 PLEASE:
Input:
*dump,logname,entry_tbl,1&&2;
Output:
TABLE: ENTRY_TBL
INDEX: 0000H ADDRESS: 0000H:0000H
CONTENTS HEX (ASCII)
0( 0) 44425F445F43505F 4445565F53544154 DB_D_CP_DEV_STAT
10( 16) 4520202020202020 2020DADEA0340100 E ...4..
20( 32) 0000FF0700 .....
INDEX: 0001H ADDRESS: 0000H:0025H
CONTENTS HEX (ASCII)
0( 0) 44425F445F43505F 4445565F53544154 DB_S_CP_DEV_STAT
10( 16) 5553202020202020 2020DACEA0340200 US pQ.4..
20( 32) 0000FF0700 .....
DISPLAYER INPUT IN A1 PLEASE:
The correction was successfully completed.
${DocTitle}
, ID:
${DocID}
©
02/2025
Mitel Networks Corporation. - All rights reserved.
Mitel and the Mitel logo are trademarks of Mitel Networks Corporation. Unify and associated marks are trademarks of Unify Software and Solutions GmbH&Co. KG.
All other trademarks herein are the property of their respective owners.