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 monitor, listing labels and memory content
2025-05-12 23:08
jab

Registered: Apr 2020
Posts: 22
VICE monitor, listing labels and memory content

Hi,

Let's say I declare zeropage labels in KickAss like this:
.segment ZP [start=$02] "Zero page"
zp_var1: .byte 0
zp_var2: .byte 0
zp_var3: .byte 0
zp_word1: .word 0
zp_word2: .word 0
zp_word3: .word 0

Then, in VICE monitor I can ALMOST get a nice list of labels and values with the d command. But depending on the values, some labels may not get shown because the monitor is trying to disassemble random data.
for example .zp_word2 is missing here:
d .zp_var1
.C:0002   .zp_var1:
.C:0002  02          JAM
.C:0003   .zp_var2:
.C:0003  00          BRK
.C:0004   .zp_var3:
.C:0004  48          PHA
.C:0005   .zp_word1:
.C:0005  20 56 E8    JSR $E856
.C:0008  02          JAM
.C:0009   .zp_word3:
.C:0009  DD 00 28    CMP $2800,X

Question: Is there any other easy way in the monitor to get a memory area displayed with labels?

Another question: To view the value of one labeled address, without getting a lot of useless extra data, I have to type the label name twice, e.g.
m .zp_var1 .zp_var1
Is there any (shorter) command or setting that limits the displayed data to just one or a few bytes?
2025-05-13 09:02
Fungus

Registered: Sep 2002
Posts: 747
The monitor is as basic as it gets really. The symbol handling is very basic. It's still useful in it's current state for many tasks.

So far no one has made a proper debugger interface for VICE. There is only graphical stuff that's not exactly useful for debugging complex code. It's nice to look at things in memory and has some interesting features, but for pure debugging it's very lacking.
2025-05-13 09:29
Slammer

Registered: Feb 2004
Posts: 448
<Sidetrack>
Sorry to sidetrack, but a little note. When defining zero page constants, I can recommend using the zp-directive. This way, they will always get treated as zp values, also if you define them after they are used. So now you don't have to worry about definition-usages order and you can define the zp-values next to the code that 'owns' them, instead of in the top of the file if that is what you want.
.segment ZP [start=$02] "Zero page"
.zp {
	zp_var1: .byte 0
	zp_var2: .byte 0
	zp_var3: .byte 0
	zp_word1: .word 0
	zp_word2: .word 0
	zp_word3: .word 0
}

</Sidetrack>
2025-05-13 21:48
jab

Registered: Apr 2020
Posts: 22
Quoting Fungus
The monitor is as basic as it gets really. The symbol handling is very basic. It's still useful in it's current state for many tasks.

So far no one has made a proper debugger interface for VICE. There is only graphical stuff that's not exactly useful for debugging complex code. It's nice to look at things in memory and has some interesting features, but for pure debugging it's very lacking.


Yeah, I would very much welcome a fast (commandline / keyboard driven) debugger. And the VICE monitor is very handy for quick things. There's just always these little features that you miss when you use it a lot.

Quoting Slammer
When defining zero page constants, I can recommend using the zp-directive. This way, they will always get treated as zp values, also if you define them after they are used. So now you don't have to worry about definition-usages order and you can define the zp-values next to the code that 'owns' them, instead of in the top of the file if that is what you want.


Thanks, now i see its purpose, this will come in handy!
2025-05-14 03:31
Martin Piper

Registered: Nov 2007
Posts: 739
Quoting jab
Yeah, I would very much welcome a fast (commandline / keyboard driven) debugger. And the VICE monitor is very handy for quick things. There's just always these little features that you miss when you use it a lot.


It's why I created PDBDebugger, which is a remote monitor for Vice that includes a context sensitive label view (top right of the link https://youtu.be/LOUCV-x31U4?t=1424 ) with C64 and drive source code debugging.
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
Guests online: 348
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 NTSC-Fixers
1 Pudwerx  (10)
2 Stormbringer  (9.7)
3 Fungus  (9.6)
4 Booze  (9.5)
5 Grim Reaper  (9.3)

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