diff options
| author | Christian Cunningham <cc@localhost> | 2022-03-25 23:59:05 -0700 | 
|---|---|---|
| committer | Christian Cunningham <cc@localhost> | 2022-03-25 23:59:05 -0700 | 
| commit | 32ef93110fc993f24540bdcff6c3d88c47cd64c1 (patch) | |
| tree | 0ac9b4fa0258b0f3c9f2506b5f42a19fffa0629e /usr/tests/test.S | |
| parent | e733d37ee2aee3a5f3850ab336d588f814bb134c (diff) | |
Don't schedule if you don't have to
Diffstat (limited to 'usr/tests/test.S')
| -rw-r--r-- | usr/tests/test.S | 31 | 
1 files changed, 31 insertions, 0 deletions
| diff --git a/usr/tests/test.S b/usr/tests/test.S new file mode 100644 index 0000000..e80b6be --- /dev/null +++ b/usr/tests/test.S @@ -0,0 +1,31 @@ +.section .text + +a.btest: +	push {lr} +	mov r0, #5 +	cmp r0, #4 +	pop {pc} + +.globl atest +atest: +	push {lr} +	ldr r0, =a.btest +	mov r1, #0 +	mov r2, #0 +	bl add_thread +	mov r0, #5 +	subs r0, #5 +	svc #0 +	beq 1f +	mov r0, #0 +	mov r1, #11 +	mov r2, #0x4E +	mov r3, #0xFF0000 +	bl draw_cletter +	pop {pc} +1:	mov r0, #0 +	mov r1, #11 +	mov r2, #0x59 +	mov r3, #0xFF00 +	bl draw_cletter +	pop {pc} | 
