title: "vbmCopyFromBuffer" description: TRSE built-in method (from IDE help)
vbmCopyFromBuffer
Systems: VIC20
Parameters: a,b,b
vbmCopyFromBuffer( [address], [byte-w], [byte-h] );
- [address] - address of the buffer
- [byte-w] - width - number of character columns to copy
- [byte-h] - height - number of pixels high to copy
Description
Copies a previously created buffer back to the bitmap using the current location of the built in zero page pointer called screenmemory. When copying the buffer back to the bitmap the same width and height should be specified as used with the vbmCoptToBuffer command.
Please note, only copy 1 column at a time if using the vbmScrollLeft or vbmScrollRight as this command uses a simple addition of 192 to get to the next column.
Example
// set the screenmemory pointer to a location on the bitmap to start copying to
screenmemory := $1100; // can also use vbmSetPosition1 and vbmSetColumn
// copy 2 character columns of 8 pixels from the buffer at address $a000 to the bitmap
vbmCopyFromBuffer( ^$a000 , 2, 8);