Log In  


Cart #blitbug-0 | 2025-04-05 | Embed ▽ | No License


The following code acts differently in the .html export compared to running the code in Picotron or as a .bin
blit(get_draw_target(),get_draw_target(),0,0,40,0,480,270)
The html result is shown above using the cart, while below is the result if the code is run in Picotron or as a binary export.



1

Thanks @Thelxinoe5, nice catch. This is fixed for 0.2.0d.

blit() is meant to allow overlapping regions that behave in a consistent way, but the 0.2.0c implementation is using an overlapping stdlib memcpy (-> undefined behaviour across platforms), instead of the internal picotron memcpy which handles overlapping memory regions.



[Please log in to post a comment]