Closed SimpleTease closed 3 years ago
Tried removing BLOW_WHAT2
and got this new one.
ERROR: evaluateExpr: m.nb_dyna
Fatal error: Can't form Range with upperBound < lowerBound: file /Library/Caches/com.apple.xbs/Binaries/SwiftPrebuiltSDKModules_macOS/install/TempContent/Objects/EmbeddedProjects/CrossTrain_macOS_SDK/macOS_SDK/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface, line 4781
Cosmic alien language to me.
I have a conversion script and a modified version from https://github.com/bparker06/mrboom30 will push it soon.
@SimpleTease I just pushed, make sure you also pull asm2c.
Works correctly. I'll start playing around with merging the asm and see where I go.
Have to fix binary dumper for msvc. Then we should be done here.
Is mrboom.heap
still the same values as mrboom_data.c
? Because then I can copy-paste the msvc fixed version.
This is the value for the heap variable
db heap[HEAP_SIZE];
It's a hack and asm2c uses the heap file as a default for that variable.
I ran the sdl2 version that does some unzipping/decrunching in the first frame, then dumped the heap value and used it for the retrolib version so it doesn't need to have temporary files, since that was an issue for android.
Maybe a debug option to compile the SDL2 version so that it dumps the graphics data would be nice.
I ran the sdl2 version that does some unzipping/decrunching in the first frame, then dumped the heap value and used it for the retrolib version
Okay. So the heap value hasn't changed in awhile, since this commit? https://github.com/Javanaise/mrboom-libretro/commit/e074bafa1fe9480df1ba412752912a2c2c454958
I'll need to patch sdl2 heap dumper for msvc compatible.
Maybe a debug option to compile the SDL2 version so that it dumps the graphics data would be nice.
That would make sense.
I don't think it ever changed since it was introduced, the assembly code is not moving much.
Dumping graphics data means raw indexed values + palette table?
I meant the heap variable value, the palettes are not on the heap. there is only raw pixels and recorded games files. (for the demo mode)
BTW be careful with movsx, I remember there was a bug and it's not the the most tested instruction since I wasn't using it much.
I made edits to
Resources/asm.h
andSources/Nodes.swift
for cross-platform support (unaligned casts, libretro, msvc). Then tried to compilep.asm
from https://github.com/bparker06/mrboom30.Converted file paths from '\' to '/'. Then got stuck on this.