~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to doc/html/vice_9.html

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<HTML>
2
2
<HEAD>
3
3
<!-- This HTML file has been created by texi2html 1.52
4
 
     from ../vice.texi on 5 August 2007 -->
 
4
     from ../vice.texi on 15 December 2008 -->
5
5
 
6
6
<TITLE>VICE Manual - 9  Monitor</TITLE>
7
7
</HEAD>
10
10
<P><HR><P>
11
11
 
12
12
 
13
 
<H1><A NAME="SEC136" HREF="vice_toc.html#TOC136">9  Monitor</A></H1>
 
13
<H1><A NAME="SEC146" HREF="vice_toc.html#TOC146">9  Monitor</A></H1>
14
14
 
15
15
<P>
16
16
Every VICE emulator has a complete built-in monitor, which can be used
29
29
 
30
30
 
31
31
 
32
 
<H2><A NAME="SEC137" HREF="vice_toc.html#TOC137">9.1  Terminology</A></H2>
 
32
<H2><A NAME="SEC147" HREF="vice_toc.html#TOC147">9.1  Terminology</A></H2>
33
33
 
34
34
<DL COMPACT>
35
35
 
95
95
Watchpoints are triggered by a read and/or write to an address.  When
96
96
a watchpoint is triggered, the monitor is entered.
97
97
 
 
98
<DT><SAMP>`memmap'</SAMP>
 
99
<DD>
 
100
The memmap keeps track of RAM/ROM/IO read/write/execute
 
101
accesses. The feature must be enabled with "--enable-memmap"
 
102
configure option, as it might decrease performance notably on
 
103
slower hardware. The option also enables CPU history.
 
104
 
98
105
<DT><SAMP>`&#60;...&#62;'</SAMP>
99
106
<DD>
100
107
A data type.
111
118
 
112
119
 
113
120
 
114
 
<H2><A NAME="SEC138" HREF="vice_toc.html#TOC138">9.2  Machine state commands</A></H2>
 
121
<H2><A NAME="SEC148" HREF="vice_toc.html#TOC148">9.2  Machine state commands</A></H2>
115
122
 
116
123
<DL COMPACT>
117
124
 
 
125
<DT><CODE>backtrace</CODE>
 
126
<DD>
 
127
Print JSR call chain (most recent call first). Stack offset
 
128
relative to SP+1 is printed in parentheses. This is a best guess
 
129
only.
 
