
Proj3Kornreich
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: myAss.S
- Revision:
- 0:77c6d064a44f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/myAss.S Mon Nov 15 06:10:23 2021 +0000 @@ -0,0 +1,26 @@ + AREA myAss, CODE, READONLY + GLOBAL compare + + ; bool compare(uint32_t *, uint16_t *) +compare LDR R2,[R0]; screen section + LDRH R3,[R1]; Y position + + + MOV R1, #106; 1/3 of y length of screen + MUL R2, R1, R2 + + CMP R3, R2 ; return true if screen section is withing the 1/3 of the screen selected. + + MOV R0, #1 + MOVGE R0, #0 + SUB R2, R2, R1 + CMP R3, R2 + MOVLE R0, #0 + + + + + BX LR + + + END \ No newline at end of file