I am attempting to use the vice monitor. I have compiled my ca65 code and have a '.lbl' file.
I see that in vice under the machine menu is a monitor. At this point I am not sure what to do. How do I point it to a lbl file? How do I step through the code and set breakpoints?
I found the following but it wasn't too helpful. http://vice-emu.sourceforge.net/vice_12.html
Any expertise would be appreciated.
vice assembler monitor help
Moderator: Moderators
-
- Vic 20 Devotee
- Posts: 253
- Joined: Fri Mar 19, 2010 1:40 pm
Re: vice assembler monitor help
uhm, what info are you missing there?
ll "foo.lbl" loads the labels
break <address> sets a breakpoint
ll "foo.lbl" loads the labels
break <address> sets a breakpoint
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
-
- Vic 20 Devotee
- Posts: 253
- Joined: Fri Mar 19, 2010 1:40 pm
Re: vice assembler monitor help
(C:$102a) ll “hires.lbl”
ERROR -- Expecting a filename:
ll “hires.lbl”
^
ERROR -- Expecting a filename:
ll “hires.lbl”
^
Re: vice assembler monitor help
funky - what version of VICE and what OS is that? (does the long form, ie load_labels, work instead?)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
Re: vice assembler monitor help
I usually start vice using a command line passing a symbol file that sets each label...
"xvic.exe" -moncommands prog.sym -memory 16k prog.prg
and my symbol files contains commands to add the labels generated by C65 eg...
[prog.sym]
al 00527A .bnegax
al 00536B .booleq
al 00537B .boolge
al 005379 .boolgt
al 005371 .boolle
al 005373 .boollt
al 005365 .boolne
al 00538B .booluge
al 005389 .boolugt
al 005381 .boolule
al 005383 .boolult
"xvic.exe" -moncommands prog.sym -memory 16k prog.prg
and my symbol files contains commands to add the labels generated by C65 eg...
[prog.sym]
al 00527A .bnegax
al 00536B .booleq
al 00537B .boolge
al 005379 .boolgt
al 005371 .boolle
al 005373 .boollt
al 005365 .boolne
al 00538B .booluge
al 005389 .boolugt
al 005381 .boolule
al 005383 .boolult
-
- Vic 20 Devotee
- Posts: 253
- Joined: Fri Mar 19, 2010 1:40 pm
Re: vice assembler monitor help
The latest version of VICE with a MAC.
Tonight I will try the command line method. Thanks!
Tonight I will try the command line method. Thanks!
Re: vice assembler monitor help
My toolchain is Sublime Text 3 -> KickAssembler -> XVIC, with a build command (for a cartridge) that looks like this:
Thus, invoke KA and have it generate a full symbol list for VICE alongside the binary, then run VICE with that binary plus some predefined emulator configuration and a list of monitor commands that 'll' the symbol list and set breakpoints where-ever I've used a 'break(*)' macro in the source to output the appropriate 'b' command.
The ST3 build command does an autosave first, so I go from typing code to seeing it run in VICE about two seconds later just by hitting F7.
Code: Select all
"cmd": ["java", "cml.kickass.KickAssembler", "main.asm" , "-log", "main.log", "-o", "main.bin", "-vicesymbols", "-showmem", "-bytedumpfile", "main.dmp", "-binfile", "-afo", "-symbolfile", "-execute", "XVIC -cartA \"main.bin\" -config xvic_emulator.cfg -monlog xvic_monitor.log -moncommands xvic_monitor.cfg"],
The ST3 build command does an autosave first, so I go from typing code to seeing it run in VICE about two seconds later just by hitting F7.