BUGFIX: gemmaegui: Memory window was showing 16 bytes beyond 'limit'

This commit is contained in:
2025-05-27 10:16:31 -04:00
parent fdf09daf0f
commit 0f40002053
6 changed files with 1 additions and 434 deletions
@@ -111,7 +111,7 @@ impl GemmaEguiSupport {
pub fn memory_view(system: &Chip8Computer, ui: &mut Ui) {
ui.label("Memory View");
for i in (0..=0x200).step_by(16) {
for i in (0..0x200).step_by(16) {
ui.with_layout(egui::Layout::left_to_right(egui::Align::TOP), |ui| {
for y in 0..16 {
ui.label(format!("{:02x}", system.memory.peek((i + y) as u16)).as_str());