| |
wacek
Registered: Nov 2007 Posts: 526 |
VICE, breaking and monitor commands
Hope someone can help me with this very specific, probably simple question :)
So I am running Vice with breakpoints.txt file.
In this file I put:
watch ffe0
so if read/write happens to this address, Vice breaks into the monitor. Fine.
I also want to autoexecute specific monitor command when that happens, so I use:
command 1 "(whatever)"
This works perfectly, however I need to do a command with file name:
-> s "file.prg" 0 1000 1fff
However I try to do it, it doesn't work.
command 1 "s "file.prg" 0 1000 1fff" = nope.
command 1 "s \"file.prg\" 0 1000 1fff" = nope.
What is the correct syntax there to have quotation marks within the quotation marks? :) |
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11522 |
(C:$e5d1) command 1 "s \"foo\" 0 0800 0900"
Setting checkpoint 1 command to: s "foo" 0 0800 0900
that seems to work for me (on linux - you are on windows?) |
| |
Gordian
Registered: May 2022 Posts: 101 |
Backslashing double quotes works for me also. In Windows.
But directly in monitor window. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11522 |
seems to work as expected for me using a command file too
$ cat commands.txt
break ea31
command 1 "s \"irq.dump\" 0 0400 0500"
x
$ ./src/x64sc -default -moncommands commands.txt
#1 (Stop on exec fce2) 0/$000, 6/$06
.C:fce2 A2 FF LDX #$FF - A:00 X:00 Y:00 SP:00 ..-..IZ. 6
BREAK: 1 C:$ea31 (Stop on exec)
Setting checkpoint 1 command to: s "irq.dump" 0 0400 0500
#1 (Stop on exec ea31) 257/$101, 57/$39
.C:ea31 20 EA FF JSR $FFEA - A:00 X:F9 Y:84 SP:f9 ..-..IZC 2060472
Executing: s "irq.dump" 0 0400 0500
Saving file `irq.dump' from $0400 to $0500
#1 (Stop on exec ea31) 206/$0ce, 14/$0e
.C:ea31 20 EA FF JSR $FFEA - A:00 X:E6 Y:15 SP:e6 ..-..IZC 2076872
Executing: s "irq.dump" 0 0400 0500
Saving file `irq.dump' from $0400 to $0500
(C:$ea31)
Wacek: please try the above, and if that fails, paste the exact output/error messages. You probably also want to check if the the current working directory is correct when the command file executes (perhaps put a pwd command into it) |
| |
wacek
Registered: Nov 2007 Posts: 526 |
OK, solved. It apparently was a bug in earlier version of winvice :) works correctly on the later versions.
Yeah, I know, I know, it's my own fault for using obsolete versions ;)
Thanks anyway! |