Vamiga: AmigaTestKit graphics error

Created on 16 Jun 2019  路  1Comment  路  Source: dirkwhoffmann/vAmiga

Reference (SAE):

Screenshot 2019-06-16 at 13 47 33

vAmiga 馃檲:

Screenshot 2019-06-16 at 13 43 51

Bug

Most helpful comment

This morning, vAmiga looked like this:

Screenshot 2019-06-17 at 09 09 16

I don't know why. Yesterday, I worked on serial transmission and sound only. Somehow, it cured itself over night 馃槼.

The remaining error was due to the handling of registers BPL1MOD and BPL2MOD. Their contents has to be treated as signed 16-bit values, not unsigned 16-bit. With uint16_t, no sign extension takes place when adding to larger values (such as the 24-bit DMA pointers). Hence, the bitplane DMA pointers never decreased, even if BPL1MOD or BPL2MOD were negative.

Screenshot 2019-06-17 at 10 04 44

Hopefully, this fixes other issues as well.

A big thank you goes to @keirf. With his amazing AmigaTestKit and his easy-to-read source code I was able to find the error in no time.

>All comments

This morning, vAmiga looked like this:

Screenshot 2019-06-17 at 09 09 16

I don't know why. Yesterday, I worked on serial transmission and sound only. Somehow, it cured itself over night 馃槼.

The remaining error was due to the handling of registers BPL1MOD and BPL2MOD. Their contents has to be treated as signed 16-bit values, not unsigned 16-bit. With uint16_t, no sign extension takes place when adding to larger values (such as the 24-bit DMA pointers). Hence, the bitplane DMA pointers never decreased, even if BPL1MOD or BPL2MOD were negative.

Screenshot 2019-06-17 at 10 04 44

Hopefully, this fixes other issues as well.

A big thank you goes to @keirf. With his amazing AmigaTestKit and his easy-to-read source code I was able to find the error in no time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dirkwhoffmann picture dirkwhoffmann  路  3Comments

Alessandro1970 picture Alessandro1970  路  4Comments

dirkwhoffmann picture dirkwhoffmann  路  3Comments

emoon picture emoon  路  4Comments

dirkwhoffmann picture dirkwhoffmann  路  4Comments