st, stc, and sth subcommands
The st, stc and sth subcommands store data at a specified address.
Format
st EffectiveAddress Value
stc EffectiveAddress Value
sth EffectiveAddress Value
Parameters
Item | Description |
---|---|
EffectiveAddress | Specifies the effective address to which the data will be stored. Hexadecimal values or hexadecimal expressions can be used in specification of the address. |
Value | Specifies the data value to be stored. The value
stored is:
|
Other
No aliases.
Examples
The following is an example of how to use the st, the stc and the sth subcommands:
KDB(0)> dw 20
00000020: 00000000 00000000 00000000 00000000 ................
KDB(0)> st 20 11111111
KDB(0)> dw 20
00000020: 11111111 00000000 00000000 00000000 ................
KDB(0)> st 20 2
KDB(0)> dw 20
00000020: 00000002 00000000 00000000 00000000 ................
KDB(0)> st 20 0
KDB(0)> dw 20
00000020: 00000000 00000000 00000000 00000000 ................
KDB(0)> stc 20 33
KDB(0)> dw 20
00000020: 33000000 00000000 00000000 00000000 3...............
KDB(0)> st 20 0
KDB(0)> dw 20
00000020: 00000000 00000000 00000000 00000000 ................
KDB(0)> sth 20 4444
KDB(0)> dw 20
00000020: 44440000 00000000 00000000 00000000 DD..............
KDB(0)> st 20 0
KDB(0)> dw 20
00000020: 00000000 00000000 00000000 00000000 ................