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

(toolchain) Support r800 #2377

Open
2 of 3 tasks
suborb opened this issue Aug 8, 2023 · 4 comments
Open
2 of 3 tasks

(toolchain) Support r800 #2377

suborb opened this issue Aug 8, 2023 · 4 comments

Comments

@suborb
Copy link
Member

suborb commented Aug 8, 2023

We might as well complete the set:

  • SLL doesn't exist (is actually SLA)
  • Index halves supported
  • New multiplication instructions (MULUB does unsigned 8bit multiplication, and the MULUW instructions does 16bit unsigned multiplication):
* ED F9 | MULUB A,A
ED C1 | MULUB A,B
ED C9 | MULUB A,C
ED D1 | MULUB A,D
ED D9 | MULUB A,E
* ED E1 | MULUB A,H
* ED E9 | MULUB A,L
ED C3 | MULUW HL,BC
* ED D3 | MULUW HL,DE
* ED E3 | MULUW HL,HL
ED F3 | MULUW HL,SP

(*) indicates that they may not work properly.

When using the MULUB instructions, the result is always stored to HL. While using the MULUW instructions the result is always stored to DE:HL

  • z80asm support
  • Ticks support
  • Library optimisations
@feilipu
Copy link
Collaborator

feilipu commented Aug 8, 2023

New multiplication instructions (MULUB does unsigned 8bit multiplication, and the MULUW instructions does 16bit unsigned multiplication).

Interesting. I've been procrastinating wrt Rabbit because it does signed multiply which I believe is annoying for chained (wide) multiply operations. But the unsigned ops sound more useful.

But what does "* may not work properly" mean?

Do you know whether it is possible to get a R800 anywhere besides in a MSX?

@suborb
Copy link
Member Author

suborb commented Aug 8, 2023

@suborb
Copy link
Member Author

suborb commented Aug 8, 2023

But what does "* may not work properly" mean?

No (from R800 user guide):

image

Do you know whether it is possible to get a R800 anywhere besides in a MSX?

I think that was the only place it was used.

@pauloscustodio
Copy link
Member

Closed by Github; only z80asm and ticks done.

suborb added a commit that referenced this issue Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants