Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
gen.py File Reference

Namespaces

namespace  gen
 

Functions

 gen.copy_fn (B, U, timed=True)
 
 gen.set_fn (U, timed=True)
 
 gen.thunk_fn (target)
 
 gen.build ()
 

Variables

str gen.LICENSE
 
list gen.COPIES = [(2, 2), (4, 4), (8, 8), (8, 16), (8, 32), (2, 32), (4, 32), (16, 16), (16, 32)]
 
list gen.SETS = [1, 2, 4, 8, 16, 32, 64]
 
list gen.TREGS = ["$t%d" % i for i in range(8)]
 
list gen.SREGS = ["$s%d" % i for i in range(8)]
 
list gen.TIMER_START = [" lui $t9, 0x1f80", " lhu $t8, 0x1120($t9)"]
 
list gen.TIMER_STOP
 
list gen.BARE_COPIES = [(8, 8)]
 
list gen.BARE_SETS = [4]
 
list gen.THUNKS = ["__wrap_memcpy", "__wrap_memset", "copy_b8_u8_bare", "set_u4_bare"]
 
 gen.text = build()
 
 gen.cur = open("kernels.s").read()