+
+@subsection プログラム終了時の値を表示
+
+@command{grep}と@command{tail}を組み合わせれば、プログラム終了時の値を表示できます。
+
+@cartouche
+@example
+$ @b{casl2 -t addl.casl | grep 'GR1:' | tail -1}
+#0004: GR1: 4 = #0004 = 0000000000000100
+@end example
+@end cartouche
+
+@cartouche
+@example
+$ @b{casl2 -t sum_10.casl | grep 'GR0:' | tail -1}
+#0010: GR0: 55 = #0037 = 0000000000110111 = '7'
+@end example
+@end cartouche
+
+@subsection プログラムのステップ数を表示
+
+@command{grep}と@command{wc}を組み合わせれば、プログラムのステップ数を表示できます。
+
+@cartouche
+@example
+$ @b{casl2 -t hello.casl | grep 'GR1:' | wc -l}
+11
+@end example
+@end cartouche
+
+@cartouche
+@example
+$ @b{casl2 -t addl.casl | grep 'GR1:' | wc -l}
+3
+@end example
+@end cartouche
+
+@file{sum_10.casl}はプログラム内にループがあるため、ステップ数が大きくなります。
+
+@cartouche
+@example
+$ @b{casl2 -t sum_10.casl | grep 'GR0:' | wc -l}
+54
+@end example
+@end cartouche
+
+@section アセンブルと実行を別に行う
+
+@command{casl2}に@option{-O}<@file{ファイル名}>を指定すると、オブジェクトファイルを作成できます。
+
+@cartouche
+@example
+$ @b{casl2 -Ohello.o hello.casl}
+@end example
+@end cartouche
+
+作成されたオブジェクトファイルの内容は、@command{od}を使って確認できます。テキストファイルではないため、@command{cat}などでは確認できません。
+
+@cartouche
+@example
+$ @b{od -t x2 hello.o}
+0000000 7001 0000 7002 0000 1210 0013 1220 0020
+0000020 f000 0002 1210 0021 1220 0022 f000 0002
+0000040 7120 7110 8100 0048 0065 006c 006c 006f
+0000060 002c 0020 0057 006f 0072 006c 0064 0021
+0000100 000d 000a 0001
+0000106
+@end example
+@end cartouche
+
+オブジェクトファイルの実行には、@command{comet2}を使います。
+
+@cartouche
+@example
+$ @b{comet2 hello.o}
+Hello, World!
+@end example
+@end cartouche
+
+@section 1語を解析する
+
+CASL2では、1語(16ビット)を単位としてデータが処理されます。
+@command{dumpword}は、指定した1語を10進数、16進数、2進数で表示します。
+
+@cartouche
+@example
+$ @b{dumpword 72}
+ 72: 72 = #0048 = 0000000001001000 = 'H'
+@end example
+@end cartouche
+
+マイナスの数は、次のように指定します。
+
+@cartouche
+@example
+$ @b{dumpword -- -72}
+ -72: -72 = #FFB8 = 1111111110111000
+@end example
+@end cartouche
+
+16進数で指定する場合は、次のように指定します。
+
+@cartouche
+@example
+$ @b{dumpword '#0048'}
+ #0048: 72 = #0048 = 0000000001001000 = 'H'
+@end example
+@end cartouche