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: 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? :)
2024-05-16 18:24
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?)
2024-05-16 18:27
Gordian

Registered: May 2022
Posts: 101
Backslashing double quotes works for me also. In Windows.
But directly in monitor window.
2024-05-16 18:39
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)
2024-05-16 19:00
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!
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
Enforcer/Deers
Guests online: 89
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Sulevi  (9.6)
4 Pal  (9.6)
5 Hein  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.052 sec.