Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Werner ! (Registered 2024-05-30) 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: 11148
(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: 36
Backslashing double quotes works for me also. In Windows.
But directly in monitor window.
2024-05-16 18:39
chatGPZ

Registered: Dec 2001
Posts: 11148
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
Arkaxow
Airwolf/F4CG
Core/VPN
zzarko
Guests online: 114
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.6)
6 Aliens in Wonderland  (9.6)
7 No Bounds  (9.6)
8 Comaland 100%  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Happy Birthday Dr.J  (9.7)
2 Layers  (9.6)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (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 Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

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