Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IsaacMarovitz/tetsuyu
/ functions
Functions
313 in github.com/IsaacMarovitz/tetsuyu
⨍
Functions
313
◇
Types & classes
80
↓ 164 callers
Method
push
(&mut self, op: MicroOp)
src/hw/cpu.rs:544
↓ 52 callers
Method
set_flag
(&mut self, flag: Flags, state: bool)
src/components/registers.rs:76
↓ 16 callers
Method
push_front
(&mut self, op: MicroOp)
src/hw/cpu.rs:548
↓ 12 callers
Method
flag
(&self, f: Flags)
src/hw/cpu.rs:291
↓ 12 callers
Function
r8_of
r-table: index 6 is (HL); handled specially by callers.
src/hw/cpu.rs:45
↓ 11 callers
Method
read
(&self)
src/components/ppu/bgpi.rs:14
↓ 10 callers
Method
tick
Advance one T-cycle, reloading with `period` and returning true when the period elapses.
src/sound/period_timer.rs:24
↓ 9 callers
Method
bus
(&mut self, pins: &mut Pins)
src/hw/apu.rs:26
↓ 9 callers
Method
r8
(&self, r: R8)
src/hw/cpu.rs:215
↓ 8 callers
Method
load
(&mut self, value: u16, max_length: u16)
src/sound/length_counter.rs:24
↓ 8 callers
Method
merge
(&mut self, other: Ticked)
src/hw/bus.rs:60
↓ 8 callers
Method
write
(&mut self, v: u8)
src/components/ppu/bgpi.rs:19
↓ 7 callers
Method
read_vram
(&self, a: u16, bank: usize)
src/components/ppu/ppu.rs:669
↓ 7 callers
Method
selected
A chip calls this in its `tick` to decide whether to respond this dot.
src/hw/bus.rs:45
↓ 7 callers
Method
set_r8
(&mut self, r: R8, v: u8)
src/hw/cpu.rs:227
↓ 6 callers
Method
clear
(&mut self)
src/sound/ch4.rs:28
↓ 6 callers
Method
get_hl
(&self)
src/components/registers.rs:48
↓ 6 callers
Method
set
Load the counter directly. Used on trigger, where a channel may fold its own startup delay into the first period.
src/sound/period_timer.rs:18
↓ 6 callers
Method
update_stat_line
(&mut self)
src/components/ppu/ppu.rs:193
↓ 6 callers
Method
use_cgb_mode
(&self)
src/components/ppu/ppu.rs:661
↓ 6 callers
Method
wz
(&self)
src/hw/cpu.rs:211
↓ 5 callers
Method
check_lyc
(&mut self)
src/components/ppu/ppu.rs:183
↓ 5 callers
Method
set_pixel
(&mut self, r: u8, g: u8, b: u8, x: usize, y: usize)
src/framebuffer.rs:30
↓ 4 callers
Method
advance
Advance the APU, driven by the DIV-APU edge (falling bit 4/5).
src/hw/apu.rs:22
↓ 4 callers
Method
b
(&self)
src/config.rs:90
↓ 4 callers
Function
cc_of
(y: u8)
src/hw/cpu.rs:76
↓ 4 callers
Method
cond
(&self, c: Cond)
src/hw/cpu.rs:295
↓ 4 callers
Method
enable_clock
Extra clock applied when the counter is enabled (0->1 via NRx4) while the next frame-sequencer step won't clock length. Returns true if this drove the
src/sound/length_counter.rs:41
↓ 4 callers
Method
g
(&self)
src/config.rs:86
↓ 4 callers
Method
length_extra_clock
(&self)
src/sound/apu.rs:124
↓ 4 callers
Method
mux
The bit whose falling edge (ANDed with timer-enable) clocks TIMA.
src/hw/timer.rs:40
↓ 4 callers
Method
note_oam_glitch
Record that a 16-bit inc/dec acted on an address in the OAM region. The DMG glitches OAM when this happens during mode 2; the motherboard forwards the
src/hw/cpu.rs:965
↓ 4 callers
Method
r
(&self)
src/config.rs:82
↓ 4 callers
Method
read
(&self, a: u16)
src/components/ppu/ppu.rs:721
↓ 4 callers
Function
rp_of
(p: u8)
src/hw/cpu.rs:58
↓ 4 callers
Method
set_hl
(&mut self, x: u16)
src/components/registers.rs:67
↓ 4 callers
Method
trigger_reload
(&mut self, max_length: u16, extra: bool)
src/sound/length_counter.rs:28
↓ 4 callers
Method
update
(&self, freq: f32, vol: f32, duty: f32, pan_left: bool, pan_right: bool)
src/sound/synth.rs:30
↓ 3 callers
Function
alu_of
(y: u8)
src/hw/cpu.rs:85
↓ 3 callers
Method
calculate_sweep_frequency
(&mut self)
src/sound/ch1.rs:102
↓ 3 callers
Method
double_speed
(&self)
src/hw/sysbus.rs:60
↓ 3 callers
Method
get_bc
(&self)
src/components/registers.rs:40
↓ 3 callers
Method
get_de
(&self)
src/components/registers.rs:44
↓ 3 callers
Method
r16
(&self, r: R16)
src/hw/cpu.rs:239
↓ 3 callers
Method
reload
(&mut self)
src/sound/volume_envelope.rs:48
↓ 3 callers
Method
reset_ly
(&mut self)
src/components/ppu/ppu.rs:264
↓ 3 callers
Method
rotate
(&mut self, op: RotOp, v: u8)
src/hw/cpu.rs:392
↓ 3 callers
Function
rp2_of
(p: u8)
src/hw/cpu.rs:67
↓ 3 callers
Method
set_r16
(&mut self, r: R16, v: u16)
src/hw/cpu.rs:248
↓ 3 callers
Method
set_rgb_mapped
(&mut self, x: usize, color: u16)
src/components/ppu/ppu.rs:278
↓ 3 callers
Method
tick_frequency
(&mut self)
src/sound/ch3.rs:52
↓ 3 callers
Method
tima_tick
Clock TIMA once. On overflow TIMA wraps to 0x00 and the TMA reload + interrupt are scheduled one M-cycle later, rather than happening now.
src/hw/timer.rs:53
↓ 3 callers
Method
window_visible
(&mut self)
src/components/ppu/ppu.rs:248
↓ 2 callers
Method
add_sp_e
(&mut self)
src/hw/cpu.rs:382
↓ 2 callers
Method
addr
(&self, a: Addr)
src/hw/cpu.rs:266
↓ 2 callers
Method
alu
(&mut self, op: AluOp, v: u8)
src/hw/cpu.rs:306
↓ 2 callers
Method
at_instruction_boundary
(&self)
src/hw/cpu.rs:944
↓ 2 callers
Method
bit
(&mut self, n: u8, v: u8)
src/hw/cpu.rs:411
↓ 2 callers
Method
bus_read
Read an address as a non-CPU bus master, without advancing any chip's internal clock. Used by the DMA engine for its source fetches.
src/hw/motherboard.rs:242
↓ 2 callers
Function
create_framebuffer_pair
()
src/framebuffer.rs:101
↓ 2 callers
Method
cycle
(&mut self, div: u8, double_speed: bool)
src/sound/apu.rs:130
↓ 2 callers
Method
dec8
(&mut self, v: u8)
src/hw/cpu.rs:365
↓ 2 callers
Method
do_read
(&self, a: u16)
src/hw/sysbus.rs:114
↓ 2 callers
Method
draw_bg_pixel
(&mut self, x: usize)
src/components/ppu/ppu.rs:290
↓ 2 callers
Method
fill
(&mut self, r: u8, g: u8, b: u8)
src/framebuffer.rs:57
↓ 2 callers
Method
flush
(&mut self)
src/sound/ch3_blip.rs:62
↓ 2 callers
Method
get_latest_frame
(&mut self)
src/framebuffer.rs:95
↓ 2 callers
Method
hdma_copy_block
(&mut self)
src/hw/motherboard.rs:285
↓ 2 callers
Method
idle_mcycle
(&mut self)
src/hw/motherboard.rs:232
↓ 2 callers
Method
inc8
(&mut self, v: u8)
src/hw/cpu.rs:357
↓ 2 callers
Method
inc_ly
(&mut self)
src/components/ppu/ppu.rs:252
↓ 2 callers
Method
is_halted
(&self)
src/hw/cpu.rs:948
↓ 2 callers
Method
peek
Read one byte of CPU-addressable memory (no side effects).
src/harness.rs:97
↓ 2 callers
Method
pending
Bits that are both requested and enabled — the CPU's IRQ input.
src/hw/interrupt.rs:55
↓ 2 callers
Method
poll
Drain any pending frames into `current_frame`, counting them. Returns the total number of frames produced since construction.
src/framebuffer.rs:83
↓ 2 callers
Method
ram_bank
(&self)
src/mbc/mbc1.rs:81
↓ 2 callers
Method
run_dots
Advance the four T-cycles of an M-cycle. Chips advance their internal clock every dot (base-domain gated by the divider); the bus transfer resolves on
src/hw/motherboard.rs:194
↓ 2 callers
Method
send_input
(&mut self, key: Key, pressed: bool)
src/main.rs:142
↓ 2 callers
Method
set_bc
(&mut self, x: u16)
src/components/registers.rs:57
↓ 2 callers
Method
set_counter
(&mut self, value: u16)
src/hw/timer.rs:44
↓ 2 callers
Method
set_de
(&mut self, x: u16)
src/components/registers.rs:62
↓ 2 callers
Method
step
Run one instruction; returns the elapsed T-cycles (4 per M-cycle).
src/hw/motherboard.rs:117
↓ 2 callers
Method
step_oam_dma
(&mut self)
src/hw/motherboard.rs:256
↓ 2 callers
Method
stk16
(&self, r: R16Stk)
src/hw/cpu.rs:257
↓ 2 callers
Method
update_joypad
(&mut self)
src/components/joypad.rs:45
↓ 2 callers
Method
window
(&self)
src/context.rs:106
↓ 2 callers
Method
write_vram
(&mut self, a: u16, v: u8, bank: usize)
src/components/ppu/ppu.rs:673
↓ 1 callers
Method
about_to_read
True two T-cycles before the wave channel reads its next sample: the window in which a DMG retrigger corrupts wave RAM.
src/sound/ch3.rs:75
↓ 1 callers
Method
acknowledge
(&mut self, bit: Interrupts)
src/hw/interrupt.rs:59
↓ 1 callers
Method
add_hl
(&mut self, v: u16)
src/hw/cpu.rs:373
↓ 1 callers
Method
apply_drift_correction
(&mut self)
src/sound/ch3_blip.rs:78
↓ 1 callers
Method
build_sprite_stalls
(&mut self)
src/components/ppu/ppu.rs:208
↓ 1 callers
Method
byte
(&self, b: Byte)
src/hw/cpu.rs:278
↓ 1 callers
Function
ch3_blip_pair
(sample_rate: u32)
src/sound/ch3_blip.rs:116
↓ 1 callers
Method
clear_vram
(&mut self)
src/components/ppu/ppu.rs:642
↓ 1 callers
Method
complete
(&mut self, pins: &Pins)
src/hw/cpu.rs:1037
↓ 1 callers
Method
corrupt_oam_inc
DMG OAM corruption: a 16-bit inc/dec through the OAM region during mode 2 glitches the row being scanned. No-op outside that window.
src/hw/ppu.rs:50
↓ 1 callers
Method
corrupt_wave_ram
(&mut self)
src/sound/ch3.rs:79
↓ 1 callers
Method
current_amplitude
(&self)
src/sound/ch3.rs:132
↓ 1 callers
Method
daa
(&mut self)
src/hw/cpu.rs:417
next →
1–100 of 313, ranked by callers