
Final Version Program 4 Kornreich
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: myAssembly.S
- Revision:
- 0:9c65f066245c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/myAssembly.S Tue Dec 07 07:20:04 2021 +0000 @@ -0,0 +1,37 @@ + AREA myAssembly, CODE, READONLY + GLOBAL compare + + ; bool compare(uint32_t *) +compare + LDRH R3,[R0]; Y position + + + MOV R1, #0; 1/4 of y length of screen + + + CMP R3, R1 ; return true if screen section is withing the 1/3 of the screen selected. + + MOVGT R0, #1 + ADD R1, R1, #80 + + CMP R3, R1 ; return true if screen section is withing the 1/4 of the screen selected. + + MOVGT R0, #2 + ADD R1, R1, #80 + + CMP R3, R1 ; return true if screen section is withing the 1/4 of the screen selected. + + MOVGT R0, #3 + + + ADD R1, R1, #80 + CMP R3, R1 + MOVGT R0, #4 + + + + + BX LR + + + END \ No newline at end of file