Blame | Last modification | View Log | RSS feed
@@@ Copyright 2010 TheSeven@@@ This file is part of emBIOS.@@ emBIOS is free software: you can redistribute it and/or@ modify it under the terms of the GNU General Public License as@ published by the Free Software Foundation, either version 2 of the@ License, or (at your option) any later version.@@ emBIOS is distributed in the hope that it will be useful,@ but WITHOUT ANY WARRANTY; without even the implied warranty of@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.@ See the GNU General Public License for more details.@@ You should have received a copy of the GNU General Public License@ along with emBIOS. If not, see <http://www.gnu.org/licenses/>.@@.section .icode.displaylcd, "ax", %progbits.align 2.global displaylcd.type displaylcd, %functiondisplaylcd:stmfd sp!, {r0,r1,r4,lr}mov r12, #0x38000000orr r12, r12, #0x300000mov r0, #0x2abl displaylcd_sendlcdcldr r0, [sp]bl displaylcd_sendlcddldr r0, [sp,#0x04]bl displaylcd_sendlcddmov r0, #0x2bbl displaylcd_sendlcdcmov r0, r2tst r0, #0x100eorne r0, #0x300bl displaylcd_sendlcddmov r0, r3tst r0, #0x100eorne r0, #0x300bl displaylcd_sendlcddmov r0, #0x2cbl displaylcd_sendlcdcldmia sp, {r0,r1}sub r1, r0add r1, r1, #1sub r3, r2add r3, r3, #1mul r2, r1, r3ldr r1, [sp,#0x10]cmp r1, #0x40000000bne displaylcd_framebufdisplaylcd_color:ldr r0, [sp,#0x14]bl displaylcd_sendlcddsubs r2, r2, #1bne displaylcd_colorldmfd sp!, {r4-r6,pc}displaylcd_framebuf:ldrh r0, [r1], #2bl displaylcd_sendlcddsubs r2, r2, #1bne displaylcd_framebufldmfd sp!, {r0,r1,r4,pc}displaylcd_sendlcdc:ldrh r4, [r12,#0x1c]tst r4, #0x10bne displaylcd_sendlcdcstrh r0, [r12,#0x04]mov pc, lrdisplaylcd_sendlcdd:ldrh r4, [r12,#0x1c]tst r4, #0x10bne displaylcd_sendlcddstrh r0, [r12,#0x40]mov pc, lr.size displaylcd, .-displaylcd.section .icode.displaylcd_sync, "ax", %progbits.align 2.global displaylcd_sync.type displaylcd_sync, %functiondisplaylcd_sync:mov pc, lr.size displaylcd_sync, .-displaylcd_sync