MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 2 callersFunctiondefaultNextWatch
defaultNextWatch is the canonical Spectrum / Spectrum Next sysvar set worth tracking during boot. Picked to cover BASIC parser state (ERR_NR, FLAGS, C
cmd/zx_go/debug.go:297
↓ 2 callersMethoddeviceNextStateIdx
deviceNextStateIdx is deviceNextState but reads the device's latched request by index (the real im2_int_req).
pkg/next/im2.go:253
↓ 2 callersFunctiondirName83
dirName83 returns the 11-byte 8.3 form of a directory name (no extension).
pkg/next/sdcard/fat32_add.go:214
↓ 2 callersFunctiondisableClassicBusPeripherals
unwireNextSubsystems strips the Next bus off an emulator, restoring the classic-model state. Called by switchModel when the user picks a classic model
cmd/zx_go/next.go:1747
↓ 2 callersFunctiondisasmDDFD
(read readFunc, start, addr uint16, reg string)
pkg/debugger/disasm.go:413
↓ 2 callersMethoddispatch
dispatch performs the actual RST 8 trap: read inline parameter, run the handler, pop the stack, advance PC past the parameter. Flag contract: on hand
pkg/next/esxdos/esxdos.go:318
↓ 2 callersFunctiondrawChar
(img *image.RGBA, pattern []string, ox, oy int, col color.Color)
cmd/zx_go/icon.go:98
↓ 2 callersFunctiondsSelDrive0Side1
bit0=1 drive0, bit1=0 side0
pkg/disciple/datasheet_test.go:126
↓ 2 callersFunctiondsSetTrack
(d *Disciple, v byte)
pkg/disciple/datasheet_test.go:122
↓ 2 callersFunctiondumpMemRanges
dumpMemRanges prints each requested memory range as a 16-byte hex grid via the live Memory.Read path (so MMU paging, alt-ROM redirects, divMMC overlay
cmd/zx_go/trace_wiring.go:266
↓ 2 callersFunctiondumpState
dumpState emits a one-shot snapshot of every interesting piece of CPU and Next state. Called from main() when --dump-state is set. Output goes to stdo
cmd/zx_go/trace_wiring.go:144
↓ 2 callersFunctioneffectiveJoystickFor
effectiveJoystickFor resolves the joystick scheme that should handle arrow keys for a given configured choice and machine model. An unconfigured (None
cmd/zx_go/main.go:1016
↓ 2 callersMethodejectTRD
ejectTRD removes the disk in the given Beta drive.
cmd/zx_go/betadisk.go:85
↓ 2 callersMethodempty
stored(DEPTH_BITS)
pkg/next/uart/serial.go:295
↓ 2 callersFunctionemuDivmmcSnapshotter
emuDivmmcSnapshotter returns the emulator's divMMC pager as a divmmcRAMSnapshotter, or nil if there is no Next divMMC pager wired (classic models, or
cmd/zx_go/timetravel_nextstate.go:79
↓ 2 callersMethodenableInterface1
enableInterface1 turns on the Interface 1 — pulls the IF1 ROM from the ROM manager (which loads it from roms/if1-2.rom or the embedded fallback), enab
cmd/zx_go/main.go:1934
↓ 2 callersMethodendSession
endSession restores the host paging state and ends the MF session. NOTE: does NOT change romPaged — the MF code's IN instruction will page out the ROM
pkg/multiface/multiface.go:294
↓ 2 callersMethodendpointRead
(isIO bool, addr uint16)
pkg/next/dma/dma.go:454
↓ 2 callersMethodendpointWrite
(isIO bool, addr uint16, val byte)
pkg/next/dma/dma.go:464
↓ 2 callersMethodensureNRDeltasHook
ensureNRDeltasHook plants the chained tracer once. Cooperates with the existing nr-trace tracer — both can be armed at the same time.
cmd/zx_go/nrdeltas_cmd.go:169
↓ 2 callersMethodensureProvenanceHook
provenance_cmd.go wires the provenance tracker (provenance.go) into the debugger: the `provenance` command (arm / disarm / query a logical address) an
cmd/zx_go/provenance_cmd.go:21
↓ 2 callersMethodexecWriteData
execWriteData walks the current track for an IDAM matching R, then prepares the execution phase to receive sector bytes from the CPU. When the user ha
pkg/plus3fdc/upd765.go:1082
↓ 2 callersMethodexecute
execute runs the command once all bytes are received and either: - prepares the result phase (commands without execution data transfer) - prepares the
pkg/plus3fdc/upd765.go:505
↓ 2 callersMethodexecuteInvalid
executeInvalid handles the INVALID command — single ST0 byte with IC=10.
pkg/plus3fdc/upd765.go:598
↓ 2 callersMethodextPage
extPage returns the read/write pointers for external RAM page p (full 8 bits); pages beyond the installed expansion resolve to scratch.
pkg/sam/memory.go:116
↓ 2 callersFunctionextractZipFile
extractZipFile writes one zip entry to dest, creating parent dirs. The caller is responsible for confining dest to its root — the SD path goes through
pkg/next/install/download.go:257
↓ 2 callersFunctionfakeReader
fakeReader builds an audioReader wired to as with buffers sized for `samples` mono samples — enough to drive Read() once without touching oto. Lets us
pkg/audio/audio_test.go:21
↓ 2 callersMethodfindSubdir
findSubdir scans the directory chain at dirClus for a subdirectory whose 8.3 short name matches name (case-insensitive). Returns its first cluster, or
pkg/next/sdcard/fat32_add.go:114
↓ 2 callersMethodfinishBlock
finishBlock applies the auto-restart-or-stop policy after a transfer's last byte: auto-restart reloads the start addresses and stays armed; otherwise
pkg/next/dma/dma.go:394
↓ 2 callersMethodfinishTypeI
finishTypeI completes a positioning command with no seek delay and raises INTRQ. The live Type I status bits (TRACK00, SPIN_UP, INDEX, NOT-READY) are
pkg/sam/wd1772.go:123
↓ 2 callersMethodfireBPFirstEntry
fireBPFirstEntry is called from BreakpointCheck when a hit matches. It self-clears, pauses, optionally snapshots, and logs. Public name because the ho
cmd/zx_go/bpfirst_cmd.go:117
↓ 2 callersFunctionfixedTime
fixedTime makes record timestamps deterministic so the formatted output is testable.
pkg/zxlog/zxlog_test.go:16
↓ 2 callersMethodfloppy
floppy maps a low-byte port to its WD1772 (drive 1 = 0xE0-E7, drive 2 = 0xF0-F7) and register index (port & 3), or nil if not a floppy port.
pkg/sam/io.go:80
↓ 2 callersMethodflushSDWriteback
flushSDWriteback persists guest SD-image writes to disk when the user opted in via --sd-writeback. The previous file is kept as .bak (see ImageSource.
cmd/zx_go/main.go:1584
↓ 2 callersFunctionfmtBytes
(b []byte)
cmd/zx_go/xref_cmd.go:266
↓ 2 callersMethodfmtDivMMC
()
cmd/zx_go/debugger.go:1215
↓ 2 callersMethodfmtMMU
()
cmd/zx_go/debugger.go:1204
↓ 2 callersMethodfmtRegisters
()
cmd/zx_go/debugger.go:1180
↓ 2 callersMethodfmtStackWalk
fmtStackWalk reads up to 16 16-bit words above SP and returns them annotated with the symbol map. Used by the snapshot path for stack traces; exposed
cmd/zx_go/debugger.go:1192
↓ 2 callersFunctionformatCopperDisasm
formatCopperDisasm disassembles the Copper program. ins(i) returns the decoded instruction at index i; cursor/mode come from the live Copper. Renderin
cmd/zx_go/copper_disasm.go:30
↓ 2 callersFunctionformatHex16
formatHex16 formats a uint16 as 4-digit uppercase hex without the "$" prefix.
cmd/zx_go/bpaction_cmd.go:55
↓ 2 callersFunctionformatNextRegPanel
formatNextRegPanel renders a decoded dashboard of the most useful NextRegs, reading each via rd. Pure function (reader injected) so it unit-tests with
cmd/zx_go/nrpanel_cmd.go:12
↓ 2 callersMethodfpgaFrameAddr
fpgaFrameAddr is the faithful port of the Layer 2 framebuffer-address generator (video/layer2.vhd:145-167). Given the effective raster coordinate (hcE
pkg/next/layer2/layer2.go:119
↓ 2 callersMethodfpgaSramAddr
fpgaSramAddr ports the full SRAM-effective address path (video/layer2.vhd:172-175): the bank-effective mapping that places the framebuffer in the 128K
pkg/next/layer2/layer2.go:184
↓ 2 callersMethodframeIntPulse
frameIntPulse models the narrow maskable frame-INT pulse (timing.md §1c) within the frame whose tstate origin is frameStart. The FPGA raises int_ula f
pkg/z80/z80.go:735
↓ 2 callersFunctionfuzzTape
Fuzz the TAP and TZX tape parsers against arbitrary bytes: a malformed tape (bad block lengths, truncated TZX blocks, absurd pilot counts) must be rej
pkg/ula/fuzz_test.go:15
↓ 2 callersFunctiongeomFor
geomFor returns (c_min_hactive, c_max_hblank, c_min_vactive, c_max_vblank) for a tested mode, transcribed from zxula_timing.vhd: 48K 50Hz (:254-270
pkg/ula/fpga_timing_golden_test.go:133
↓ 2 callersMethodhandleReadBlock
handleReadBlock dispatches CMD17/18 with the same response framing the CMD9 / CMD10 paths use, byte-for-byte matching the canonical MMC SPI implementa
pkg/next/sdcard/spi.go:595
↓ 2 callersMethodincrementHead
incrementHead moves the head one byte forward, wrapping around at the end of the cartridge (it's a tape loop). Mirrors increment_head at fuse-1.6.0/pe
pkg/if1/microdrive.go:100
↓ 2 callersMethodind
()
pkg/z80/z80.go:4532
↓ 2 callersMethodini
Block input operations
pkg/z80/z80.go:4477
↓ 2 callersFunctioninkCount
(m *Machine)
pkg/zx8x/integration_test.go:12
↓ 2 callersFunctioninstallBankSwitchLogger
installBankSwitchLogger hooks memory.SetBankTracer to emit a slog event for every classic ROM-bank switch and every 8K-MMU slot reassignment. Replace
cmd/zx_go/debug.go:472
↓ 2 callersFunctioninstallWriteWatchers
installWriteWatchers parses --watch-writes and installs a WriteObserver that logs every write to one of the watched addresses. Each event includes the
cmd/zx_go/debug.go:703
↓ 2 callersMethodisContendedAddr
isContendedAddr returns true if the address is in contended memory (screen RAM).
pkg/memory/memory.go:705
↓ 2 callersFunctionisHexDigit
(c byte)
pkg/debugger/condition.go:173
↓ 2 callersFunctionisScreenLine
isScreenLine reports whether a frame-relative scan line falls in the active display (lines 68..259).
pkg/sam/lightpen.go:72
↓ 2 callersFunctionitoa
(n int)
pkg/testharness/screen.go:165
↓ 2 callersFunctionjoystickKeyForArrow
joystickKeyForArrow maps a physical arrow / fire key to one of the five joystick directions. Returns -1 if the key is not a joystick input. Index orde
cmd/zx_go/main.go:321
↓ 2 callersMethodlayer2Redirect
layer2Redirect maps a logical address to the Layer-2 RAM 16K bank + offset it should hit while Layer-2 paging is active, or ok=false when this address
pkg/memory/memory.go:1655
↓ 2 callersMethodlayerColorOf
layerColorOf returns an RGBA lookup over the given palette layer.
cmd/zx_go/next_debug.go:127
↓ 2 callersMethodldd
()
pkg/z80/z80.go:4218
↓ 2 callersMethodlddx
lddx is LDIX with destination decrement. Source (HL) still advances forward; only DE decrements. Same flag pattern as ldix.
pkg/z80/z80n.go:262
↓ 2 callersMethodldi
Block load operations
pkg/z80/z80.go:4193
↓ 2 callersMethodldix
ldix performs one step of the LDIX block: copy (HL) to (DE) unless the source byte equals A; then HL++, DE++, BC--. Flags follow classic LDI: N=0, H=0
pkg/z80/z80n.go:243
↓ 2 callersMethodlinkCluster
linkCluster makes prev's FAT entry point to next, then sets next's FAT entry to EOC.
pkg/next/sdcard/fat16.go:257
↓ 2 callersFunctionloadDiscipleDisk
loadDiscipleDisk opens a file picker for an MGT/IMG/SAD disk image and mounts it in the DISCiPLE's drive (0 = 1, 1 = 2).
cmd/zx_go/main.go:588
↓ 2 callersFunctionloadLayer2Golden
(t *testing.T)
pkg/next/layer2/fpga_golden_test.go:45
↓ 2 callersFunctionloadLoResGolden
loadLoResGolden parses the FPGA-derived golden produced from video/lores.vhd under GHDL. Column order (see the file header and _tools/lores-vhdl-test/
pkg/next/lores/fpga_golden_test.go:26
↓ 2 callersFunctionloadPlus3Disk
loadPlus3Disk opens a file picker for a DSK image and mounts it in the given +3 FDC drive (0 = A, 1 = B). Refuses (with explanation) on non-+3/+2A mod
cmd/zx_go/main.go:621
↓ 2 callersFunctionloadRaw
(mem MemWriter, base int, data []byte)
pkg/zx8x/snapshot.go:27
↓ 2 callersFunctionloadSAMDisk
loadSAMDisk shows an MGT/SAD/DSK file picker and inserts the chosen image into the given SAM Coupé drive (0 = drive 1, 1 = drive 2). SAM-only.
cmd/zx_go/main.go:699
↓ 2 callersMethodloadSNA
loadSNA loads a .SNA format snapshot
pkg/snapshot/sna.go:19
↓ 2 callersMethodloadSZX
loadSZX loads a .SZX format snapshot
pkg/snapshot/szx.go:109
↓ 2 callersFunctionloadTRDDisk
loadTRDDisk shows a .TRD file picker and mounts the chosen image in the given Beta drive (0 = A, 1 = B), enabling TR-DOS on first use.
cmd/zx_go/main.go:658
↓ 2 callersFunctionloadTilemapGolden
loadTilemapGolden reads the FPGA-derived golden (one line per visible (scenario,row,col) where the engine emitted en=1 or pixel!=0), generated from vi
pkg/next/tilemap/fpga_golden_test.go:23
↓ 2 callersMethodloadZ80
loadZ80 loads a .Z80 format snapshot
pkg/snapshot/z80.go:34
↓ 2 callersMethodlogEndOfRunProvenance
logEndOfRunProvenance emits the return-word provenance at the end of a headless run (when --provenance is armed). If the run ended stuck in a trap rea
cmd/zx_go/provenance_cmd.go:181
↓ 2 callersFunctionmakeStubCartridge
makeStubCartridge builds a synthetic 16KB Interface 2 cartridge that, when executed from PC=0x0000, writes a known magic byte pattern into RAM at 0x80
pkg/testharness/if2_test.go:30
↓ 2 callersMethodmarkSeekDone
markSeekDone latches a "seek complete" status for the given drive so a later SENSE INTERRUPT can pick it up.
pkg/plus3fdc/upd765.go:649
↓ 2 callersMethodmarkWeakRange
markWeakRange marks a range of bytes as weak. Reads of weak bytes return random data each time, modelling copy-protected sectors.
pkg/plus3fdc/track.go:361
↓ 2 callersMethodmatchChar
matchChar compares an 8-byte character cell against the 96 printable characters in the Spectrum ROM and returns the matching ASCII code. Returns ' ' (
pkg/testharness/screen.go:77
↓ 2 callersMethodmirrorFAT
()
pkg/next/sdcard/fat16.go:236
↓ 2 callersFunctionmmuSyncCases
()
pkg/memory/mmu_sync_matrix_test.go:51
↓ 2 callersMethodmodelHasFDC
modelHasFDC reports whether the current Spectrum model has a +3 FDC fitted (i.e. the +3 or the +2A).
pkg/peripherals/manager.go:481
↓ 2 callersMethodmodelHasIF1
modelHasIF1 reports whether the current Spectrum model can have an Interface 1 attached. The IF1 was a 48K-only peripheral — its edge connector and sh
pkg/peripherals/manager.go:147
↓ 2 callersFunctionnewBootTracingULA
(mem *memory.Memory)
pkg/z80/plus3_menu_test.go:23
↓ 2 callersFunctionnewIOLog
()
pkg/next/dma/dma_io_test.go:16
↓ 2 callersFunctionnewNexloadMacro
newNexloadMacro builds the macro that loads sdPath (an absolute SD-card path, e.g. "/games/Next/Sonic/sonic.nex"). Timings mirror the verified headles
cmd/zx_go/nexload_macro.go:76
↓ 2 callersFunctionnewPagemapCell
()
pkg/debugger/pagemap.go:52
↓ 2 callersFunctionnewRZXTestRig
newRZXTestRig builds a fresh emulator instance backed by stub ROMs. Loads a tiny program at 0x8000 that loops forever: IN A,(0xFE) ; reads from po
pkg/rzx/integration_test.go:37
↓ 2 callersFunctionnewRealLikeULA
(mem *memory.Memory)
pkg/z80/plus3_menu_test.go:103
↓ 2 callersFunctionnewRemoteDebugger
newRemoteDebugger spins up the TCP listener and registers the breakpoint check / pre-fetch hook on the CPU. If port is 0 or negative, returns nil (deb
cmd/zx_go/debugger.go:356
↓ 2 callersFunctionnewRoutingTestMemory
(t *testing.T)
pkg/memory/routing_matrix_test.go:67
↓ 2 callersFunctionnewSamEmulator
newSamEmulator builds an emulator running the MGT SAM Coupé (pkg/sam). The SAM has its own memory map, I/O/ASIC, keyboard and sound, so the real machi
cmd/zx_go/sam.go:23
↓ 2 callersFunctionnextROMsInstalled
nextROMsInstalled reports whether the NextZXOS distro ROM is present, so Next boot tests can skip cleanly on a bare checkout.
cmd/zx_go/switch_to_next_test.go:13
↓ 2 callersFunctionnonSilent
nonSilent reports whether any sample in buf is non-zero.
pkg/ay/engine_mix_test.go:6
↓ 2 callersFunctionnr02Harness
nr02Harness wires a dispatcher + memory + CPU exactly like the existing WireReset tests (wire_test.go).
pkg/next/wire_nr02_resettype_test.go:14
↓ 2 callersMethodoffset
offset returns the byte offset of (cylinder, side, sector) within Data, or an error if any coordinate is outside the image geometry. sector is 1-based
pkg/betadisk/image.go:74
↓ 2 callersMethodoffset
offset returns the byte offset of (cyl, head, sector) — sector is 1-based — and whether it is in range.
pkg/sam/disk.go:45
← previousnext →1,601–1,700 of 5,503, ranked by callers