17 September 2019, 08:37 | #1 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
Which asm/debugger is recommended
I had a A1000 back in the 90' and did a lot of assembly back then. However, I forgot many details, and now I'm starting almost from scratch. Well, I still do know a fair bot of the M68k, but I don't really remember much of the toolchain. I was using DevPac and even found my old disk (2.0). Now I have an A1000 again (KS 1.3) and I wonder if there is a good recommendation for a decent debugger. I gave MonAm a try, but I wondered if there is is something more modern now available.
I compiled bebbo's repository (https://github.com/bebbo/amiga-gcc) with MSYS2 and using that as my toolchain on Windows. In the repository there is vasm included, and I wanted to know if this is a good assembler to work with. From what I read so far, I think it can create object files which can be used together with gcc code as well, is that right? I don't want to code everything in pure assembler, so I want something that I can use in conjunction with gcc. |
17 September 2019, 14:20 | #2 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
|
|
17 September 2019, 19:41 | #3 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 652
|
Gcc and vasm cooperate nicely. Find examples here: GitHub.com/mheyer32/ADoom and github.com/mheyer32/DoomAttack
|
17 September 2019, 21:20 | #4 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
Thanks! I'll take a look at these links.
|
18 September 2019, 10:01 | #5 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
For the debugger I will stick to MonAm. I remember that I was using DevPack back then and liked it quite much. I even found now a manual (german) https://www.retrozone.ch/docs/amiga/HiSoftDevpac.pdf, because when I ran MonAm a few days ago, I was completely lost and didn't remember most of the commands.
Since I want to develop cross platform anyway it looks that vasm is a good choice. |
18 September 2019, 11:35 | #6 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
MonAm is a good choice, when debugging under AmigaOS. IIRC it also supports symbols. For OS2.0+ I prefer BDebug from the (now free) Barfly assembler package.
To debug software which takes over the system, the internal UAE-debugger is quite helpful. It is not as powerful as MonAm or BDebug, but you can debug every situation, even without an OS and with a switched-off display. |
18 September 2019, 12:55 | #7 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
I use MonAm with vasm too, it is very effective.
For deep bugs i debug with winuae. Geezer |
20 September 2019, 08:27 | #8 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,214
|
Quote:
|
|
20 September 2019, 14:01 | #9 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
What is lacking with UAE? I figured that an internal debugger from an emulator should be really helpful. I haven't done much with it yet, but from reading the manual I find the commands not really intuitive though.
|
20 September 2019, 19:11 | #10 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
However, it has features that make debugging some things simple. For example, difficult corruption bugs are easy to find, you just set a memory watch for the whole area of memory where you are getting the corruption and it will break... it will even break if it's a blitter operation causing the corruption. Really saved my bacon loads. |
|
21 September 2019, 03:58 | #11 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,214
|
Many, many things. Expression evaluation. Setting registers. Reading labels from a file with debug information. Capturing shell commands and new tasks. Stack traceback. System information (loaded libraries, resources, devices, resident-tags etc...), a suitable line editor with a history.
|
21 September 2019, 07:49 | #12 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Actually it does almost all you listed but your "UAE" is probably something else. Anyway, it wasn't meant for that kind of purpose. (EDIT: = There are much better options for debugging system friendly programs)
|
21 September 2019, 09:24 | #13 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
i did my last little project using a windows editor and compiling in devpac/asmone just to get back into it. I was following along photon’s video tutorials and it was a nice quick reminder rather than trying to remember 68k AND learn a new environment at the same time. It was hell to trouble shoot though (system killer demo).
Then I tried vasm and looked into some debugging options. You have to set breakpoints on memory areas like mcgeezer says in WinUAE. A little fiddly but powerful. However I’d recommend using the visual studio code extension (another post in this forum). Which is all vasm based and uses a modified version of fsuae to work. You can set breakpoints directly in the source editor and launch your code and it will stop at breakpoint and then single step through code (even for system killer demos). Even if you don’t end up using the debugging features it’s a neat m68k syntax highlighter.. The way I use it currently: - the “build” features are disabled. I build and run using a batch/make file and launch a self contained Amiga 500 session in WinUAE to quickly test in warp mode. Build and launch is only a few seconds. I’ve got a Lemon toolchain style build environment setup for this which I’ve updated to include latest tools/vasm. So 90% of the time I’m just using the extension as a highlighter. I can use the built in WinUAE debugger for finding obvious deadlocks. - for bugs that I can’t easily find I then use the vs code extension to launch the same executable above which the runs a custom fsuae session and you can single step through code and see it in the source editor. It’s a little bit tricky to setup but the author has created a test bundle that pretty much works straightaway. The only thing I’d say is that to enjoy working in this way you need to code in a modular way. That is no single file that includes hundreds of other files as it can confuse the debugger. But I’d say that’s a bad way to code these days anyway. Xref/def is your friend |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tool to convert asm to gnu asm (gas) | Asman | Coders. Asm / Hardware | 13 | 30 December 2020 11:57 |
Debugger updates (was: WinUAE Debugger HH PC history) | selco | support.WinUAE | 8 | 14 March 2018 22:27 |
Using the ASM-One debugger on K3.1 | zedr | Coders. Asm / Hardware | 14 | 28 August 2014 23:01 |
What are the recommended settings for ASM-One? | MethodGit | Coders. General | 1 | 05 November 2010 15:48 |
Asm-One debugger problems | WayneK | Coders. General | 2 | 26 December 2005 07:06 |
|
|