PicoMite/VGA/Web V5.08.00: Release candidates


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11636
Posted: 07:52pm 16 Jan 2024      

V5.08.00RC4

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Fixes the couple of bugs found by Frank

Adds a new game orientated feature to the VGA version

FRAMEBUFFER OFFSET x, y [,b]


This command changes the VGA output so it offsets reading the framebuffer vertically by subtracting y from the line and each line horizontally by adding x. The optional parameter B waits for frame blanking before making the change.
Note: this command does not change the contents of the framebuffer, just the way it is read out of the buffer.
The command is only available when OPTION CPUSPEED 252000 is set.

FRAMEBUFFER OFFSET 16,16 will move the image 16 lines down the screen and 16 pixels to the right with lines at the bottom wrapping to the top and pixels at the right wrapping to the left.

The shifts in the y direction can be any number between 0 and MM.VRES-1
The shift in the x direction must be between 0 and MM.HRES - xmod and be a multiple of xmod which is 16 for mode 1 and 2 for mode 2

Example code as shown in the Demo

MODE 2
Load image "b:/julia2"
Do
 For y=0 To 238 Step 2
   x=y*4/3
   If x Mod 2 Then Inc x
   FRAMEBUFFER offset x,y,b
 Next
Loop