BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
303 stars 38 forks source link

Sample includes two copies of doynax but does not use either? #151

Closed rjobling closed 1 year ago

rjobling commented 1 year ago

The sample includes duplicate .s and a .asm versions of the doynax code.

Only the .s code is hooked up with some inline code. But then that function is never called.

Would be nice to have a working example of using .asm files and using something like doynax.

The makefile is also hardcoded to only two specific .s files and it would be nice if it were more generic.

Not urgent but thought maybe you might like the feedback.

BartmanAbyss commented 1 year ago

Yeah, just an example on how to use assembly code. You're right, could do wildcards for .s files, but apparently nobody likes gas .s files, so the wildcard is just hooked up for vasm .asm files...

BartmanAbyss commented 1 year ago

I have wired up the VASM doynax code. Have a look here: https://github.com/BartmanAbyss/vscode-amiga-debug/blob/master/template/main.c#L177 https://github.com/BartmanAbyss/vscode-amiga-debug/blob/master/template/support/depacker_doynax_vasm.asm The makefile already supports building all .asm files (VASM), so probably it's a better idea to use .asm (VASM) than .s (GAS)