Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MichaelBurge/nes-emulator
/ functions
Functions
317 in github.com/MichaelBurge/nes-emulator
⨍
Functions
317
◇
Types & classes
50
↓ 34 callers
Function
get_bit
(x: u8, i: u8)
src/common.rs:5
↓ 27 callers
Method
peek
(&self, ptr: u16)
src/c6502.rs:1355
↓ 17 callers
Function
write_byte
(w: &mut dyn Write, byte: u8)
src/headless_protocol.rs:140
↓ 16 callers
Method
store_write_target
(&mut self, v: u8, write_target: Option<u16>)
src/c6502.rs:716
↓ 16 callers
Function
ternary
(cond: bool, on_true: T, on_false: T)
src/common.rs:15
↓ 14 callers
Method
save
(&self, fh: &mut dyn Write)
src/headless_protocol.rs:46
↓ 13 callers
Method
read_write_target
(&self, write_target: Option<u16>)
src/c6502.rs:709
↓ 12 callers
Method
map_address_space
( &mut self, begin: u16, end: u16, space: Box<dyn AddressSpace>, use_o
src/mapper.rs:257
↓ 12 callers
Method
sync
(&mut self)
src/headless_protocol.rs:226
↓ 12 callers
Method
update_accumulator_flags
(&mut self)
src/c6502.rs:1372
↓ 11 callers
Function
create_test_cpu
(program: &Vec<u8>)
src/c6502.rs:1413
↓ 11 callers
Method
update_result_flags
(&mut self, v: u8)
src/c6502.rs:1367
↓ 10 callers
Method
peek
(&self, ptr: u16)
src/ppu.rs:413
↓ 10 callers
Method
run_instructions
(&mut self, n: usize)
src/c6502.rs:615
↓ 9 callers
Method
peek16
Helper methods
src/mapper.rs:18
↓ 8 callers
Method
execute_branch
(&mut self, v: u8)
src/c6502.rs:959
↓ 8 callers
Function
get_button_bit
(controller: *mut GameController, button_id: u8)
src/main.rs:449
↓ 8 callers
Method
set_status_register_from_byte
(&mut self, v: u8)
src/c6502.rs:1389
↓ 7 callers
Method
map_mirrored
( &mut self, begin: u16, end: u16, extended_begin: u16, extended_end:
src/mapper.rs:282
↓ 7 callers
Method
push_stack
(&mut self, v: u8)
src/c6502.rs:1309
↓ 7 callers
Method
save
(&self, fh: &mut dyn Write)
src/ppu.rs:87
↓ 6 callers
Method
clock
(&mut self)
src/apu.rs:123
↓ 6 callers
Method
clock_half_frame
(&mut self)
src/apu.rs:459
↓ 6 callers
Method
load
(&mut self, fh: &mut dyn Read)
src/ppu.rs:124
↓ 6 callers
Method
set_enabled
(&mut self, x: bool)
src/apu.rs:326
↓ 5 callers
Method
is_enabled
(&self)
src/apu.rs:323
↓ 5 callers
Method
is_opaque
(&self)
src/ppu.rs:679
↓ 5 callers
Method
pop_stack
(&mut self)
src/c6502.rs:1322
↓ 4 callers
Method
clock_quarter_frame
(&mut self)
src/apu.rs:462
↓ 4 callers
Method
execute_dec
(&mut self, v: u8)
src/c6502.rs:1071
↓ 4 callers
Method
execute_inc
(&mut self, v: u8)
src/c6502.rs:1092
↓ 4 callers
Method
is_rendering_enabled
(&self)
src/ppu.rs:358
↓ 4 callers
Method
prompt
(&mut self)
src/c6502.rs:127
↓ 4 callers
Method
push_stack16
(&mut self, v: u16)
src/c6502.rs:1327
↓ 4 callers
Method
set_period
(&mut self, period: u16)
src/apu.rs:521
↓ 4 callers
Method
status_register_byte
(&self, is_instruction: bool)
src/c6502.rs:1377
↓ 3 callers
Method
execute_compare
(&mut self, v1: u8, v2: u8)
src/c6502.rs:1049
↓ 3 callers
Method
get_log
(&self)
src/mapper.rs:349
↓ 3 callers
Method
is_silenced
(&self)
src/apu.rs:320
↓ 3 callers
Function
load_ines
( rom: Ines, joystick1: Box<dyn AddressSpace>, joystick2: Box<dyn AddressSpace>, )
src/nes.rs:107
↓ 3 callers
Method
locate_pattern_row
( &self, palette_type: PaletteType, tile_index: u8, ysub: u8, )
src/ppu.rs:943
↓ 3 callers
Method
peek
(&self, ptr: u16)
src/mapper.rs:56
↓ 3 callers
Function
read_ines
(filename: String)
src/nes.rs:66
↓ 3 callers
Function
run_clocks
(x: &mut dyn Clocked, num_clocks: u32)
src/common.rs:9
↓ 3 callers
Method
run_frame
(&mut self)
src/nes.rs:138
↓ 3 callers
Method
set_buttons
(&mut self, button_mask: u8)
src/joystick.rs:39
↓ 3 callers
Method
set_halt
(&mut self, x: bool)
src/apu.rs:332
↓ 3 callers
Method
set_load
(&mut self, x: u8)
src/apu.rs:335
↓ 3 callers
Method
set_vblank
(&mut self, new_vblank: bool)
src/ppu.rs:1094
↓ 3 callers
Method
set_volume
(&mut self, v: u8)
src/apu.rs:640
↓ 3 callers
Function
write_value
(w: &mut dyn Write, t: T)
src/headless_protocol.rs:143
↓ 2 callers
Method
advance_vram_ptr
(&mut self)
src/ppu.rs:362
↓ 2 callers
Method
clock
(&mut self)
src/c6502.rs:592
↓ 2 callers
Method
clock
High-level pattern here taken from https://github.com/fogleman/nes/blob/master/nes/ppu.go
src/ppu.rs:585
↓ 2 callers
Method
execute_adc
(&mut self, v: u8)
src/c6502.rs:938
↓ 2 callers
Method
execute_and
(&mut self, v: u8)
src/c6502.rs:948
↓ 2 callers
Method
execute_asl
(&mut self, v: u8)
src/c6502.rs:953
↓ 2 callers
Method
execute_cmp
(&mut self, v: u8)
src/c6502.rs:1056
↓ 2 callers
Method
execute_eor
(&mut self, v: u8)
src/c6502.rs:1087
↓ 2 callers
Method
execute_lsr
(&mut self, v: u8)
src/c6502.rs:1133
↓ 2 callers
Method
execute_ora
(&mut self, v: u8)
src/c6502.rs:1142
↓ 2 callers
Method
execute_rol
(&mut self, v: u8)
src/c6502.rs:1167
↓ 2 callers
Method
execute_ror
(&mut self, v: u8)
src/c6502.rs:1175
↓ 2 callers
Method
execute_sbc
(&mut self, v: u8)
src/c6502.rs:1197
↓ 2 callers
Method
fine_y
(&self)
src/ppu.rs:378
↓ 2 callers
Function
get_button_mask
(controller: *mut GameController)
src/main.rs:476
↓ 2 callers
Method
increment_x
(&mut self)
src/ppu.rs:259
↓ 2 callers
Method
increment_y
(&mut self)
src/ppu.rs:275
↓ 2 callers
Method
is_muted
(&self)
src/apu.rs:524
↓ 2 callers
Function
is_negative
(v: u8)
src/c6502.rs:1401
↓ 2 callers
Method
is_transparent
(&self)
src/ppu.rs:676
↓ 2 callers
Method
load
(&mut self, fh: &mut dyn Read)
src/headless_protocol.rs:100
↓ 2 callers
Method
lookup_address_space
(&self, ptr: u16)
src/mapper.rs:246
↓ 2 callers
Method
lookup_sprite
(&self, i: usize)
src/ppu.rs:996
↓ 2 callers
Method
map_address
If a memory range has been mirrored to another, map a pointer to the "base range" or fail if it lies outside.
src/mapper.rs:124
↓ 2 callers
Function
map_apu_port
(ptr: u16)
src/apu.rs:49
↓ 2 callers
Function
map_ppu_port
(ptr: u16)
src/ppu.rs:479
↓ 2 callers
Method
map_ptr
(&self, ptr: u16)
src/ppu.rs:545
↓ 2 callers
Method
nmi
(&mut self)
src/c6502.rs:621
↓ 2 callers
Method
palette_color
(&self)
src/ppu.rs:673
↓ 2 callers
Method
peek_zero16
(&self, ptr: u8)
src/c6502.rs:1337
↓ 2 callers
Method
poke
(&mut self, ptr: u16, v: u8)
src/c6502.rs:1360
↓ 2 callers
Method
poke
(&mut self, address: u16, value: u8)
src/headless_protocol.rs:218
↓ 2 callers
Method
pop_stack16
(&mut self)
src/c6502.rs:1332
↓ 2 callers
Method
print_trace_line
(&self, num_bytes: u16, i: &Instruction)
src/c6502.rs:649
↓ 2 callers
Function
read_bytes
(r: &mut dyn Read, num_bytes: usize)
src/headless_protocol.rs:151
↓ 2 callers
Method
render
(&self)
src/ppu.rs:734
↓ 2 callers
Method
reset
(&mut self)
src/apu.rs:207
↓ 2 callers
Method
reset_from_strobe
(&self)
src/joystick.rs:48
↓ 2 callers
Function
reverse_bits
(mut a: u8)
src/ppu.rs:444
↓ 2 callers
Method
set_control
(&mut self, v: u8)
src/apu.rs:597
↓ 2 callers
Method
set_reload_flag
(&mut self, value: bool)
src/apu.rs:362
↓ 2 callers
Method
set_sweep
(&mut self, v: u8)
src/apu.rs:645
↓ 2 callers
Method
set_timer_high
(&mut self, v: u8)
src/apu.rs:654
↓ 2 callers
Method
set_timer_low
(&mut self, v: u8)
src/apu.rs:648
↓ 2 callers
Method
target_period
(&self)
src/apu.rs:536
↓ 2 callers
Method
vram_ptr
(&self)
src/ppu.rs:349
↓ 2 callers
Method
write_control
(&mut self, value: u8)
src/apu.rs:116
↓ 1 callers
Method
address
(&self)
src/ppu.rs:662
↓ 1 callers
Method
attribute_address
(&self)
src/ppu.rs:393
next →
1–100 of 317, ranked by callers