comparison code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 130:d721b49b8934

Fixed profile view (Logbook)
author Heinrichsweikamp
date Tue, 04 Jan 2011 17:41:13 +0100
parents 06c4899ddb4b
children 8b75ba28d641
comparison
equal deleted inserted replaced
129:06c4899ddb4b 130:d721b49b8934
55 55
56 ; ----------------------------- 56 ; -----------------------------
57 ; PLED_SetColumnPixel: 57 ; PLED_SetColumnPixel:
58 ; ----------------------------- 58 ; -----------------------------
59 PLED_SetColumnPixel: 59 PLED_SetColumnPixel:
60 movwf win_leftx2 ; d'0' ... d'159' 60 movff WREG,win_leftx2 ; d'0' ... d'159'
61 mullw 2 ; Copy to POD, times 2. 61 mullw 2 ; Copy to PROD, times 2.
62 62
63 movlw 0x21 ; Start Address Vertical (.0 - .319) 63 movlw 0x21 ; Start Address Vertical (.0 - .319)
64 rcall PLED_CmdWrite 64 rcall PLED_CmdWrite
65 bra PLED_DataWrite_PROD 65 bra PLED_DataWrite_PROD
66 66
82 82
83 PLED_PxlWrite: 83 PLED_PxlWrite:
84 rcall PLED_PxlWrite_Single ; Write first pixel. 84 rcall PLED_PxlWrite_Single ; Write first pixel.
85 85
86 ; Write 2nd Pixel on same row but one column to the right 86 ; Write 2nd Pixel on same row but one column to the right
87 movwf win_leftx2,W ; Increment column address. 87 movff win_top,WREG
88 rcall PLED_SetRow ; Re-Set Row
89 movff win_leftx2,WREG ; Increment column address.
88 mullw 2 90 mullw 2
89 incf PRODL 91 incf PRODL
90 clrf WREG ; Does not reset CARRY... 92 clrf WREG ; Does not reset CARRY...
91 addwfc PRODH 93 addwfc PRODH
92 movlw 0x21 ; Start Address Vertical (.0 - .319) 94 movlw 0x21 ; Start Address Vertical (.0 - .319)