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 > CSDb Entries > Release id #212693 : JC64dis 1.7
2022-01-02 18:53
Frostbyte

Registered: Aug 2003
Posts: 163
Release id #212693 : JC64dis 1.7

Out of curiosity, I gave this disassembler a go on my own compiled code. As I know what each area in memory contains, it was easy to concentrate on just learning the usage of the disassembler itself.

A few things I noticed along the way:

1) When removing automatically generated labels, they do disappear when re-disassembling, but on the next disassembly they always come back, unless there are no references to the label left. However, I have an unrolled STA table for filling segments of a colram buffer. When loading the program, this buffer area is filled with the default colour, i.e. the area contains only dummy data. This data area is filled with labels, to which the STA statements refer to, and I can't remove the references and the labels. Is there a way to do it somehow? So instead of

STA W1234,x
...
W1234:
.byte $07

force the disassembler to use the address directly, i.e.
STA $1234,x


2) As an exception to the above, removing some labels DOES seem to take effect. This is what the beginning of my buffer looks like now:
WA2F7:
      .byte $07, $07, $07, $07, $07, $07, $07, $07 
      .byte $07, $07, $07, $07, $07, $07, $07, $07 
      .byte $07, $07, $07, $07, $07, $07, $07, $07 
      .byte $07, $07, $07, $07, $07, $07, $07, $07 
      .byte $07, $07, $07, $07, $07, $07, $07 
WA31E:
      .byte $07
WA31F:
      .byte $00
WA320:
      .byte $00

So as removing some labels which are used exactly the same works and some doesn't, is this a bug?

3) When removing automatic comments, instead of actually removing them, the disassembler adds a blank user comment which seems to override the automatic one. I suppose this works, but isn't very clean IMHO. Is there a way to simply remove the automatic comment instead?

4) Adding user comments to word data lines doesn't work.

5) Setting a mem area as specific type of data doesn't work from the toolbar. Same goes for marking a cell as constant. They both do work fine from the "Memory" menu though.

Despite a few niggles, I was able to successfully disassemble the program back to Kickass source, and it compiles and runs fine too. :) Thanks for the great tool!
 
... 2 posts hidden. Click here to view all posts....
 
2022-01-03 08:20
ice00

Registered: Apr 2002
Posts: 54
The binary needs at least java 8.
Tested with java 8, 11 and 17

Please, try to change the Look & Feel in Option and see if this happen with the other mode or not.

It seems related to MacOs Acqua look and feel even if the default theme set by the program is Metal
2022-01-03 14:00
Frostbyte

Registered: Aug 2003
Posts: 163
I tried all other looks too (java, Metal with different themes, Nimbus, a few Synth based looks) but the exception remains. It's not a biggie though, I can always select the specific data type from the Memory menu.

I've also noticed a couple other issues:

1) There's some kind of a memory leak. After a few hours of use the heap is pretty much full (I believe it went up to 4 gigs) and then the program gets very slow, for example double clicking on a mem address to jump to that area in preview takes several seconds, disassembly and assembly are much slower etc. They do slow down gradually before the heap completely filling up as well.

2) The load, save and close buttons in Options are, excluding the lowest few pixel rows, behind the content pane until I hover over where they should be. Even when they become visible in front of the pane, I can only click on the narrow strip that is located under the pane. I suspect this has to do with the window size: My screen's resolution is only 1440x900 and thus not all options fit on the screen at once and thus the pane has a scroll bar. Maybe the buttons are not correctly attached to the pane?
https://www.dropbox.com/s/qisrroy19lq3x71/Screenshot%202022-01-..
2022-01-03 14:33
Frostbyte

Registered: Aug 2003
Posts: 163
Another small issue: Instruction and data separators can be changed to tabs, but for comment separators 25 spaces is the minimum, can't change those to zero to use only tabs like with the instruction and data separators. Again not a big issue, I just prefer tabs for indentation.
2022-01-03 14:46
ice00

