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

Add KosinskiPlusM asm code #30

Open
kuroya2mouse opened this issue Jul 11, 2024 · 2 comments
Open

Add KosinskiPlusM asm code #30

kuroya2mouse opened this issue Jul 11, 2024 · 2 comments

Comments

@kuroya2mouse
Copy link

Can you upload ASM-decoder for KosinskiPlusM?

@flamewing
Copy link
Owner

flamewing commented Jul 13, 2024

It is pretty much identical to KosM.asm except for:

  1. these lines:
        move.l	(Kos_decomp_source).w,d1
        sub.l	d1,d0
        andi.l	#$F,d0
        add.l	d0,d1					; round to the nearest $10 boundary
        move.l	d1,(Kos_module_queue).w	; and set new source
    should be changed to
        move.l	(Kos_decomp_source).w,(Kos_module_queue).w	; set new source
  2. this line:
        include "_inc/Kosinski_internal.asm"
    should be changed to
        include "_inc/KosinskiPlus_internal.asm"
  3. This line
        movem.w	(Kos_decomp_stored_Wregisters).w,d0-d6
    should be changed to
        movem.w	(Kos_decomp_stored_Wregisters).w,d0/d2/d4-d7
  4. This line
        movem.w	d0-d6,(Kos_decomp_stored_Wregisters).w
    should be changed to
        movem.w	d0/d2/d4-d7,(Kos_decomp_stored_Wregisters).w
  5. You should create a file "_inc/KosM_internal.asm" modeled after "_inc/Kosinski_internal.asm" and use it on "KosinskiPlus.asm"

Optionally, you can also change all function names in the modified file to use "KosPlus" instead of "Kos", but this is only an issue if you want to use KosPlusM and KosM in the same hack.

@kuroya2mouse
Copy link
Author

It's working! Thank you very much

Could you add asm files to the repository so that others can add it to their projects?

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