SAGA_VIDEO_HTOTAL register
Overview
Change the current SAGA Video ModeLine HTOTAL attribute.
Name
SAGA_VIDEO_HTOTAL
Address
0xDFF306
Access
Write-Only
Size
16-bits
Description
See ModeLine for more information.
Property | Short | Description |
---|---|---|
HPIXEL | Width | Number of horizontal pixels drawn to the visible part of the screen. |
HSSTRT -HPIXEL | Front Porch | Amount of black pixels drawn to the right of the screen. |
HSSTOP -HSSTRT | Sync Pulse | Amount of time it takes to start another line. |
HTOTAL -HSSTOP | Back Porch | Amount of black pixels drawn to the left of the screen. |
Example
The following ASM snippet shows how to fully set a valid ModeLine.
MAIN: lea MyModeLine,a0 ; Load MyModeLine in A0 move.w (a0)+,$dff300 ; SAGA_VIDEO_HPIXEL move.w (a0)+,$dff302 ; SAGA_VIDEO_HSSTRT move.w (a0)+,$dff304 ; SAGA_VIDEO_HSSTOP move.w (a0)+,$dff306 ; SAGA_VIDEO_HTOTAL move.w (a0)+,$dff308 ; SAGA_VIDEO_VPIXEL move.w (a0)+,$dff30A ; SAGA_VIDEO_VSSTRT move.w (a0)+,$dff30C ; SAGA_VIDEO_VSSTOP move.w (a0)+,$dff30E ; SAGA_VIDEO_VTOTAL move.w (a0)+,$dff310 ; SAGA_VIDEO_HVSYNC rts MyModeLine: dc.w 800,832,912,1024,600,604,608,625,1 ; "800x600@60" 38.400000
You are here: start » saga » registers » saga_video_htotal
Last modified: le 2020/08/02 12:37