<!doctype linuxdoc system>
<article>
-
<title>Using emulators with cc65
<author><url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz">
-<date>03.12.2000
<abstract>
How to debug your code using the VICE and Oricutron emulators.
the Commodore 64, 128, VIC20, PET and the 600/700 machines. For more information
see the VICE home page:
-<htmlurl url="http://www.viceteam.org/">
+<url url="http://vice-emu.sourceforge.net/">.
VICE has a builtin machine language monitor that may be used for debugging
your programs. Using an emulator for debugging has some advantages:
load your label file like this:
<tscreen><verb>
- ll "hello.lbl"
+ ll "hello.lbl"
</verb></tscreen>
You will get lots of warnings and even a few errors. You may ignore safely all
and you may use them whereever you need to specify an address. Try
<tscreen><verb>
- d ._main
+ d ._main
</verb></tscreen>
as an example (note that VICE needs a leading dot before all labels, and that
load your label file like this:
<tscreen><verb>
- sl hello.sym
+ sl hello.sym
</verb></tscreen>
After loading the labels, they are used by Oricutron in the disassembler listing,
and you may use them whereever you need to specify an address. Try
<tscreen><verb>
- d ._main
+ d ._main
</verb></tscreen>
as an example (note that VICE needs a leading dot before all labels, and that