Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > VICE, breaking and monitor commands
2024-05-16 17:45
wacek

Registered: Nov 2007
Posts: 505
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? :)
2024-05-16 18:24
chatGPZ

Registered: Dec 2001
Posts: 11154
(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?)
2024-05-16 18:27
Gordian

Registered: May 2022
Posts: 43
Backslashing double quotes works for me also. In Windows.
But directly in monitor window.
2024-05-16 18:39
chatGPZ

Registered: Dec 2001
Posts: 11154
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)
2024-05-16 19:00
wacek

Registered: Nov 2007
Posts: 505
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!
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
JEZ
Jazzcat/Onslaught
The Phantom
Youth
Fred/Channel 4
Guests online: 134
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Aliens in Wonderland  (9.6)
7 Comaland 100%  (9.6)
8 No Bounds  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 HNY2023  (9.6)
6 Rainbow Connection  (9.5)
7 It's More Fun to Com..  (9.5)
8 Dawnfall V1.1  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Cash  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.043 sec.