PicoMite Framebuffer F and L?

Hello,

what is the difference between Framebuffer F and L(layer)?

Thx!

I am also strugguling with this (PicoCalc). I am trying to use the framebuffer to save a screen state to be restored later. Unfortunately the documentation is a bit short and the examples I was able to find does not help either.

I wrote the following program:

FRAMEBUFFER CREATE
FRAMEBUFFER WRITE n

Cls

' Draw the initial screen
print "This is a framebuffer test"
Print ""
COLOUR RGB(RED), RGB(BLACK)
PRINT "First screen content"
COLOUR RGB(GREEN), RGB(BLACK)
PRINT ""
PRINT "Press any key to continue"

' Wait for any keypress
DO WHILE INKEY$ = ""
LOOP

' Save the current screen into the framebuffer
FRAMEBUFFER Copy n,f

CLS

' Draw the second screen
print "This is the second screen"
Print ""
COLOUR RGB(RED), RGB(BLACK)
PRINT "Different content"
PRINT "Different content"
PRINT "Different content"
PRINT "Different content"
COLOUR RGB(GREEN), RGB(BLACK)
PRINT ""
PRINT "Press any key to continue"

' Wait for any keypress
DO WHILE INKEY$ = ""
LOOP

' Copy the last save screen back
FRAMEBUFFER Copy f,n

PRINT "Screen restored"


So my idea was that I create a framebuffer, so memory is allowcated for the screen to be stored. But I continue my program as usual and keep drawing to the screen. And I use FRAMEBUFFER Copy n,f to copy the current screen content to the f buffer. And when this is executed, by PicoCalc dumps and reboots.