|
GEOS SDK TechDocs
|
|
hwalk ...
|
intr ...
imem
imem [<address>] [<mode>]
Examples:
-
"imem"
- enter imem mode at DS:SI
-
"imem ds:di"
-
enter imem mode at DS:SI
Examine memory and modify memory interactively.
-
The address argument is the address to examine. If not specified, the address after the last examined memory location is used. If no address has been examined then DS:SI is used for the address.
-
The mode argument determines how the memory is displayed and modified. Each of the four modes display the memory in various appropriate formats. The modes are:
-
The default mode is swat's best guess of what type of object is at the address.
-
imem lets you conveniently examine memory at different locations and assign it different values. imem displays the memory at the current address according to the mode. From there you can move to another memory address or you can assign the memory a value.
-
You may choose from the following single-character commands:
-
b
,
w
,
d
,
i
- Sets the mode to the given one and redisplays the data.
-
n
,
j
, <
Return
>
-
Advances to the next data item. The memory address advances by the size of the mode.
-
p
,
k
- Returns to the preceding data item. The memory address decreases by the size of the mode. When displaying instructions, a heuristic is applied to locate the preceding instruction. If it chooses the wrong one, use the `P' command to make it search again.
-
<
space
>
- Clears the data display and allows you to enter a new value appropriate to the current display mode. The "assign" command is used to perform the assignment, so the same rules apply to it, with the exception of `- and "-quoted strings. A string with `s around it (`hi mom') has its characters poked into memory starting at the current address. A string with "s around it ("swat.exe") likewise has its characters poked into memory, with the addition of a null byte at the end. This command is not valid in instruction mode.
-
q
- quit imem and return to command level. The last address accessed is recorded for use by the other memory-access commands.
-
^D
- Display a "page" of successive memory elements in the current mode.
-
^U
- Display a "page" of preceding memory elements in the current mode.
-
h
,
?
- This help list.
-
For ^D and ^U, the size of a "page" is kept in the global variable
imemPageLen
, which defaults to 10.
See Also: bytes,
words,
dwords,
assign.
imemPageLen
var imemPageLen [<numlines>]
Contains the number of elements to display when imem is given the ^D or ^U command.
impliedgrab
impliedgrab
Examples:
-
"gentree [impliedgrab]"
-
print the generic tree under the mouse
Print the address of the current implied grab, which is the screen object grabbing the mouse.
-
This command is normally used with gentree to get the generic tree of an application by placing the mouse on application's window and issuing the command.
See Also: systemobj,
gentree.
impliedwin
impliedwin
-
"wintree [impliedwin]"
-
print the window tree of the window under the mouse
Print the address of the current implied window (the window under the mouse).
-
Note that a window handle is returned.
-
This command is normally used with wintree. One may also use the print command if they properly cast the handle.
int
int [<int level> <state>]
Examples:
-
"int"
- report the interrupt statuses
-
"int 1:1 on"
- allow keyboard interrupt while in swat
Set or print the state of the two interrupt controllers for when then machine is stopped in Swat.
-
If no arguments are given, the current state is printed.
-
The <int level> argument is specified by their names or their numbers with the form <controller>:<number>. <controller> is either 1 or 2, and <number> ranges from 0 to 7. The interrupts and their numbers are:
-
Timer 1:0
- System timer. Probably dangerous to enable.
-
Keybd 1:1
- Keyboard input.
-
Slave 1:2
- This is how devices on controller 2 interrupt. Disabling this disables them all.
-
Com2 1:3
- This is the port usually used by Swat, so it can't be disabled.
-
Com1 1:4
- The other serial port -- usually the mouse.
-
LPT2 1:5
- The second parallel port
-
Floppy 1:6
- Floppy-disk drive
-
LPT1 1:7
- First parallel port
-
Clock 2:0
- Real-time clock
-
Net 2:1
- Network interfaces (?)
-
FPA 2:5
- Coprocessor
-
HardDisk 2:6
-
Hard-disk drive
-
The <state> argument is either on or off.
intFormat
var intFormat [<format-string>]
Examples:
-
"var intFormat %d"
-
Sets the default format for printing unsigned integers to decimal.
$intFormat
contains the string passed to the "format" command to print an integer.
The default value is {%xh}, which prints the integer in hexadecimal, followed by an "h".
See Also: print,
byteAsChar.
|
GEOS SDK TechDocs
|
|
hwalk ...
|
intr ...