Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/display_lowlevel.asm @ 687:a8a36c85e031
ignore screenshots with display1 (for now)
author | heinrichsweikamp |
---|---|
date | Sat, 26 Jan 2013 16:25:19 +0100 |
parents | 99b3fb0ab4c7 |
children | c04e5c18acf9 |
comparison
equal
deleted
inserted
replaced
686:8ffbd5cb4b42 | 687:a8a36c85e031 |
---|---|
762 ; DISP Read data into WREG | 762 ; DISP Read data into WREG |
763 ; ----------------------------- | 763 ; ----------------------------- |
764 ; NOTE: you should "setf TRISD" before calling this function, | 764 ; NOTE: you should "setf TRISD" before calling this function, |
765 ; to make PortD an input port... | 765 ; to make PortD an input port... |
766 DISP_DataRead: | 766 DISP_DataRead: |
767 movff win_flags,WREG ; Display1? win_flags is in bank0... | |
768 btfsc WREG,1 ; Display1? | |
769 return ; Yes, done. | |
767 bsf DISPLAY_rs ; Data register. | 770 bsf DISPLAY_rs ; Data register. |
768 bcf DISPLAY_e_nwr ; Read enable. | 771 bcf DISPLAY_e_nwr ; Read enable. |
769 nop | 772 nop |
770 nop | 773 nop |
771 nop | 774 nop |