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

ldasm return value error #506

Open
MiFeng-super opened this issue Apr 10, 2023 · 0 comments
Open

ldasm return value error #506

MiFeng-super opened this issue Apr 10, 2023 · 0 comments

Comments

@MiFeng-super
Copy link

MiFeng-super commented Apr 10, 2023

int main()
{
    uint8_t code[] =
    {
        0xA0, 0xB3, 0xF6, 0xEA, 0x00    // mov al, byte_EAF6B3
    };

    ldasm_data ld{};

    //
    // The correct return value of ldasm should be 5. But it returns 2
    // 
    std::cout << ldasm(code, &ld, 0);
}
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

1 participant