Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • ..
  • example
  • test.s
  • root's avatar
    added the rest · 5fa3b884
    5fa3b884
    root committed 2020-05-02 06:11:47 +0000
test.s 325 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <regdef.h>
#include <asm.h>
#include <R4300.h>
#include <PR/bcp.h>

.text
LEAF(main)
entry:
	li	t0, 0xff
	sw	t0, PHYS_TO_K1(PI_ACCESS_REG)
	li	t0, (1<<PI_GPIO_ENABLE_SHIFT)|1
	sw	t0, PHYS_TO_K1(PI_GPIO_REG)

exit_sim:
	lw	t0, PHYS_TO_K1(PI_GPIO_REG)
	and	t0, t0, 0xfffffffe
	sw	t0, PHYS_TO_K1(PI_GPIO_REG)
END(main)