GPGPU applications on MSX

Página 2/2
1 |

Por Louthrax

Prophet (2414)

Imagen del Louthrax

14-06-2016, 11:49

Have been thinking about possibility to make additions or substractions on arrays of intergers using logical operations, main issue is that we have no "carry" mechanism (only OR, AND, XOR, IMP, NOT which do not propagate over bits).

Por umaiboux

Resident (43)

Imagen del umaiboux

14-06-2016, 14:25

5 ' generate (pseudo) random numbers on VRAM
10 SCREEN8
20 FORI=0TO255:LINE(I,0)-(I,211),I:NEXT
30 COPY(0,0)-(254,210)TO(1,1),,XOR
40 COPY(255,0)-(1,210)TO(254,1),,XOR
50 COPY(0,211)-(255,1)TO(0,210),,XOR
55 ' PSET(RND(1)*256,RND(1)*212),RND(1)*256
60 GOTO 30

or, it can use for Random-dot stereogram.

Página 2/2
1 |