MCPcopy Create free account

hub / github.com/ClementNerma/LRVM / functions

Functions302 in github.com/ClementNerma/LRVM

Methodnew
Create a new motherboard with a set of components
lrvm/src/board/board.rs:21
Methodnew
(aux: impl IntoIterator<Item = Box<dyn Bus>>)
lrvm/src/board/hw_bridge.rs:14
Methodnew
Create zero-initialied registers
lrvm/src/cpu/regs.rs:54
Methodnew
Create a new CPU using an existing mapped memory (must be the same one the motherboard this CPU will be connected to uses).
lrvm/src/cpu/cpu.rs:29
Methodnew
Create a new mapped memory using an hardware bridge
lrvm/src/mem/mem.rs:15
Methodnew
()
lrvm/src/mmu/mmu.rs:15
Methodnew
Create a number display. The handler can is supposed to display the provided number, but this is not required. The parameters are the number to displa
lrvm_aux/src/display/number.rs:43
Methodnew
Create a buffered display component. The provided capacity must be a multiple of 4, and 4 bytes will be substracted for handling the action code. This
lrvm_aux/src/display/buffered.rs:42
Methodnew
Create a character display component.
lrvm_aux/src/display/character.rs:21
Methodnew
Create a new RAM component Returns an error message if the capacity is 0, not a multiple or 4 bytes or too large for the running CPU architecture.
lrvm_aux/src/volatile_mem/ram.rs:20
Methodnew
Create a new flash memory component Returns an error message if the capacity is 0, not a multiple or 4 bytes or too large for the running CPU architec
lrvm_aux/src/storage/persistent.rs:20
Methodnew
Create a new BootROM component Returns an error message if the capacity is too large for the running CPU architecture.
lrvm_aux/src/storage/bootrom.rs:25
Methodnew
Create a new Basic Debug Interface (BDI). The debugger is a function that takes an information to debug, see [`DebugInfo`] for more details.
lrvm_aux/src/debug/basic.rs:55
Methodnew
(hw_id: u64)
lrvm_aux/src/time/realtime.rs:28
Methodnew
Create a synchronous character keyboard component.
lrvm_aux/src/keyboard/sync_char.rs:30
Methodnew
Create a synchronous keyboard component. The provided capacity must be a multiple of 4, and 4 bytes will be substracted for handling the action code.
lrvm_aux/src/keyboard/sync_line.rs:34
Methodnew
Create an empty program
lrvm_tools/src/asm/prog.rs:12
Methodnew
Get the default division mode: - Perform unsigned division - Forbid division by zero (results in exception) - Forbid overflowing division (results in
lrvm_tools/src/asm/div_modes.rs:250
Methodnew
Create a default runner configuration. Prints exceptions and the cycle and instruction address when the VM halts.
lrvm_tools/src/debug/run_config.rs:15
Methodnew
( hw_id: u64, size_bytes: u32, category: DeviceCategory, model: Option<u32>,
lrvm_tools/src/metadata/metadata.rs:14
Methodnew_print
Create a number display which print! the numbers
lrvm_aux/src/display/number.rs:48
Methodnew_print_lossy
Create a print!-based buffered display component, converting invalid UTF-8 strings to lossy ones
lrvm_aux/src/display/buffered.rs:70
Methodnew_print_lossy
Create a println!-based character display component, tolerating invalid UTF-8 characters ('�' displayed instead)
lrvm_aux/src/display/character.rs:26
Methodnew_println
Create a new Basic Debug Interface (BDI) with a println!-backed debugger
lrvm_aux/src/debug/basic.rs:60
Methodopen
(Internal) open the provided path file in read-only or writable mode
lrvm_aux/src/storage/file_backed.rs:31
Methodprepend
Prepend an instruction at the beginning of the program
lrvm_tools/src/asm/prog.rs:37
Methodprepend_all
Prepend a set of instructions at the beginning of the program
lrvm_tools/src/asm/prog.rs:43
Functionprettify_ex_with_mode
Prettify an exception with mode
lrvm_tools/src/debug/run.rs:111
Functionprettify_stop
Prettify a stop state
lrvm_tools/src/debug/run.rs:119
Methodquiet
Create a quiet runner configuration. Displays nothing.
lrvm_tools/src/debug/run_config.rs:33
Functionram
()
lrvm_aux/src/tests/aux_02_volatile_mem/ram.rs:9
Functionre_assembling
()
examples/disassemble/src/tests.rs:32
Methodread
Send a READ signal to a component. If the `ex` reference contains a non-zero value when this function returns, the component raised an exception with
lrvm/src/board/hw_bridge.rs:69
Methodread
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/display/number.rs:78
Methodread
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/display/buffered.rs:98
Methodread
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/display/character.rs:47
Methodread
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/volatile_mem/ram.rs:114
Methodread
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/storage/persistent.rs:114
Methodread
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/storage/bootrom.rs:94
Methodread
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/debug/basic.rs:129
Methodread
(&self, addr: u32, ex: &mut u16)
lrvm_aux/src/keyboard/sync_char.rs:55
Methodread
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/keyboard/sync_line.rs:78
Methodreadonly
Create a new read-only persistent memory component
lrvm_aux/src/storage/file_backed.rs:80
Methodreadonly_with_size
Create a new writable persistent memory component with a custom size
lrvm_aux/src/storage/file_backed.rs:85
Methodreset
Emulate a hard reset button on the motherboard. All components will receive a reset signal through their [`Bus`] interface. The CPU will also be reset
lrvm/src/board/board.rs:53
Methodreset
Send a RESET signal to a component
lrvm/src/board/hw_bridge.rs:93
Methodreset
Reset all registers
lrvm/src/cpu/regs.rs:59
Methodreset
(&self)
lrvm_aux/src/display/number.rs:97
Methodreset
(&self)
lrvm_aux/src/display/character.rs:56
Methodreset
(&self)
lrvm_aux/src/volatile_mem/ram.rs:122
Methodreset
(&self)
lrvm_aux/src/storage/persistent.rs:122
Methodreset
(&self)
lrvm_aux/src/storage/bootrom.rs:108
Methodreset
(&self)
lrvm_aux/src/storage/file_backed.rs:141
Methodreset
(&self)
lrvm_aux/src/time/realtime.rs:74
Methodresult
(self)
lrvm_tools/src/asm/div_modes.rs:107
Methodset_size
(&mut self, new_size: u32)
lrvm_tools/src/metadata/metadata.rs:36
Methodsign_mode
Get the sign mode
lrvm_tools/src/asm/div_modes.rs:273
Methodsize
Get the RAM's size
lrvm_aux/src/volatile_mem/ram.rs:93
Methodsize
Get the flash memory's size
lrvm_aux/src/storage/persistent.rs:93
Methodsize
Get the BootROM's size
lrvm_aux/src/storage/bootrom.rs:73
Methodsize
Get the number of words in the program
lrvm_tools/src/asm/prog.rs:27
Functionsync_char
()
lrvm_aux/src/tests/aux_04_keyboard/sync_char.rs:21
Functionsync_line
()
lrvm_aux/src/tests/aux_04_keyboard/sync_line.rs:21
Methodtest
(&self)
lrvm_tools/src/metadata/category.rs:18
Methodto_folded_bytes
Encode the program to folded bytes (list of 4-bytes slices)
lrvm_tools/src/asm/prog.rs:108
Methodto_lasm
Convert the extended instruction to a LASM source code
lrvm_tools/src/asm/extinstr.rs:79
Methodto_lasm
(&self)
lrvm_tools/src/asm/prog_word.rs:44
Methodto_lasm
Convert the hardware information code to its LASM representation
lrvm_tools/src/asm/hw_infos.rs:84
Methodto_lasm
(self)
lrvm_tools/src/asm/instr.rs:394
Methodto_lasm
Convert the condition to its LASM representation
lrvm_tools/src/asm/cond.rs:54
Methodto_lasm
Convert the flag to its LASM representation
lrvm_tools/src/asm/arflag.rs:70
Methodto_lasm
(self)
lrvm_tools/src/asm/div_modes.rs:69
Methodto_roc_1
Convert the register to a register-or-1-byte-literal parameter
lrvm_tools/src/asm/reg.rs:200
Methodto_roc_2
Convert the register to a register-or-2-bytes-literal parameter
lrvm_tools/src/asm/reg.rs:205
Methodto_val
Convert the mode to a register-or-literal value
lrvm_tools/src/asm/div_modes.rs:311
Methodtry_from
(code: u8)
lrvm_tools/src/asm/arflag.rs:78
Methodtry_from
(code: u8)
lrvm_tools/src/asm/reg.rs:218
Methodtry_from
(mask: u8)
lrvm_tools/src/asm/div_modes.rs:86
Methodverbose
Create a verbose runner configuration. Prints a message on each CPU cycle, as well as exceptions and the cycle number and instruction address when the
lrvm_tools/src/debug/run_config.rs:27
Methodwith_cycles_limit
Set if the VM should be stopped after a given number of CPU cycles.
lrvm_tools/src/debug/run_config.rs:38
Methodwith_newline_on_finish
Set if the runner should print a newline when the VM halts.
lrvm_tools/src/debug/run_config.rs:71
Methodwith_ofw_mode
Set the overflow mode
lrvm_tools/src/asm/div_modes.rs:300
Methodwith_print_cycles
Set if the runner should display a message on each CPU cycle. Only for debugging purpose, as LRVM usually runs several hundred thousand cycles per sec
lrvm_tools/src/debug/run_config.rs:53
Methodwith_print_exceptions
Set if the runner should display a warning when an exception occurrs.
lrvm_tools/src/debug/run_config.rs:59
Methodwith_sign_mode
Set the sign mode
lrvm_tools/src/asm/div_modes.rs:288
Methodwith_size
Create a new BootROM component larger than its storage Returns an error message in case of fail
lrvm_aux/src/storage/bootrom.rs:41
Methodwith_zro_mode
Set the zero mode
lrvm_tools/src/asm/div_modes.rs:294
Methodwritable
Create a new writable persistent memory component
lrvm_aux/src/storage/file_backed.rs:62
Methodwritable_with_size
Create a new writable persistent memory component with a custom size
lrvm_aux/src/storage/file_backed.rs:67
Methodwrite
Write an address inside the component This is not allowed inside our component, which is read-only
examples/async_hw/src/counter.rs:65
Methodwrite
Send a WRITE signal to a component. If the `ex` reference contains a non-zero value when this function returns, the component raised an exception with
lrvm/src/board/hw_bridge.rs:81
Methodwrite
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/display/number.rs:83
Methodwrite
(&self, addr: u32, word: u32, ex: &mut u16)
lrvm_aux/src/display/buffered.rs:103
Methodwrite
(&self, _addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/display/character.rs:52
Methodwrite
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/volatile_mem/ram.rs:118
Methodwrite
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/storage/persistent.rs:118
Methodwrite
(&self, _addr: u32, _word: u32, ex: &mut u16)
lrvm_aux/src/storage/bootrom.rs:104
Methodwrite
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/debug/basic.rs:134
Methodwrite
(&self, _addr: u32, _word: u32, ex: &mut u16)
lrvm_aux/src/time/realtime.rs:70
Methodwrite
(&self, addr: u32, word: u32, ex: &mut u16)
lrvm_aux/src/keyboard/sync_char.rs:66
← previousnext →201–300 of 302, ranked by callers