Page 1 of 1

vice assembler monitor help

Posted: Tue Jun 20, 2017 2:27 pm
by vicassembly
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.

Re: vice assembler monitor help

Posted: Tue Jun 20, 2017 2:59 pm
by groepaz
uhm, what info are you missing there?

ll "foo.lbl" loads the labels

break <address> sets a breakpoint

Re: vice assembler monitor help

Posted: Tue Jun 20, 2017 5:15 pm
by vicassembly
(C:$102a) ll “hires.lbl”
ERROR -- Expecting a filename:
ll “hires.lbl”
^

Re: vice assembler monitor help

Posted: Wed Jun 21, 2017 5:45 am
by groepaz
funky - what version of VICE and what OS is that? (does the long form, ie load_labels, work instead?)

Re: vice assembler monitor help

Posted: Wed Jun 21, 2017 6:22 am
by beamrider
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

Re: vice assembler monitor help

Posted: Wed Jun 21, 2017 6:53 am
by vicassembly
The latest version of VICE with a MAC.

Tonight I will try the command line method. Thanks!

Re: vice assembler monitor help

Posted: Thu Jun 22, 2017 1:00 pm
by FD22
My toolchain is Sublime Text 3 -> KickAssembler -> XVIC, with a build command (for a cartridge) that looks like this:

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"], 
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. 8)