Untitled

mail@pastecode.io avatar
unknown
plain_text
11 days ago
1.0 kB
3
Indexable
Never
	ld a,$2A								; set col address
	call spiCmd
	ld de,0								; left
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	ld de,159								; right
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	
	ld a,$2B								; set col address
	call spiCmd
	ld de,0								; upper
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	ld de,239								; lower
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	
	ld a,$33								; setup vertical scroll
	call spiCmd
	ld de,0								; TFA
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	ld de,160								; SFA
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	ld de,160								; BFA
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	
	ld a,$37								; set vertical scroll
	call spiCmd
	ld de,320								; left side to right side
	ld a,d
	call spiParam
	ld a,e
	call spiParam
	
	ld a,$E4								; set gate control
	call spiCmd
	ld a,$27								; 320 lines
	call spiParam
	ld a,0
	call spiParam							; start line
	ld a,$14
	call spiParam							; interlace
Leave a Comment