Skip to content

Instantly share code, notes, and snippets.

@csherratt
Created April 7, 2017 00:16
Show Gist options
  • Save csherratt/6a4291b8af5f2d7ac3d890b80ccecb9e to your computer and use it in GitHub Desktop.
Save csherratt/6a4291b8af5f2d7ac3d890b80ccecb9e to your computer and use it in GitHub Desktop.
cpu
mov $80c0000, $UNKNOWN_CPU_REG_7
jmp :80c1128 <_main>
enter R-32
call :80c0530 <_disable_ints>
cpu
and3 $7000, $UNKNOWN_CPU_REG_5
cpu
and $ffff8fff, $UNKNOWN_CPU_REG_5
return R0
call :80ce278 <_get_cpu_id>
enter R-16
and3 *$800dc3:ub, $f
mov R4, R20
add $fffffffc, R20
return R16
cmpeq $0, R4
jmptf :80c11ac
mov *$80f8fb8 <_memsize>, R20
add $8000000, R20
call :80ce278 <_get_cpu_id>
enter R-16
and3 *$800dc3:ub, $f
mov R4, R20
add $fffffffc, R20
return R16
catch R32
shl3 $b, R4
add3 $800, R4
mov R20, R16
sub R4, R16
mov *$80f8fb8 <_memsize>, R20
add $8000000, R20
call :80ce278 <_get_cpu_id>
enter R-16
and3 *$800dc3:ub, $f
mov R4, R20
add $fffffffc, R20
return R16
catch R32
shl3 $b, R4
add3 $800, R4
sub3 R4, R20
mov R4, R8
add $7f0, R8
add3 $6f0, R16
call :80c0510 <_set_stacks>
add $fffffff0, R8
cpu
mov R8, $UNKNOWN_CPU_REG_2
add R4, *R8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment