MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 3 callersMethodfillPixelsTo
fillPixelsTo writes the current stylus state into all pixels from p.pixel+1 through min(x, LineWidth-1), advances the fill cursor p.pixel, and flushes
pkg/zxprinter/zxprinter.go:281
↓ 3 callersFunctionfindRepoRoot
findRepoRoot walks up from the current working directory looking for the nearest go.mod. Returns the absolute path of the containing directory and ok=
pkg/next/install/install.go:61
↓ 3 callersMethodfindSector
findSector searches the given track for an IDAM with the requested record ID, starting from startPos and walking at most one full revolution. It handl
pkg/plus3fdc/upd765.go:810
↓ 3 callersMethodfinishTypeI
finishTypeI sets the Type-I completion status (not busy, head loaded, Track-0 bit reflecting the head position) and raises INTRQ.
pkg/betadisk/fdc.go:171
↓ 3 callersMethodfireRAMReadHook
fireRAMReadHook invokes the RAM-read hook if installed. bank is the caller's reporting namespace: the 16K bank for pool reads, or the RAMPAGE page num
pkg/memory/next.go:494
↓ 3 callersFunctionfirstM1Divergence
firstM1Divergence walks two aligned trace-row slices (oldest-first, e.g. from two emulators stepped in lockstep) and returns the first position where
cmd/zx_go/tracedb.go:174
↓ 3 callersFunctionfmtBank
(b int)
cmd/zx_go/divmmctrace_cmd.go:135
↓ 3 callersFunctionformatHexDump
formatHexDump renders data as a classic hexdump: one row per 16 bytes, each row = "$ADDR hh hh … hh |ascii|". Non-printable bytes show as '.' in the
cmd/zx_go/hexdump_cmd.go:11
↓ 3 callersFunctionformatPaletteDump
formatPaletteDump renders the first `count` entries of a palette as a 9-bit-hex grid (16 per row, each row labelled with its starting index) followed
cmd/zx_go/palette_cmd.go:14
↓ 3 callersMethodformatProvPhys
formatProvPhys renders one physical-pool last-writer record.
cmd/zx_go/provenance_cmd.go:105
↓ 3 callersFunctionformatSpriteList
formatSpriteList renders the sprite bank: a header (enable + selected slot) then one line per VISIBLE sprite. get(i) returns the attribute for slot i;
cmd/zx_go/sprites_cmd.go:14
↓ 3 callersMethodfpgaPixel
fpgaPixel ports the Layer 2 pixel path (video/layer2.vhd:202-203): selects the 4bpp nibble in hi-res (res 10) — high nibble when sc1=false, low when t
pkg/next/layer2/layer2.go:211
↓ 3 callersMethodframe
()
pkg/debugger/imageview.go:44
↓ 3 callersMethodfull
()
pkg/next/uart/serial.go:294
↓ 3 callersMethodgetRegister8
Register access helpers for CB instructions
pkg/z80/z80.go:4091
↓ 3 callersFunctionhexDump
hexDump renders bytes as a 16-column address-prefixed hexdump. Format mirrors `xxd` so the output is easy to eyeball.
pkg/debugger/bankinspect.go:257
↓ 3 callersMethodidAtCRC
idAtCRC is the same as idAt but also returns whether the on-track CRC matches the computed CRC over the ID field. The walker is split into two entry p
pkg/plus3fdc/track.go:449
↓ 3 callersFunctioninstallTraceHooks
installTraceHooks wires the trace emitter into every subsystem enabled by f.traceChannels. Returns the emitter so the caller can flush at shutdown, pl
cmd/zx_go/trace_wiring.go:22
↓ 3 callersFunctionisCallLike
isCallLike reports whether the given opcode pushes a return address — the operation a `step-over` should skip past. Covers: CALL nn :
cmd/zx_go/stepover_cmd.go:82
↓ 3 callersFunctionisZX8x
isZX8x reports whether a model is a Sinclair ZX80 or ZX81.
cmd/zx_go/zx8x.go:15
↓ 3 callersMethodl2Transparent
l2Transparent reports whether a Layer 2 pixel at palette index idx is transparent. Real hardware compares the PALETTE-MAPPED 8-bit colour (the 8 MSB o
pkg/next/compositor/compositor.go:166
↓ 3 callersMethodlinkCluster
(prev, next uint32)
pkg/next/sdcard/fat32.go:252
↓ 3 callersFunctionloadFPGATimingGolden
loadFPGATimingGolden parses testdata/ula_timing_golden.txt (captured from the real FPGA video timing generator video/zxula_timing.vhd under GHDL). Ret
pkg/ula/fpga_timing_golden_test.go:31
↓ 3 callersFunctionloadInstalledDivMMCROM
loadInstalledDivMMCROM reads the divMMC ROM from the install path (same lookup the Spectrum Next emulator wiring uses). Returns nil if the file isn't
cmd/zx_go/xref_cmd.go:280
↓ 3 callersFunctionloadMGT
(data []byte, sectors int)
pkg/sam/disk.go:104
↓ 3 callersFunctionloadRealIF1ROM
loadRealIF1ROM returns the embedded if1-2.rom bytes from pkg/roms. Used by the real-ROM integration tests below to validate the page-in/page-out trigg
pkg/if1/integration_test.go:14
↓ 3 callersMethodloadSZXSpecRegs
loadSZXSpecRegs loads Spectrum-specific registers from SZX block
pkg/snapshot/szx.go:224
↓ 3 callersFunctionmakeTestSnapshot
makeTestSnapshot builds a populated snapshot.Snapshot for the bridge round-trip tests. Every CPU register and memory bank carries a distinguishable pa
pkg/rzx/snapshot_test.go:13
↓ 3 callersMethodmarkRAMWritten
markRAMWritten records a guest write to pool byte (bank16k, off). Caller gates on m.TrackUninit.
pkg/memory/memory.go:1713
↓ 3 callersMethodmode48
()
pkg/multiface/core.go:80
↓ 3 callersFunctionnewFloatingBusULA
newFloatingBusULA returns a 48K ULA with screen RAM pre-populated with a known pattern so floating-bus reads can be checked against expected values.
pkg/ula/floatingbus_test.go:41
↓ 3 callersFunctionnewRemoteForNRTrace
(t *testing.T)
cmd/zx_go/nrtrace_cmd_test.go:12
↓ 3 callersFunctionnewSpecTestCPU
newSpecTestCPU creates a minimal CPU just for the line-int tests. We only need the FrameIntDisabled + LineIntOffsetTstates fields.
pkg/next/wire_specderived_test.go:434
↓ 3 callersFunctionnewTZXBuilder
()
pkg/ula/tzx_test.go:281
↓ 3 callersFunctionnewULAForPortTest
Port $FE write/read behaviour — beeper (bit 4), MIC (bit 3), border (bits 2:0) on write; EAR (bit 6) + reserved bits (5,7 read as 1) on read. Plus the
pkg/ula/portfe_beeper_test.go:15
↓ 3 callersFunctionnexloadFromMenu
nexloadFromMenu drives the real NextZXOS NEXLOAD on sdPath. It expects the machine at the main menu with the cursor on "Browser" (as left by bootNextT
cmd/zx_go/nexload_os_test.go:58
↓ 3 callersFunctionnextScreen
(emu *emulator)
cmd/zx_go/nex_load_test.go:36
↓ 3 callersFunctionnextStep
nextStep runs one CPU instruction through the IRQ-aware single-step path. The NextZXOS cold boot is driven by the per-instruction divMMC/esxDOS hooks
cmd/zx_go/nex_load_test.go:18
↓ 3 callersFunctionnr08Harness
(t *testing.T)
pkg/next/wire_nr08_7ffdlock_test.go:12
↓ 3 callersFunctionnullTerminated
nullTerminated copies a fixed-width byte slice into a Go string, stopping at the first NUL. Used for the creator program name and the snapshot format
pkg/rzx/read.go:272
↓ 3 callersMethodordered
ordered returns the buffered rows oldest-first.
cmd/zx_go/tracedb.go:70
↓ 3 callersMethodpageOut
pageOut clears the automap-held latch and any not-yet-effective delayed_on page-in. A page-out (automap disable, $1FFx off-area, RETN) clears automap_
pkg/next/divmmc/divmmc.go:328
↓ 3 callersFunctionparseAddr
parseAddr accepts $XXXX, 0xXXXX, or decimal address strings. Returns the 16-bit value; errors on overflow or syntax.
cmd/zx_go/flags.go:560
↓ 3 callersFunctionparseCrashRegions
parseCrashRegions decodes "NAME@LO-HI,NAME@LO-HI". Hex defaults for the address part — `$` and `0x` prefixes also accepted. Unparseable entries land i
cmd/zx_go/crashdetect.go:159
↓ 3 callersFunctionparseDumpMemSpec
parseDumpMemSpec parses the --dump-mem argument: `[bankN:|romN:]ADDR:LEN[,...]`, both ADDR and LEN hex (optional `$` / `0x` prefix). The optional `ban
cmd/zx_go/debug.go:563
↓ 3 callersFunctionparseFirstEntryRange
parseFirstEntryRange accepts "$LO-$HI" or "$LO".
cmd/zx_go/bpfirst_cmd.go:92
↓ 3 callersFunctionparseOffsetRange
parseOffsetRange accepts "LO-HI" (both hex) or single-value "X" (which sets LO=HI=X).
cmd/zx_go/divmmctrace_cmd.go:144
↓ 3 callersFunctionparsePCRange
parsePCRange decodes the START-END syntax accepted by --trace-pc-range. Both endpoints accept hex with $ or 0x prefix, or decimal. The end is inclusiv
cmd/zx_go/flags.go:538
↓ 3 callersFunctionparsePoolWriteSpec
parsePoolWriteSpec decodes "BANK:LO-HI[,BANK:LO-HI…]" (bank decimal, offsets hex with optional $/0x). HI optional (defaults to LO).
cmd/zx_go/watchbankwrite_cmd.go:26
↓ 3 callersFunctionparseRAMWriteTraceSpec
parseRAMWriteTraceSpec parses ZX_GO_RAM_WRITE_TRACE. Formats: "BB:LLLL-HHHH" (hex bank + offset range within the 16K bank) or "*:LLLL-HHHH" (all banks
cmd/zx_go/next.go:1807
↓ 3 callersFunctionpoolScan
poolScan searches every bank of the given kind for the byte pattern, returning up to max hits. Banks are probed until the accessor reports out-of-rang
cmd/zx_go/bank_access.go:249
↓ 3 callersMethodpreambleSlot
preambleSlot returns the index into d.pream for the current head position. Slots 0..MaxBlocks-1 cover block headers; slots MaxBlocks..2*MaxBlocks-1 co
pkg/if1/microdrive.go:89
↓ 3 callersMethodprefillSilence
prefillSilence seeds the ring buffer with queuePrefill silent samples so the consumer's first few pulls are satisfied without draining the queue. See
pkg/audio/audio.go:169
↓ 3 callersMethodpruneAutosaves
pruneAutosaves implements FUSE's tiered autosave decay policy (rzx.c:557). Each automatic snapshot has a "frames before now" distance; if that distanc
pkg/rzx/recording.go:213
↓ 3 callersMethodqueue
queue appends bytes to the response queue.
pkg/next/sdcard/spi.go:505
↓ 3 callersMethodquickLoadState
quickLoadState restores the machine from the quick-save slot.
cmd/zx_go/quicksave.go:64
↓ 3 callersFunctionquickSavePath
quickSavePath returns the quick-save slot file (an SZX snapshot) under the platform config dir, or "" if that dir can't be located.
cmd/zx_go/quicksave.go:23
↓ 3 callersMethodquickSaveState
quickSaveState writes the running machine to the quick-save slot.
cmd/zx_go/quicksave.go:43
↓ 3 callersMethodquickSaveSupported
quickSaveSupported reports whether the current machine supports SZX quick-save/load: the classic Spectrums (48K…+3) and Pentagon. The ZX80/ZX81 have n
cmd/zx_go/quicksave.go:38
↓ 3 callersFunctionquote
quote and itoa are tiny helpers to avoid pulling fmt into a hot path that runs on every RunUntilText timeout. Worth nothing efficiency-wise, but consi
pkg/testharness/screen.go:161
↓ 3 callersFunctionreadPath
readPath reads a null- or 0xFF-terminated ASCII path string from the emulated memory bus starting at addr. The esxDOS convention accepts either termin
pkg/next/esxdos/file_handlers.go:18
↓ 3 callersMethodrecomputeOutputs
recomputeOutputs evaluates the three combinational outputs from the current register state and the live inputs (multiface.vhd:186,190-191,195).
pkg/multiface/core.go:160
↓ 3 callersMethodrefreshDisassembly
()
pkg/debugger/debugger.go:1091
↓ 3 callersMethodrefreshNext
refreshNext populates the 8-cell view for Next mode. Reads the 8K MMU shadow plus the divMMC overlay state; reports the 8K-bank index in each slot and
pkg/debugger/pagemap.go:199
↓ 3 callersMethodrender
(limit int)
pkg/debugger/history_widget.go:62
↓ 3 callersMethodresolve
resolve converts an esxDOS path to a host filesystem path, rejecting any traversal that would escape root.
pkg/next/sdcard/sdcard.go:127
↓ 3 callersMethodrowText
rowText returns the formatted line for row id, or empty if id is out of range. Reads from the snapshot refreshKeys() cached rather than re-querying th
pkg/debugger/breakpoints_widget.go:131
↓ 3 callersMethodrunBPAction
runBPAction executes the semicolon-separated command list attached to a breakpoint via `bp ADDR ... do "..."`. Each command is parsed and dispatched t
cmd/zx_go/bpaction_cmd.go:23
↓ 3 callersFunctionrunIMMirror
ED-prefix IM mirror encodings. Per Sean Young's "Undocumented Z80 Documented" §A.1: IM 0: ED $46, $4E, $66, $6E IM 1: ED $56, $76 IM 2: ED $5E, $7E
pkg/z80/im_mirrors_test.go:17
↓ 3 callersFunctionrunINR
IN r,(C) behavioural coverage. Per Sean Young's "Undocumented Z80 Documented" §3.6 and the Z80 ED-prefix decoder: ED $40 .. $78 cover IN B/C/D/E/H/L/
pkg/z80/edinport_test.go:17
↓ 3 callersFunctionrunNegMirror
ED-prefix NEG mirror encodings. Per Sean Young's "Undocumented Z80 Documented" §A.1, ED $44, $4C, $54, $5C, $64, $6C, $74, $7C are all NEG mirror enc
pkg/z80/neg_mirrors_test.go:18
↓ 3 callersFunctionsaveNexShot
saveNexShot writes a PNG when NEX_RENDER_OUT_DIR is set, for eyeballing.
cmd/zx_go/nex_load_test.go:43
↓ 3 callersMethodsaveSNA
saveSNA saves a snapshot in .SNA format
pkg/snapshot/sna.go:150
↓ 3 callersMethodsaveSZXRamPage
saveSZXRamPage saves a RAM page as SZX block
pkg/snapshot/szx.go:428
↓ 3 callersMethodsectorSize
()
pkg/sam/wd1772.go:128
↓ 3 callersFunctionsetHigh
(p *uint16)
pkg/next/dma/dma.go:180
↓ 3 callersFunctionsetLow
(p *uint16)
pkg/next/dma/dma.go:179
↓ 3 callersMethodsetupModel
setupModel configures memory layout and loads ROMs for the specified model
pkg/memory/memory.go:884
↓ 3 callersFunctionsramData
The Layer 2 golden vectors are captured from the actual Spectrum Next FPGA Layer 2 renderer (video/layer2.vhd simulated under GHDL — see _tools/layer2
pkg/next/layer2/fpga_golden_test.go:33
↓ 3 callersMethodstandardBlock
(data []byte)
pkg/ula/tzx_test.go:287
↓ 3 callersMethodstep
(cmd byte, dir int)
pkg/sam/wd1772.go:106
↓ 3 callersMethodstepHead
stepHead moves the physical R/W head one track in the given direction, clamping at track 0, and updates the Track Register only when the command's upd
pkg/disciple/disciple.go:456
↓ 3 callersFunctionstepOp
These tests pin two behaviours where the Spectrum Next Z80N (T80N FPGA core) deviates from documented NMOS, discovered by the core-golden differential
pkg/z80/z80n_faithful_test.go:11
↓ 3 callersFunctionsynthDistroZip
synthDistroZip builds an in-memory zip shaped like the official sn-complete distro: a leading root folder, machines/next/*.rom, and a couple of SD-tre
pkg/next/install/download_test.go:18
↓ 3 callersMethodtickEnvelope
tickEnvelope advances the envelope by one envelope clock, a faithful port of the FPGA env shape process (audio/ym2149.vhd:369-465). It mirrors the har
pkg/ay/ay.go:324
↓ 3 callersFunctiontileDefByte
tileDefByte reproduces the tile-pixel formula the testbench writes into the tile definitions: pixel(x,y) nibble = 1 + ((x + 4*y) mod 15) (always opaqu
pkg/next/tilemap/fpga_golden_test.go:56
↓ 3 callersFunctiontrdosTestROM
trdosTestROM returns a 16K blob with a recognisable per-byte pattern so a read can be attributed to the TR-DOS ROM rather than the system ROM.
pkg/memory/betadisk_paging_test.go:11
↓ 3 callersMethodtypeIStep
(cmd byte, dir int)
pkg/betadisk/fdc.go:156
↓ 3 callersFunctionusBits
usBits encodes a 0..3 drive index into the US0/US1 bits used by ST0/ST3.
pkg/plus3fdc/upd765.go:659
↓ 3 callersMethodverify
(t *testing.T, d *Disk)
pkg/plus3fdc/disk_test.go:110
↓ 3 callersFunctionwd1772StepRateMs
wd1772StepRateMs returns the head stepping-motor rate in milliseconds for the Type I rate field r1r0, per the WD1772 datasheet "Flag Summary": r1r0
pkg/disciple/disciple.go:84
↓ 3 callersFunctionwr1Byte
wr1 / wr2 base-byte builders: address mode + memory/IO select, no timing byte.
pkg/next/dma/dma_io_test.go:33
↓ 3 callersFunctionwr2Byte
(mode byte, isIO bool)
pkg/next/dma/dma_io_test.go:41
↓ 3 callersMethodwrite
(v byte)
pkg/next/wire.go:947
↓ 3 callersFunctionwriteBytes
writeBytes copies src into emulated memory starting at addr.
pkg/next/esxdos/file_handlers.go:31
↓ 3 callersFunctionwriteDummyMFROM
writeDummyMFROM writes an 8KB file filled with the given byte value.
pkg/multiface/multiface_test.go:27
↓ 3 callersFunctionwriteOneMultiBlock
(c *Card, fill byte)
pkg/next/sdcard/spi_cmd25_test.go:21
↓ 3 callersFunctionwriteTempTAP
writeTempTAP writes a one-block .tap (flag + data + XOR checksum, with the 2-byte little-endian length prefix) and returns its path.
cmd/zx_go/tapetrap_test.go:15
↓ 2 callersMethodAddAutosave
AddAutosave inserts an automatic snapshot, opens a fresh input recording block at the supplied T-state offset, and runs the pruning policy. The suppli
pkg/rzx/recording.go:199
↓ 2 callersMethodAddCreator
AddCreator appends a creator block — typically called once at the start of recording so playback tools can identify the producer.
pkg/rzx/recording.go:108
← previousnext →1,301–1,400 of 5,503, ranked by callers