We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d20db11 commit 6f99393Copy full SHA for 6f99393
kernel7.asm
@@ -65,6 +65,14 @@ MainLoop:
65
bl DrawPlayer
66
pop {r0-r9}
67
68
+ add r4,#10
69
+ add r5,#10
70
+
71
+ push {r0-r9}
72
+ mov r1, $FF000
73
+ bl TIMER
74
+ pop {r0-r9}
75
76
b MainLoop ;loop forever
77
78
CoreLoop: ; Infinite Loop For Core 1..3
timer2_2Param.asm
@@ -1,13 +1,13 @@
1
-TIMER: ;this function has 2 parameters
+TIMER: ;this function has 1 parameter
2
TIMER_OFFSET=$3000
3
-mov r3,r0 ;BASE - depends on Pi model
+mov r3,BASE
4
orr r3,TIMER_OFFSET
5
mov r4,r1 ;$80000 passed as a parameter
6
ldrd r6,r7,[r3,#4]
7
mov r5,r6
8
loopt1: ;label still has to be different from one in _start
9
10
- sub r8,r6,r5
+ sub r8,r6,r5
11
cmp r8,r4
12
bls loopt1
13
bx lr ;return
0 commit comments