konimaru / waitvid.2048

video drivers for the Parallax P8X32A
MIT License
19 stars 6 forks source link

POC/320x256.4 full colour update (6bit/8bit colour) #23

Closed konimaru closed 5 years ago

konimaru commented 5 years ago
                mov     zwei, scrn              ' vgrp:[!Z]:vpin:[!Z]:scrn = 2:1:8:5:16 (%%)
                shr     zwei, #5+16 wz          ' |
        if_z    mov     zwei, vcfg_norm         ' |
        if_nz   movs    vcfg_norm, zwei         ' | replace pins
                shr     zwei, #9                ' |
        if_nz   movd    vcfg_norm, zwei         ' | replace group

                mov     mask, vcfg_norm         ' |
                and     mask, #%%333_3          ' transfer vpin
                shl     zwei, #3                ' 0..3 >> 0..24
                shl     mask, zwei              ' RGB mask

                mov     zwei, attr              ' sgrp:[!Z]:----:[!Z]:scrn = 2:1:8:5:16
                shr     zwei, #5+16 wz          ' |
        if_z    mov     zwei, vcfg_sync         ' |
'{fix}  if_nz   movs    vcfg_sync, zwei         ' | %%000_3
                shr     zwei, #9                ' |
        if_nz   movd    vcfg_sync, zwei         ' | replace group

                mov     eins, vcfg_sync         ' |                                     (%%)
                and     eins, #%%000_3          ' transfer vpin
                shl     zwei, #3                ' 0..3 >> 0..24
                shl     eins, zwei              ' H/V mask

                or      mask, eins              ' finalise mask
konimaru commented 5 years ago

Done (1e08b623ff3e60fdb53cff1d775617dd807ec90c, e758c17e0e4b2805cdf11aca0091efff600b9254).