Changes
Jump to navigation
Jump to search
no edit summary
* Opcode: '''0x66'''
* Short name: '''SCR2DC'''
* Long name: Scroll to Coordinates (Smooth)
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x66
! width="50" | ''B1 / B2''
! width="50" | ''0 / B3''
! width="80" | ''X''
! width="80" | ''Y''
! width="80" | ''S''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''X'' is set as a constant value.
* '''const Bit[4]''' ''B2'': Source bank 2, or zero if ''Y'' is set as a constant value.
* '''const Bit[4]''' ''0'': Zero.
* '''const Bit[4]''' ''B4'': Source bank 3, or zero if ''S'' is set as a constant value.
* '''const Short''' ''X'': X-coordinate to scroll to.
* '''const Short''' ''Y'': Y-coordinate to scroll to.
* '''const UShort''' ''S'': Speed to scroll; higher values scroll more slowly.
==== Description ====
Scrolls the current view to the coordinates found in the arguments, or the values found at the addresses if memory banks are specified in the first two arguments. The scroll is smooth, that is, it begins slowly, speeds up and reaches its peak at the middle of the scroll, then slows down towards the end. A mixture of memory-retrieved values and literal values can be used.
* Short name: '''SCR2DC'''
* Long name: Scroll to Coordinates (Smooth)
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x66
! width="50" | ''B1 / B2''
! width="50" | ''0 / B3''
! width="80" | ''X''
! width="80" | ''Y''
! width="80" | ''S''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''X'' is set as a constant value.
* '''const Bit[4]''' ''B2'': Source bank 2, or zero if ''Y'' is set as a constant value.
* '''const Bit[4]''' ''0'': Zero.
* '''const Bit[4]''' ''B4'': Source bank 3, or zero if ''S'' is set as a constant value.
* '''const Short''' ''X'': X-coordinate to scroll to.
* '''const Short''' ''Y'': Y-coordinate to scroll to.
* '''const UShort''' ''S'': Speed to scroll; higher values scroll more slowly.
==== Description ====
Scrolls the current view to the coordinates found in the arguments, or the values found at the addresses if memory banks are specified in the first two arguments. The scroll is smooth, that is, it begins slowly, speeds up and reaches its peak at the middle of the scroll, then slows down towards the end. A mixture of memory-retrieved values and literal values can be used.