nx_emu_probe.nx
buildroot/runtime/nx_emu_probe.nx
dependencies 0 imports · 1 importers
imports: none
imported by: nx_emu_probe_gate.nx
structs
| none |
consts
| 1 | const PO_MAGIC_1000000: i64 = 1000000 |
| 19 | const PO_MEM: i64 = 0 // 4096 guest bytes (the CHIP-8 address space size) |
| 20 | const PO_REG: i64 = 4096 // 16 V registers, i64 each (128 bytes) |
| 21 | const PO_FB: i64 = 4224 // 64*32 display cells, i64 RGBA each (16384 bytes); ends at 20608 |
functions
| 24 | func p_memset_byte(base: i64, addr: i64, v: i64) -> i64 |
| 29 | func p_memget_byte(base: i64, addr: i64) -> i64 called by 1: main |
| 34 | func p_seed(base: i64, n: i64) -> i64 |
| 41 | func p_sum(base: i64, n: i64) -> i64 |
| 50 | func p_reg_get(base: i64, x: i64) -> i64 |
| 54 | func p_reg_set(base: i64, x: i64, v: i64) -> i64 |
| 64 | func p_step(base: i64, pc: i64) -> i64 |
| 81 | func p_fb_set(base: i64, idx: i64, rgba: i64) -> i64 |
| 86 | func p_fb_get(base: i64, idx: i64) -> i64 |
| 90 | func p_fb_off() -> i64 { return PO_FB } |
| 91 | func p_disp_w() -> i64 { return 64 } |
| 92 | func p_disp_h() -> i64 { return 32 } |
| 97 | func p_probe(base: i64) -> i64 |