Computer and Software Support


Debug: F (Fill)

Page updated January 21, 2005

 

Fills addresses in the specified memory area with values you specify.

 
 
Syntax
f Range List
Parameters
Range
Required. Specifies the starting and ending addresses, or the starting address and length, of the memory area you want to fill.
List
Required. Specifies the data you want to enter.
?
Displays a list of debug subcommands.
Remarks
  • Windows XP and the Windows Server 2003 family of products do not use this command. It is included only to preserve compatibility with existing MS-DOS files, but it has no effect at the command line because the functionality is automatic.
  • Specifying valid Range entries

    Use Range with a debug subcommand to specify a range of memory. You can choose one of the following formats for Range: a starting address and an ending address, or a starting address and the length (denoted by l) of the range. For example, both of the following syntaxes specify a 16-byte range beginning at CS:100:

    cs:100 10f

    cs:100 l 10

  • Specifying data

    You can specify data in either hexadecimal or ASCII format. Any data you previously stored at the specified address is lost

  • Using List

    List can consist of hexadecimal numbers or a string enclosed in quotation marks (that is, "String").

     

Examples
To fill memory locations 04BA:100 through 04BA:1FF with five specific values (for example, 42, 45, 52, 54, 41) and repeat the five values until Debug.exe fills all of the 100h bytes, type:

f04ba:100l100 42 45 52 54 41

Formatting legend

Format Meaning
Italic Information that the user must supply
Bold Elements that the user must type exactly as shown
Ellipsis (...) Parameter that can be repeated several times in a command line
Between brackets ([]) Optional items
Between braces ({}); choices separated by pipe (|). Example: {even|odd} Set of choices from which the user must choose only one
Courier font Code or program output

Some of these terms may be the same or similar to DOS commands. For information on DOS Commands, click here