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

Fix endianess #90

Open
tamaroning opened this issue Aug 27, 2023 · 0 comments
Open

Fix endianess #90

tamaroning opened this issue Aug 27, 2023 · 0 comments

Comments

@tamaroning
Copy link
Collaborator

tamaroning commented Aug 27, 2023

これがなぜか赤い問題、CPUでRDRAMにロードしたやつを描画してるから、エンディアンの問題なのかなーって思ってます :blobthinkingcool:
// PRDPで要求している配列 Alpha -> B -> G -> R -> Alpha -> B -> G -> R
// 現在CPUで並んでる配列順 R -> G -> B -> Alpha -> R -> G -> B -> Alpha
rdram[offs + 0] = 0x00 // Alpha
rdram[offs + 1] = 0x00 // B
rdram[offs + 2] = 0x00 // G
rdram[offs + 3] = 0xFF // R
rdram[offs + 4] = 0x00 // Alpha
rdram[offs + 5] = 0x00 // B
rdram[offs + 6] = 0x00 // G
rdram[offs + 7] = 0xFF // R

あれ、でもkmcのread_brom_byte_array32とn64, kaizenのread_brom_byte_array32で違う値返ってくる (エンディアン反対)

@sashi0034

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