homebrew/inc/n64.inc

35 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2018-08-20 20:10:06 -07:00
// by krom, expanded and reorganized by notwa
include "n64_cpu.inc"
2018-08-20 20:57:19 -07:00
include "n64_cp0.inc"
include "n64_cp1.inc"
2018-08-20 20:10:06 -07:00
include "n64_map.inc"
include "n64_sp.inc"
include "n64_dp.inc"
include "n64_mi.inc"
include "n64_vi.inc"
include "n64_ai.inc"
include "n64_pi.inc"
include "n64_ri.inc"
include "n64_si.inc"
include "n64_pif.inc"
include "n64_util.inc"
2018-08-18 07:39:57 -07:00
// Rates
constant CLOCK_RATE(93750000)
constant COUNT_RATE(CLOCK_RATE / 2) // for use with the CP0 Count register.
constant COP_RATE(CLOCK_RATE * 2 / 3)
2018-08-16 10:53:31 -07:00
// Memory Map
constant RDRAM_BASE($A3F0) // $03F00000 RDRAM Base
constant RDRAM_DEVICE_TYPE($00) // $03F00000 Device Type
constant RDRAM_DEVICE_ID($04) // $03F00004 Device ID
constant RDRAM_DELAY($08) // $03F00008 Delay
constant RDRAM_MODE($0C) // $03F0000C Mode
constant RDRAM_REF_INTERVAL($10) // $03F00010 Ref Interval
constant RDRAM_REF_ROW($14) // $03F00014 Ref Row
constant RDRAM_RAS_INTERVAL($18) // $03F00018 Ras Interval
constant RDRAM_MIN_INTERVAL($1C) // $03F0001C Minimum Interval
constant RDRAM_ADDR_SELECT($20) // $03F00020 Address Select
constant RDRAM_DEVICE_MANUF($24) // $03F00024 Device Manufacturer