Search found 7 matches

by Olivier
Sun Aug 15, 2021 11:25 pm
Forum: Programming Discussion
Topic: How do I subtract with alpha blending?
Replies: 5
Views: 1764

Re: How do I subtract with alpha blending?

Edit: I need to study more
by Olivier
Fri Jul 30, 2021 7:36 am
Forum: Programming Discussion
Topic: SH4 Contention between IF and MA
Replies: 5
Views: 876

Re: SH4 Contention between IF and MA

Thank you again @TapamN for you quick and complete answer ^^
by Olivier
Fri Jul 30, 2021 7:34 am
Forum: Programming Discussion
Topic: SH4 Superscalar
Replies: 2
Views: 655

Re: SH4 Superscalar

TapamN wrote: Fri Jul 30, 2021 2:07 am If two instructions can't be executed in parallel, it runs the first instruction this cycle, then the next cycle it tries to run the second and third instructions in parallel.
OK, now I get it. Thank you very much for your answer ^^
by Olivier
Thu Jul 29, 2021 2:04 pm
Forum: Programming Discussion
Topic: SH4 Contention between IF and MA
Replies: 5
Views: 876

Re: SH4 Contention between IF and MA

Totally makes sense. Thank you so much for the answer and the reminder about the Harvard / Von Neumann architecture ˆˆ
by Olivier
Thu Jul 29, 2021 11:57 am
Forum: Programming Discussion
Topic: SH4 Contention between IF and MA
Replies: 5
Views: 876

Re: SH4 Contention between IF and MA

Add: If we use the C code given by @nymus in the "SH4 assembly function call in C" : int test(int values[5]) { int total = 0; for(int i = 0; i < 5; ++i) { total += values[i]; } return total; } The -O3 compiled code is: _test: mov.l @(4,r4),r1 I D X M S mov.l @r4,r0 i D X M S add r1,r0 I D ...
by Olivier
Thu Jul 29, 2021 9:14 am
Forum: Programming Discussion
Topic: SH4 Contention between IF and MA
Replies: 5
Views: 876

SH4 Contention between IF and MA

Hello to all. I have a question, coming from SH2. The SH2 Programming Manual states (§7.4.3, p174) : When an instruction is located in on-chip memory (ROM/RAM) or on-chip cache, there are instruction fetch stages (‘if’ written in lower case) that do not generate bus cycles as explained in section 7....
by Olivier
Thu Jul 29, 2021 8:47 am
Forum: Programming Discussion
Topic: SH4 Superscalar
Replies: 2
Views: 655

SH4 Superscalar

Hello to you all, this is my first post here ^^ I've done my share of coding on Genesis and 32X, and am now getting into Dreamcast (I love Hitachi SuperH!). As you know, one of the main differences between SH2 and SH4 is the latter being superscalar. This means that, for certain instructions, two ca...