Closed ColinPitrat closed 3 years ago
One option could be to add another check in ./source/trsedocuments/formraseditor.cpp
to discard .asm
files as well as .tru
, but it seems like this would need to be extended to any format file I could open ...
ah yes I haven't set up compiling .asm files directly on the z80 / x86 / m68k - only the 6502 .asm files can currently execute and run. I'll make sure that Ctrl+R won't work on .asm files on the Z80/ x86/m68k until this gets requested.. gotta prioritize! thanks for reporting this =)
Quick fix: at least it doesn't crash when trying to compile an assembly file, but still no support for being able to compile and run .asm files directly. If you are interested in having this as a feature, then please create a new request issue! Thansk for reporting this =)
Nope, I don't really need this for now, it's just that it was crashing when I was pressing Ctrl-R without thinking where I was.
Thanks!
When in my project, if I double click on a
.asm
file and then press Ctrl-R to run it segfaults. It works fine on the.ras
file and I get a clear error message on a.tru
file.This occurs because
m_assembler
is null when reaching SetupMemoryAnalyzer (line 120). I'm not yet sure how to properly fix this though because just returning false here makes TRSE think the running doesn't finish.