Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ClementNerma/LRVM
/ functions
Functions
302 in github.com/ClementNerma/LRVM
⨍
Functions
302
◇
Types & classes
54
Method
new
Create a new motherboard with a set of components
lrvm/src/board/board.rs:21
Method
new
(aux: impl IntoIterator<Item = Box<dyn Bus>>)
lrvm/src/board/hw_bridge.rs:14
Method
new
Create zero-initialied registers
lrvm/src/cpu/regs.rs:54
Method
new
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
Method
new
Create a new mapped memory using an hardware bridge
lrvm/src/mem/mem.rs:15
Method
new
()
lrvm/src/mmu/mmu.rs:15
Method
new
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
Method
new
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
Method
new
Create a character display component.
lrvm_aux/src/display/character.rs:21
Method
new
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
Method
new
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
Method
new
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
Method
new
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
Method
new
(hw_id: u64)
lrvm_aux/src/time/realtime.rs:28
Method
new
Create a synchronous character keyboard component.
lrvm_aux/src/keyboard/sync_char.rs:30
Method
new
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
Method
new
Create an empty program
lrvm_tools/src/asm/prog.rs:12
Method
new
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
Method
new
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
Method
new
( hw_id: u64, size_bytes: u32, category: DeviceCategory, model: Option<u32>,
lrvm_tools/src/metadata/metadata.rs:14
Method
new_print
Create a number display which print! the numbers
lrvm_aux/src/display/number.rs:48
Method
new_print_lossy
Create a print!-based buffered display component, converting invalid UTF-8 strings to lossy ones
lrvm_aux/src/display/buffered.rs:70
Method
new_print_lossy
Create a println!-based character display component, tolerating invalid UTF-8 characters ('�' displayed instead)
lrvm_aux/src/display/character.rs:26
Method
new_println
Create a new Basic Debug Interface (BDI) with a println!-backed debugger
lrvm_aux/src/debug/basic.rs:60
Method
open
(Internal) open the provided path file in read-only or writable mode
lrvm_aux/src/storage/file_backed.rs:31
Method
prepend
Prepend an instruction at the beginning of the program
lrvm_tools/src/asm/prog.rs:37
Method
prepend_all
Prepend a set of instructions at the beginning of the program
lrvm_tools/src/asm/prog.rs:43
Function
prettify_ex_with_mode
Prettify an exception with mode
lrvm_tools/src/debug/run.rs:111
Function
prettify_stop
Prettify a stop state
lrvm_tools/src/debug/run.rs:119
Method
quiet
Create a quiet runner configuration. Displays nothing.
lrvm_tools/src/debug/run_config.rs:33
Function
ram
()
lrvm_aux/src/tests/aux_02_volatile_mem/ram.rs:9
Function
re_assembling
()
examples/disassemble/src/tests.rs:32
Method
read
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
Method
read
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/display/number.rs:78
Method
read
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/display/buffered.rs:98
Method
read
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/display/character.rs:47
Method
read
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/volatile_mem/ram.rs:114
Method
read
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/storage/persistent.rs:114
Method
read
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/storage/bootrom.rs:94
Method
read
(&self, _addr: u32, ex: &mut u16)
lrvm_aux/src/debug/basic.rs:129
Method
read
(&self, addr: u32, ex: &mut u16)
lrvm_aux/src/keyboard/sync_char.rs:55
Method
read
(&self, addr: u32, _ex: &mut u16)
lrvm_aux/src/keyboard/sync_line.rs:78
Method
readonly
Create a new read-only persistent memory component
lrvm_aux/src/storage/file_backed.rs:80
Method
readonly_with_size
Create a new writable persistent memory component with a custom size
lrvm_aux/src/storage/file_backed.rs:85
Method
reset
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
Method
reset
Send a RESET signal to a component
lrvm/src/board/hw_bridge.rs:93
Method
reset
Reset all registers
lrvm/src/cpu/regs.rs:59
Method
reset
(&self)
lrvm_aux/src/display/number.rs:97
Method
reset
(&self)
lrvm_aux/src/display/character.rs:56
Method
reset
(&self)
lrvm_aux/src/volatile_mem/ram.rs:122
Method
reset
(&self)
lrvm_aux/src/storage/persistent.rs:122
Method
reset
(&self)
lrvm_aux/src/storage/bootrom.rs:108
Method
reset
(&self)
lrvm_aux/src/storage/file_backed.rs:141
Method
reset
(&self)
lrvm_aux/src/time/realtime.rs:74
Method
result
(self)
lrvm_tools/src/asm/div_modes.rs:107
Method
set_size
(&mut self, new_size: u32)
lrvm_tools/src/metadata/metadata.rs:36
Method
sign_mode
Get the sign mode
lrvm_tools/src/asm/div_modes.rs:273
Method
size
Get the RAM's size
lrvm_aux/src/volatile_mem/ram.rs:93
Method
size
Get the flash memory's size
lrvm_aux/src/storage/persistent.rs:93
Method
size
Get the BootROM's size
lrvm_aux/src/storage/bootrom.rs:73
Method
size
Get the number of words in the program
lrvm_tools/src/asm/prog.rs:27
Function
sync_char
()
lrvm_aux/src/tests/aux_04_keyboard/sync_char.rs:21
Function
sync_line
()
lrvm_aux/src/tests/aux_04_keyboard/sync_line.rs:21
Method
test
(&self)
lrvm_tools/src/metadata/category.rs:18
Method
to_folded_bytes
Encode the program to folded bytes (list of 4-bytes slices)
lrvm_tools/src/asm/prog.rs:108
Method
to_lasm
Convert the extended instruction to a LASM source code
lrvm_tools/src/asm/extinstr.rs:79
Method
to_lasm
(&self)
lrvm_tools/src/asm/prog_word.rs:44
Method
to_lasm
Convert the hardware information code to its LASM representation
lrvm_tools/src/asm/hw_infos.rs:84
Method
to_lasm
(self)
lrvm_tools/src/asm/instr.rs:394
Method
to_lasm
Convert the condition to its LASM representation
lrvm_tools/src/asm/cond.rs:54
Method
to_lasm
Convert the flag to its LASM representation
lrvm_tools/src/asm/arflag.rs:70
Method
to_lasm
(self)
lrvm_tools/src/asm/div_modes.rs:69
Method
to_roc_1
Convert the register to a register-or-1-byte-literal parameter
lrvm_tools/src/asm/reg.rs:200
Method
to_roc_2
Convert the register to a register-or-2-bytes-literal parameter
lrvm_tools/src/asm/reg.rs:205
Method
to_val
Convert the mode to a register-or-literal value
lrvm_tools/src/asm/div_modes.rs:311
Method
try_from
(code: u8)
lrvm_tools/src/asm/arflag.rs:78
Method
try_from
(code: u8)
lrvm_tools/src/asm/reg.rs:218
Method
try_from
(mask: u8)
lrvm_tools/src/asm/div_modes.rs:86
Method
verbose
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
Method
with_cycles_limit
Set if the VM should be stopped after a given number of CPU cycles.
lrvm_tools/src/debug/run_config.rs:38
Method
with_newline_on_finish
Set if the runner should print a newline when the VM halts.
lrvm_tools/src/debug/run_config.rs:71
Method
with_ofw_mode
Set the overflow mode
lrvm_tools/src/asm/div_modes.rs:300
Method
with_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
Method
with_print_exceptions
Set if the runner should display a warning when an exception occurrs.
lrvm_tools/src/debug/run_config.rs:59
Method
with_sign_mode
Set the sign mode
lrvm_tools/src/asm/div_modes.rs:288
Method
with_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
Method
with_zro_mode
Set the zero mode
lrvm_tools/src/asm/div_modes.rs:294
Method
writable
Create a new writable persistent memory component
lrvm_aux/src/storage/file_backed.rs:62
Method
writable_with_size
Create a new writable persistent memory component with a custom size
lrvm_aux/src/storage/file_backed.rs:67
Method
write
Write an address inside the component This is not allowed inside our component, which is read-only
examples/async_hw/src/counter.rs:65
Method
write
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
Method
write
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/display/number.rs:83
Method
write
(&self, addr: u32, word: u32, ex: &mut u16)
lrvm_aux/src/display/buffered.rs:103
Method
write
(&self, _addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/display/character.rs:52
Method
write
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/volatile_mem/ram.rs:118
Method
write
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/storage/persistent.rs:118
Method
write
(&self, _addr: u32, _word: u32, ex: &mut u16)
lrvm_aux/src/storage/bootrom.rs:104
Method
write
(&self, addr: u32, word: u32, _ex: &mut u16)
lrvm_aux/src/debug/basic.rs:134
Method
write
(&self, _addr: u32, _word: u32, ex: &mut u16)
lrvm_aux/src/time/realtime.rs:70
Method
write
(&self, addr: u32, word: u32, ex: &mut u16)
lrvm_aux/src/keyboard/sync_char.rs:66
← previous
next →
201–300 of 302, ranked by callers