Next: , Previous: , Up: Monitor   [Contents][Index]


12.3 Memory commands

bank [<bankname>]

Without a bankname, display all available banks for the current address_space. With a bankname given, switch to the specified bank. If a bank is not completely filled (ROM banks for example) normally the ram bank is used where the bank has holes. The cpu bank uses the bank currently used by the CPU.

compare <address_range> <address>
c <address_range> <address>

Compare memory from the source specified by the address range to the destination specified by the address. The regions may overlap. Any values that miscompare are displayed using the default displaytype.

device [c:|8:|9:]

Set the default address space to either the computer ‘c:’ or the specified drive ‘8:’ or ‘9:’

fill <address_range> <data_list>
f <address_range> <data_list>

Fill memory in the specified address range with the data in <data_list>. If the size of the address range is greater than the size of the data_list, the data_list is repeated.

hunt <address_range> <data_list>
h <address_range> <data_list>

Hunt memory in the specified address range for the data in <data_list>. If the data is found, the starting address of the match is displayed. The entire range is searched for all possible matches. The data list may have ‘xx’ as a wildcard.

i <address_opt_range>

Display memory contents as PETSCII text.

ii <address_opt_range>

Display memory contents as screen code text

mem [<data_type>] [<address_opt_range>]
m [<data_type>] [<address_opt_range>]

Display the contents of memory. If no datatype is given, the default is used. If only one address is specified, the length of data displayed is based on the datatype. If no addresses are given, the ’dot’ address is used.

memmapshow [<mask>] [<address_opt_range>]
mmsh [<mask>] [<address_opt_range>]

Show the memmap. The mask can be specified to show only those locations with accesses of certain type(s). The mask is a number with the bits "ioRWXrwx", where RWX are for ROM and rwx for RAM. Optionally, an address range can be specified. (disabled by default; configure with –enable-cpuhistory to enable)

memmapzap
mmzap

Clear the memmap. (disabled by default; configure with –enable-cpuhistory to enable)

memmapsave "<filename>" <format>
mmsave "<filename>" <format>

Save the memmap as a picture. format: 0 = BMP, 1 = PCX, 2 = PNG, 3 = GIF, 4 = IFF. (disabled by default; configure with –enable-cpuhistory to enable)

memchar [<data_type>] [<address_opt_range>]
mc [<data_type>] [<address_opt_range>]

Display the contents of memory as character data. If only one address is specified, only one character is displayed. If no addresses are given, the “dot” address is used.

memsprite [<data_type>] [<address_opt_range>]
ms [<data_type>] [<address_opt_range>]

Display the contents of memory as sprite data. If only one address is specified, only one sprite is displayed. If no addresses are given, the “dot” address is used.

move <address_range> <address>
t <address_range> <address>

Move memory from the source specified by the address range to the destination specified by the address. The regions may overlap.

screen
sc

Displays the contents of the screen.

sidefx [on|off|toggle]
sfx [on|off|toggle]

Control how monitor generated reads affect memory locations that have read side-effects, like CIA interrupt registers for example. If the argument is ’on’ then reads may cause side-effects. If the argument is ’off’ then reads don’t cause side-effects. If the argument is ’toggle’ then the current mode is switched. No argument displays the current state.

> [<address>] <data_list>

Write the specified data at address.


Next: Assembly commands, Previous: Machine state commands, Up: Monitor   [Contents][Index]