Registered: Apr 2002
Posts: 54
1)
The unique point that I did not manage directly is the syntax highlight library, so it should be it that did not release object in time.
However I will profile a session to see what takes so much memory.
The delay is when Java starts the garbage collection and release memory. I wil lactivate that by clicking into the heap graph it force a garbace collectiona action.

2)
I will decrease the min height size in next version, now you can move the windows using meta+click or alt+click on the border and move it up
2022-01-03 14:51
ice00

Registered: Apr 2002
Posts: 54
Quote: Another small issue: Instruction and data separators can be changed to tabs, but for comment separators 25 spaces is the minimum, can't change those to zero to use only tabs like with the instruction and data separators. Again not a big issue, I just prefer tabs for indentation.

Yes, comment has 25 min spaces. I probably can modify to go to 0 if there are some tabs. Need to test
2022-01-04 11:15
ice00

Registered: Apr 2002
Posts: 54
You can test some modification from here:
http://78.26.93.124/download/JC64.jar

This Jar has all the libraries inside, so no more need of lib directory.

I have replaced all libraries,so test it for the memory problem and the theme problem (maybe if that issue is due to a library bug, it could be resolved).

You can test the option dialog size too.

By click onto the heap view should request a garbace collection (it is not mandatory that JVM accept it).

Else, comments on word, long, ecc is done.
Add clear automatic comments (for data area now an erase is true erase)
2022-01-06 20:11
Frostbyte

Registered: Aug 2003
Posts: 163
Sorry for the delay, real life is distracting me from things that really matter. :)

Heap seems to creep up just by keeping clicking on disassembly, and only some of the heap is eventually freed up again. When I'm at 4 gigs, GC does get more aggressive and pushes the usage down to around 3 gigs, but not sure if the heap would be filled completely in some cases. I guess this'd become apparent only after several hours of normal use.

Clicking on the heap view doesn't do anything, although AFAIK it's not possible to force a GC in java anyway, one can just give a gentle suggestion to the JVM to maybe prioritise memory related tasks if it feels like it (which it often doesn't).

Submenus from the toolbar still don't work and throw the same NPE.

Option dialog is now working fine: Load, Save and Close buttons are accessible under the content pane in the options.

Clearing automatic comments now happens on data (a true erase rather than an empty user comment like you mentioned), but on code, can't clear the auto-comments at all now. I can only manually add a user comment to override the automatic one.
2022-01-08 14:14
ice00

Registered: Apr 2002
Posts: 54
Try the new build on previous link.

The click on the heap was not invocated correctly.
Now it calls garbace collector (it is a way that even if it is only suggested, it is actually invoked).

From my profiling I only view that memory is free after a garbage collector without leaks.
However I modify some heavy part of the core to reuse the objects instead of creating a new one.

This should help.

By compiling there memory increase as there are the undo function to store previous state and then all inside the preview and source are recreated from scratch.

However if you still reach 4GB, try the GC click and see if it goes down. If memory after goes down only of 1GB this is still strange.

ps. the spaces for comment can be reduced to only 1
2022-01-11 17:34
Frostbyte

Registered: Aug 2003
Posts: 163
Gave this another quick test: Kept clicking on the "Disassemble" button until mem usage was up to 4 gigs, and then clicked on the heap view. Triggering the GC now works, and it takes memory usage down to around 2.3gigs. In more real life usage (e.g. a several hours long disassembly session) the behaviour may be different though.
2022-02-12 21:03
ice00

Registered: Apr 2002
Posts: 54
For the problem of sub menus that not appears, it will be mitigated in future version with the right click pop-up menu onto selection, both in memory view and in preview/source where it will be implemented a full address line/table map.

It will be not in next version has it has experimental Z80 support that has a priority to be completed before that.
Previous - 1 | 2 - Next
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
csabanw
Hairdog/BOOM!^Dream
E$G/hOKUtO fOrcE
maestro
Dymo/G★P
Airwolf/F4CG
Guests online: 312
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

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