Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86-emu: Support fbld #25

Open
encounter opened this issue Jul 26, 2024 · 2 comments
Open

x86-emu: Support fbld #25

encounter opened this issue Jul 26, 2024 · 2 comments

Comments

@encounter
Copy link
Contributor

Test case: fbld_testcase.zip

Command:

retrowin32 mwcceppc.exe -nodefaults -proc gekko -align powerpc -enum int -fp hardware -Cpp_exceptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -pragma "cpp_extensions on" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -multibyte -use_lmw_stmw on -str reuse,pool,readonly -gccinc -inline deferred,noauto -common on -c CScriptWaypoint.cpp -o CScriptWaypoint.o

Output:

INFO win32/src/winapi/kernel32/init.rs:506 invoking dllmain 5400
thread 'main' panicked at x86/src/icache.rs:64:62:
not yet implemented: fbld tbyte ptr [edx] (Fbld_m80bcd)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@evmar
Copy link
Owner

evmar commented Jul 26, 2024

If you wanted to try you could look at a change like 787a7fe for inspiration, it's typically just adding a fn and an entry in the table.

This is the best x86 doc: https://www.felixcloutier.com/x86/fbld

@evmar
Copy link
Owner

evmar commented Jul 26, 2024

Also, who is using BCD in the real world haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants