Helge Deller c7050f3f16 hw/display/artist: Refactor x/y coordination extraction
Simplify the code by using new introduced ADDR_TO_Y() and ADDR_TO_X()
macros. Those macros extract the x/y-coordinate from the given uint32.

As further simplification the extraction of the x/y coordinates for
VRAM_WRITE_INCR_Y and VRAM_WRITE_INCR_X can be done centrally in
vram_bit_write(), so move this code up into the function.

ADDR_TO_Y() is still limited to 10 bits which allow to address up to of
1024 lines - this will be increased in a follow-up patch.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2020-09-03 17:30:04 +02:00
..
2020-08-21 06:30:32 -04:00
2020-08-21 06:30:32 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:32 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:32 -04:00
2020-08-21 06:30:32 -04:00
2020-08-22 14:37:31 +01:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:31 -04:00
2020-08-21 06:30:31 -04:00
2020-09-02 23:16:52 +02:00
2020-08-21 06:30:31 -04:00
2020-08-21 06:30:30 -04:00
2020-08-22 14:37:31 +01:00
2020-08-21 06:30:30 -04:00
2020-08-21 06:30:30 -04:00
2020-08-24 09:35:21 +01:00
2020-08-21 06:30:30 -04:00
2020-08-21 06:30:29 -04:00
2020-08-21 06:30:29 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:26 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:29 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:29 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:25 -04:00
2020-08-24 09:35:21 +01:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:28 -04:00
2020-08-21 06:30:28 -04:00
2020-08-21 06:30:28 -04:00
2020-08-21 06:30:28 -04:00
2020-08-24 09:35:21 +01:00
2020-08-21 06:30:29 -04:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:33 -04:00
2020-08-27 12:37:03 +02:00
2020-08-21 06:30:28 -04:00
2020-08-21 06:30:25 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:25 -04:00
2020-08-24 09:35:21 +01:00
2020-08-24 09:35:21 +01:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:26 -04:00
2020-08-21 06:30:26 -04:00
2020-08-21 06:30:26 -04:00
2020-08-21 06:30:24 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00