130
 
 
131
<DT><CODE>cpuhistory [&#60;count&#62;]</CODE>
 
132
<DD>
 
133
Show &#60;count&#62; last executed commands.
 
134
(disabled by default; configure with --enable-memmap to enable)
 
135
 
118
136
<DT><CODE>goto &#60;address&#62;</CODE>
119
137
<DD>
120
138
Change the PC to address and continue execution.
133
151
Assign respective registers.  With no parameters, display register
134
152
values.
135
153
 
 
154
<DT><CODE>reset [&#60;type&#62;]</CODE>
 
155
<DD>
 
156
Reset the machine or drive.
 
157
<CODE>type</CODE>: 0 = soft, 1 = hard, 8-11 = drive.
 
158
 
136
159
<DT><CODE>return</CODE>
137
160
<DD>
138
161
Continues execution  and returns to the monitor just
147
170
 
148
171
 
149
172
 
150
 
<H2><A NAME="SEC139" HREF="vice_toc.html#TOC139">9.3  Memory commands</A></H2>
 
173
<H2><A NAME="SEC149" HREF="vice_toc.html#TOC149">9.3  Memory commands</A></H2>
151
174
 
152
175
<DL COMPACT>
153
176
 
180
203
Hunt memory in the specified address range for the data in
181
204
&#60;data_list&#62;.  If the data is found, the starting address of the match
182
205
is displayed.  The entire range is searched for all possible matches.
 
206
The data list may have `xx' as a wildcard.
183
207
 
184
208
<DT><CODE>i &#60;address_opt_range&#62;</CODE>
185
209
<DD>
186
210
Display memory contents as PETSCII text.
187
211
 
 
212
<DT><CODE>ii &#60;address_opt_range&#62;</CODE>
 
213
<DD>
 
214
Display memory contents as screen code text
 
215
 
188
216
<DT><CODE>m [&#60;data_type&#62;] [&#60;address_opt_range&#62;]</CODE>
189
217
<DD>
190
218
Display the contents of memory.  If no datatype is given, the default
192
220
displayed is based on the datatype.  If no addresses are given, the
193
221
'dot' address is used.
194
222
 
 
223
<DT><CODE>memmapshow [&#60;mask&#62;] [&#60;address_opt_range&#62;]</CODE>
 
224
<DD>
 
225
Show the memmap. The mask can be specified to show only those
 
226
locations with accesses of certain type(s). The mask is a number
 
227
with the bits "ioRWXrwx", where RWX are for ROM and rwx for RAM.
 
228
Optionally, an address range can be specified.
 
229
(disabled by default; configure with --enable-memmap to enable)
 
230
 
 
231
<DT><CODE>memmapzap</CODE>
 
232
<DD>
 
233
Clear the memmap.
 
234
(disabled by default; configure with --enable-memmap to enable)
 
235
 
 
236
<DT><CODE>memmapsave "&#60;filename&#62;" &#60;format&#62;</CODE>
 
237
<DD>
 
238
Save the memmap as a picture. <CODE>format</CODE>:
 
239
0 = BMP, 1 = PCX, 2 = PNG, 3 = GIF, 4 = IFF.
 
240
(disabled by default; configure with --enable-memmap to enable)
 
241
 
195
242
<DT><CODE>mc [&#60;data_type&#62;] [&#60;address_opt_range&#62;]</CODE>
196
243
<DD>
197
244
Display the contents of memory as character data.  If only one address
226
273
 
227
274
 
228
275
 
229
 
<H2><A NAME="SEC140" HREF="vice_toc.html#TOC140">9.4  Assembly commands</A></H2>
 
276
<H2><A NAME="SEC150" HREF="vice_toc.html#TOC150">9.4  Assembly commands</A></H2>
230
277
 
231
278
<DL COMPACT>
232
279
 
248
295
 
249
296
 
250
297
 
251
 
<H2><A NAME="SEC141" HREF="vice_toc.html#TOC141">9.5  Checkpoint commands</A></H2>
 
298
<H2><A NAME="SEC151" HREF="vice_toc.html#TOC151">9.5  Checkpoint commands</A></H2>
252
299
 
253
300
<DL COMPACT>
254
301
 
313
360
 
314
361
 
315
362
 
316
 
<H2><A NAME="SEC142" HREF="vice_toc.html#TOC142">9.6  General commands</A></H2>
 
363
<H2><A NAME="SEC152" HREF="vice_toc.html#TOC152">9.6  General commands</A></H2>
317
364
 
318
365
<DL COMPACT>
319
366
 
326
373
Set the default memory device to either the computer (<CODE>c:</CODE>) or
327
374
the disk (<CODE>d:</CODE>).
328
375
 
 
376
<DT><CODE>dir [&#60;directory&#62;]</CODE>
 
377
<DD>
 
378
Display the directory contents.
 
379
 
 
380
<DT><CODE>pwd</CODE>
 
381
<DD>
 
382
Show current working directory.
 
383
 
329
384
<DT><CODE>radix [H|D|O|B]</CODE>
330
385
<DD>
331
386
Set the default radix to hex, decimal, octal, or binary.  With no
347
402
 
348
403
 
349
404
 
350
 
<H2><A NAME="SEC143" HREF="vice_toc.html#TOC143">9.7  Disk commands</A></H2>
 
405
<H2><A NAME="SEC153" HREF="vice_toc.html#TOC153">9.7  Disk commands</A></H2>
351
406
 
352
407
<DL COMPACT>
353
408
 
 
409
<DT><CODE>attach &#60;filename&#62; &#60;device&#62;</CODE>
 
410
<DD>
 
411
Attach file to device. (device 32 = cart)
 
412
 
354
413
<DT><CODE>br &#60;track&#62; &#60;sector&#62; [&#60;address&#62;]</CODE>
355
414
<DD>
356
415
Read the block at the specified track and sector.  If an address is
362
421
Write a block of data at <CODE>address</CODE> to the specified track and
363
422
sector of disk in drive 8.
364
423
 
 
424
<DT><CODE>detach &#60;device&#62;</CODE>
 
425
<DD>
 
426
Detach file from device. (device 32 = cart)
 
427
 
365
428
<DT><CODE>@&#60;disk command&#62;</CODE>
366
429
<DD>
367
430
Perform a disk command on the currently attached disk image on drive
375
438
address and the first two bytes read from the file are skipped.  If
376
439
device is 0, the file is read from the file system.
377
440
 
 
441
<DT><CODE>bload "&#60;filename&#62;" &#60;device&#62; &#60;address&#62;</CODE>
 
442
<DD>
 
443
Load the specified file into memory at the specified address.
 
444
If device is 0, the file is read from the file system.
 
445
 
378
446
<DT><CODE>save "&#60;filename&#62;" &#60;device&#62; &#60;address1&#62; &#60;address2&#62;</CODE>
379
447
<DD>
380
 
Save the memory from address1 to address2 to the specified file.  If
381
 
device is 0, the file is written to the file system.
 
448
Save the memory from address1 to address2 to the specified file.
 
449
Write two-byte load address.
 
450
If device is 0, the file is written to the file system.
 
451
 
 
452
<DT><CODE>bsave "&#60;filename&#62;" &#60;device&#62; &#60;address1&#62; &#60;address2&#62;</CODE>
 
453
<DD>
 
454
Save the memory from address1 to address2 to the specified file.
 
455
If device is 0, the file is written to the file system.
382
456
 
383
457
</DL>
384
458
 
385
459
 
386
460
 
387
 
<H2><A NAME="SEC144" HREF="vice_toc.html#TOC144">9.8  Command file commands</A></H2>
 
461
<H2><A NAME="SEC154" HREF="vice_toc.html#TOC154">9.8  Command file commands</A></H2>
388
462
 
389
463
<DL COMPACT>
390
464
 
406
480
 
407
481
 
408
482
 
409
 
<H2><A NAME="SEC145" HREF="vice_toc.html#TOC145">9.9  Label commands</A></H2>
 
483
<H2><A NAME="SEC155" HREF="vice_toc.html#TOC155">9.9  Label commands</A></H2>
410
484
 
411
485
<DL COMPACT>
412
486
 
425
499
Load a file containing a mapping of labels to addresses.  If no memory
426
500
space is specified, the default readspace is used.
427
501
 
 
502
The file must contain commands the monitor understands, e.g. add_label. The
 
503
compiler cc65 can create such label files.
 
504
 
 
505
Vice can also load label files created by the Acme assembler. Their syntax is
 
506
e.g. "labelname = $1234 ; Maybe a comment". A dot will be added automatically
 
507
to label names assigned in this way to fit to the Vice label syntax. Normally
 
508
the semicolon seperates commands but after an assignment of this kind it may be
 
509
used to start a comment to end of line, so unchanged Acme label files can be
 
510
fed into Vice.
 
511
 
428
512
<DT><CODE>save_labels [&#60;memspace&#62;] "&#60;filename&#62;"</CODE>
429
513
<DD>
430
514
Save labels to a file.  If no memory space is specified, all of the
439
523
 
440
524
 
441
525
 
442
 
<H2><A NAME="SEC146" HREF="vice_toc.html#TOC146">9.10  Miscellaneous commands</A></H2>
 
526
<H2><A NAME="SEC156" HREF="vice_toc.html#TOC156">9.10  Miscellaneous commands</A></H2>
443
527
 
444
528
<DL COMPACT>
445
529
 
 
530
<DT><CODE>cartfreeze</CODE>
 
531
<DD>
 
532
Use cartridge freeze.
 
533
 
446
534
<DT><CODE>exit</CODE>
447
535
<DD>
448
536
Leave the monitor and return to execution.
449
537
 
 
538
<DT><CODE>help [&#60;command&#62;]</CODE>
 
539
<DD>
 
540
If no argument is given, prints out a list of all available commands.
 
541
If an argument is given, prints out specific help for that command.
 
542
 
450
543
<DT><CODE>print &#60;expression&#62;</CODE>
451
544
<DD>
452
545
Evaluate the specified expression and output the result.
453
546
 
 
547
<DT><CODE>resourceget "&#60;resource&#62;"</CODE>
 
548
<DD>
 
549
Displays the value of the <CODE>resource</CODE>.
 
550
 
 
551
<DT><CODE>resourceset "&#60;resource&#62;" "&#60;value&#62;"</CODE>
 
552
<DD>
 
553
Sets the value of the <CODE>resource</CODE>.
 
554
 
 
555
<DT><CODE>screenshot "&#60;filename&#62;" [&#60;format&#62;]</CODE>
 
556
<DD>
 
557
Take a screenshot. <CODE>format</CODE>:
 
558
default = BMP, 1 = PCX, 2 = PNG, 3 = GIF, 4 = IFF.
 
559
 
 
560
<DT><CODE>tapectrl &#60;command&#62;</CODE>
 
561
<DD>
 
562
Control the datasette. <CODE>command</CODE>:
 
563
0 = stop, 1 = start, 2 = forward, 3 = rewind, 4 = record,
 
564
5 = reset, 6 = reset counter.
 
565
 
454
566
<DT><CODE>quit</CODE>
455
567
<DD>
456
568
Exit the emulator immediately.