next-cube.c: remove val and size arguments from nextscr2_write()
commit039b10ac98b2479c6617419936d0ae4d4e1fc97a
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 20 Dec 2023 13:16:40 +0000 (20 13:16 +0000)
committerThomas Huth <huth@tuxfamily.org>
Fri, 22 Dec 2023 13:08:26 +0000 (22 14:08 +0100)
tree92ec3106fda03124f1235585c5478ea51f7ba32d
parent3deafd18b05a6e16f5fe5c8125765101d539f69b
next-cube.c: remove val and size arguments from nextscr2_write()

These are now redundant with the scr2 and old_scr2 fields in NeXTPC. Rename
the function from nextscr2_write() to next_scr2_rtc_update() to better
reflect its purpose. At the same time replace the manual bit manipulation with
the extract32() and deposit32() functions.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-ID: <20231220131641.592826-11-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
hw/m68k/next-cube.c