comparison code_part1/OSTC_code_asm_part1/dump_screen.asm @ 477:1b09cead63a8

BUGFIX dump screen top line in flip mode (OSTC 2N).
author JeanDo
date Mon, 10 Oct 2011 01:15:14 +0200
parents 9ee86a19f1fa
children 6e456a6398e0
comparison
equal deleted inserted replaced
476:7779bfa89171 477:1b09cead63a8
70 70
71 AA_CMD_WRITE 0x37 ; HorizontalAddress START:END 71 AA_CMD_WRITE 0x37 ; HorizontalAddress START:END
72 AA_DATA_WRITE 0x00 72 AA_DATA_WRITE 0x00
73 AA_DATA_WRITE 0xEF 73 AA_DATA_WRITE 0xEF
74 74
75 btfss win_flip_screen ; OSTC 2N have a flipped screen,
76 bra dump_screen_mk2 ; So we should start 239 instead.
77 movlw LOW(.239)
78 movwf PRODL
79 movlw HIGH(.239)
80 movwf PRODH
81 dump_screen_mk2:
82
75 AA_CMD_WRITE 0x20 ; Start Address Horizontal (.0 - .239) 83 AA_CMD_WRITE 0x20 ; Start Address Horizontal (.0 - .239)
76 AA_DATA_WRITE_PROD ; 00:00 84 AA_DATA_WRITE_PROD ; 00:00
77 85
86 mullw 0 ; Make sure PROD is 0 again.
78 AA_CMD_WRITE 0x21 ; Start Address Vertical (.0 - .319) 87 AA_CMD_WRITE 0x21 ; Start Address Vertical (.0 - .319)
79 AA_DATA_WRITE_PROD ; 00:00 88 AA_DATA_WRITE_PROD ; 00:00
80 89
81 AA_CMD_WRITE 0x22 ; Start reading. 90 AA_CMD_WRITE 0x22 ; Start reading.
82 rcall PLED_DataRead ; Dummy pixel to skip. 91 rcall PLED_DataRead ; Dummy pixel to skip.