MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 6 callersMethodEnableBeta
EnableBeta installs the Beta Disk TR-DOS ROM and arms the $3Dxx auto-paging. rom is the 16 KB TR-DOS ROM; shorter blobs are zero-padded, longer ones t
pkg/memory/memory.go:1083
↓ 6 callersMethodEntryPoints1
()
pkg/next/wire.go:46
↓ 6 callersMethodGetMapping
GetMapping returns the current mapping for a physical key, or an empty slice if the key is not mapped.
pkg/keyboard/keyboard.go:558
↓ 6 callersMethodGetRAMWriteHook
GetRAMWriteHook returns the currently-installed RAM-write hook, or nil if none. Useful for layering: e.g. the debugger can chain its watchpoint check
pkg/memory/memory.go:1586
↓ 6 callersMethodGetROMPage
GetROMPage returns a direct pointer to a ROM page (0-3).
pkg/memory/memory.go:1801
↓ 6 callersMethodHEPR
()
pkg/sam/memory.go:222
↓ 6 callersMethodHalted
()
pkg/debugger/backtrace_widget.go:19
↓ 6 callersMethodHandleNMI
HandleNMI handles Non-Maskable Interrupt (typically from Multiface red button)
pkg/peripherals/manager.go:532
↓ 6 callersMethodHandleRETN
HandleRETN is the post-RETN unmap hook. divMMC pages itself out when the CPU executes RETN from within the overlay — this is how the NMI handler (RST
pkg/next/divmmc/divmmc.go:688
↓ 6 callersMethodHint
Hint returns a short human-readable description of where this frame came from. Empty for speculative frames.
pkg/debugger/backtrace.go:126
↓ 6 callersMethodIFF1
()
pkg/debugger/backtrace_widget.go:17
↓ 6 callersFunctionInstallROM
InstallROM reads the file at srcPath, copies it under Path() preserving the source basename, and computes the SHA-256 digest. The destination is overw
pkg/next/install/install.go:109
↓ 6 callersMethodIsKempstonMouseEnabled
IsKempstonMouseEnabled reports whether the Kempston mouse is currently attached.
pkg/peripherals/manager.go:286
↓ 6 callersMethodIsRecording
IsRecording reports whether a WAV recording is currently in progress.
pkg/audio/audio.go:403
↓ 6 callersMethodLEPR
()
pkg/sam/memory.go:221
↓ 6 callersFunctionLoad
Load reads a cartridge from the filesystem. The file must be exactly 16384 bytes; any other size returns an error. The returned Cartridge has Name set
pkg/if2/if2.go:43
↓ 6 callersFunctionLoadDisk
LoadDisk parses a SAM disk image, detecting MGT (by size) or SAD (by header signature). EDSK / SBT are not yet supported.
pkg/sam/disk.go:91
↓ 6 callersMethodLoadDisk
LoadDisk loads a disk image into the specified drive.
pkg/disciple/disciple.go:688
↓ 6 callersMethodLoadOverrides
LoadOverrides applies a JSON map of physical key name -> []MappingEntry from the given file path. Missing files are not an error (overrides are option
pkg/keyboard/keyboard.go:572
↓ 6 callersMethodMicrodriveCartridgeInserted
MicrodriveCartridgeInserted reports whether drive `which` has a cartridge. Used by the UI to grey out menu items when there's nothing to save / eject
pkg/peripherals/manager.go:412
↓ 6 callersMethodMode
Mode returns the low 2 bits decoded as compositor.PriorityMode.
pkg/next/wire.go:663
↓ 6 callersFunctionNewCharGen
NewCharGen returns a CharGen backed by the given character-generator data (the character-set region of the ZX80/ZX81 ROM).
pkg/zx8x/video.go:137
↓ 6 callersFunctionPCHistogram
PCHistogram tallies PC occurrences in the supplied entries and returns them sorted by descending count. Ties are broken by PC ascending for determinis
pkg/debugger/heatmap.go:17
↓ 6 callersMethodPalette
Palette returns a specific palette by index (0..7), or nil for out-of-range.
pkg/next/palette/palette.go:169
↓ 6 callersFunctionParseDiskImage
ParseDiskImage parses an in-memory disk image of any supported format, dispatching by signature. Headerless formats (MGT / IMG / TRD / D40 / D80) have
pkg/plus3fdc/disk.go:131
↓ 6 callersFunctionParseFile
ParseFile reads and parses a .NEX file from disk.
pkg/next/nex/nex.go:146
↓ 6 callersMethodPostFetchHook
PostFetchHook is the callback the Z80 should invoke after each opcode fetch but before dispatch. Pages the IF1 ROM OUT when PC matches the page-out tr
pkg/if1/if1.go:207
↓ 6 callersMethodPostStep
PostStep is the PostFetchHook companion to Step. It applies the $1FF8-$1FFF page-out trigger AFTER the M1 opcode fetch has completed, matching the FPG
pkg/next/divmmc/divmmc.go:582
↓ 6 callersMethodRawBytes
RawBytes returns a copy of the cartridge's data area sized to its declared length. The returned slice is independent of the cartridge.
pkg/microdrive/microdrive.go:127
↓ 6 callersMethodReadData
ReadData returns the next byte of a read transfer (Beta port $7F read).
pkg/betadisk/fdc.go:283
↓ 6 callersMethodReadDataPort
ReadDataPort reads one byte from the MDR data port. The IF1 ULA returns the AND of all motor-on drives' bytes (active-low bus). Mirrors port_mdr_in at
pkg/if1/microdrive.go:385
↓ 6 callersMethodReadROMByte
(addr int)
pkg/memory/next.go:438
↓ 6 callersMethodRefresh
Refresh pulls fresh state and updates every cell. Called from the debugger's per-tick refresh.
pkg/debugger/pagemap.go:142
↓ 6 callersMethodResetInstructionCount
ResetInstructionCount zeros the instruction counter. RZX playback calls this at the start of each frame so the per-frame target from the recording can
pkg/z80/z80.go:663
↓ 6 callersFunctionSDCardImage
SDCardImage returns the host file path to use as a raw SD-card image, or "" if none configured. Resolution order: 1. $ZX_GO_NEXT_SD_IMG env var (test
pkg/next/install/install.go:327
↓ 6 callersMethodSerializeDSK
SerializeDSK returns the EDSK bytes for this disk. Each track's sectors are walked from the byte stream, CRCs are recomputed to detect imaging-time er
pkg/plus3fdc/save.go:29
↓ 6 callersMethodSetBlock
SetBlock writes a Block back into block N (0-based). Mirrors libspectrum_microdrive_set_block (microdrive.c:150-175).
pkg/microdrive/microdrive.go:179
↓ 6 callersMethodSetDefaultAttr
SetDefaultAttr writes NR$6C (used when StripFlags is set).
pkg/next/tilemap/tilemap.go:91
↓ 6 callersMethodSetEFF7
SetEFF7 applies a write to port $EFF7 (decoded as address&$F0FF==$E0F7, zxnext.vhd:2604 — high nibble $E, low byte $F7; a classic incompletely decoded
pkg/memory/memory.go:611
↓ 6 callersMethodSetMapping
SetMapping replaces the mapping for a single physical key. Multiple MappingEntry values represent compound keystrokes (e.g. CAPS SHIFT + 5 for cursor
pkg/keyboard/keyboard.go:543
↓ 6 callersMethodSetMount
SetMount installs an SD-card backend and registers the esxDOS file-API handlers that need it (F_OPEN through F_READDIR). Passing nil unregisters those
pkg/next/esxdos/esxdos.go:206
↓ 6 callersMethodSetNextRegs
SetNextRegs installs the NextReg port handler. Called once during ModelNext construction; passing nil unhooks (useful for tests).
pkg/ula/ula.go:413
↓ 6 callersMethodSetPortTracer
SetPortTracer installs a per-access callback fired after every port read and write that completes through ReadPort / WritePort. Pass nil to disable. U
pkg/ula/ula.go:492
↓ 6 callersMethodSetProvider
SetProvider swaps the sprite source and repaints.
pkg/debugger/spriteview.go:79
↓ 6 callersMethodSetRZXRecordHook
SetRZXRecordHook installs (or removes, with hook=nil) the RZX recording sink. The hook is called once per IN-port read with the value the real periphe
pkg/ula/ula.go:1304
↓ 6 callersMethodSetWriteLogger
SetWriteLogger installs a hook fired on every successful write to divMMC RAM. Used for diagnostics that need to know exactly which divMMC bank/offset
pkg/next/divmmc/divmmc.go:964
↓ 6 callersMethodSetWriteProtect
SetWriteProtect toggles the per-drive write-protect flag.
pkg/plus3fdc/upd765.go:297
↓ 6 callersMethodSnapshots
Snapshots returns a copy of the current ring (oldest first) so callers can inspect without locking.
cmd/zx_go/timetravel.go:238
↓ 6 callersMethodSource
Source / Destination / Length — accessors for tests. Source is the port A start address, Destination the port B start address.
pkg/next/dma/dma.go:503
↓ 6 callersMethodStartRecording
StartRecording opens path for writing and begins capturing the mixed mono audio output as a 16-bit PCM WAV file at SampleRate. If a recording is alrea
pkg/audio/audio.go:354
↓ 6 callersMethodToneFrequency
ToneFrequency returns channel c's tone frequency in Hz.
pkg/saa1099/saa1099.go:104
↓ 6 callersMethodUpdate
Update advances the tape state by the given number of T-states. Returns the current EAR bit value.
pkg/ula/tape.go:321
↓ 6 callersMethodUseZX8xLayout
UseZX8xLayout switches the keyboard to the Sinclair ZX80/ZX81 matrix. Letter, digit, SPACE and SHIFT positions match the Spectrum, but the ZX8x has no
pkg/keyboard/keyboard.go:396
↓ 6 callersMethodWrite
(addr uint16, val byte)
pkg/zx8x/snapshot.go:5
↓ 6 callersMethodWriteMemory
WriteMemory writes a single byte. Writes to ROM areas are silently ignored, the same as the real CPU.
pkg/testharness/testharness.go:268
↓ 6 callersMethodWriteProtect
WriteProtect reports whether the cartridge is currently write-protected.
pkg/microdrive/microdrive.go:102
↓ 6 callersMethodWriteSector
WriteSector overwrites the 256-byte sector at (cylinder, side, sector). buf must be exactly one sector.
pkg/betadisk/image.go:101
↓ 6 callersMethodWriteSector
(v byte)
pkg/sam/wd1772.go:66
↓ 6 callersMethodallocCluster
()
pkg/next/sdcard/fat32.go:231
↓ 6 callersMethodappendDirent
appendDirent writes one 32-byte entry into the first free slot of the directory chain rooted at dirClus, extending the chain when full. Returns false
pkg/next/sdcard/fat32.go:264
↓ 6 callersFunctionbisectFirstDivergence
bisectFirstDivergence binary-searches for the first checkpoint at which our state stops matching a reference oracle. It is the automated form of the "
cmd/zx_go/bisect.go:20
↓ 6 callersFunctionbitTest
bitTest returns true if bit i in the bitmap is set.
pkg/plus3fdc/track.go:147
↓ 6 callersFunctionbuildSyntheticFile
buildSyntheticFile constructs an in-memory RZX with one of every block type so the round-trip tests exercise the full parser/writer.
pkg/rzx/format_test.go:12
↓ 6 callersFunctionbuildValidSector
--------------------------------------------------------------------------- The three checksums (block header, record header, data) — full hand-built
pkg/microdrive/spec_test.go:227
↓ 6 callersMethodclockHigh
()
pkg/next/rtc/i2c_test.go:12
↓ 6 callersMethodcmdClearBreakpoint
(args []string)
cmd/zx_go/debugger.go:1491
↓ 6 callersMethodcmdDisasmBank
cmdDisasmBank disassembles N instructions starting at OFF inside the underlying buffer of KIND BANK, ignoring whatever the CPU has mapped. KIND values
cmd/zx_go/bank_access.go:164
↓ 6 callersMethodcmdGetMemory
(args []string)
cmd/zx_go/debugger.go:1249
↓ 6 callersMethodcmdSnapshotOnBP
cmdSnapshotOnBP implements `snapshot-on-bp DIR` (empty DIR to disable). The directory must already exist; the debugger refuses to mkdir for safety.
cmd/zx_go/bp_snapshot.go:22
↓ 6 callersMethodcmdWatchZero
cmdWatchZero arms/disarms the zero-bank tracer. watch-zero on — halt on next M1 into a 16-byte-zero region watch-zero off — disarm
cmd/zx_go/debugger.go:1623
↓ 6 callersFunctioncollect
()
cmd/zx_go/crashdetect_test.go:31
↓ 6 callersFunctiondecodeBCD
decodeBCD unpacks a single BCD byte (00..99) into decimal.
pkg/next/esxdos/esxdos.go:169
↓ 6 callersMethodenabled
enabled reports whether any heuristic is active.
cmd/zx_go/crashdetect.go:36
↓ 6 callersMethodenvEnabled
(g int)
pkg/saa1099/saa1099.go:133
↓ 6 callersMethodexecuteDDCBInstruction
executeDDCBInstruction handles DD CB prefixed instructions (IX indexed bit / shift / rotate operations). Every opcode in this space operates on (IX+d)
pkg/z80/z80.go:3306
↓ 6 callersFunctionfileSubmenu
fileSubmenu groups a run of menu items under a single labelled parent entry (a fyne submenu via ChildMenu). Used to tame the otherwise huge flat File
cmd/zx_go/main.go:1536
↓ 6 callersMethodflushSQLite
flushSQLite writes the buffered rows to a SQLite file at path, creating the `m1` table. A monotonically increasing `seq` column preserves execution or
cmd/zx_go/tracedb.go:86
↓ 6 callersMethodformatProv
formatProv renders one last-writer record for the debugger reply.
cmd/zx_go/provenance_cmd.go:95
↓ 6 callersMethodgeneratePulsesData
generatePulsesData is generatePulses plus the count of pulses that precede the trailing inter-block pause (the pilot/sync/data pulses).
pkg/ula/tape.go:401
↓ 6 callersFunctionisUnderTempDir
isUnderTempDir returns true if abs is plausibly inside a system temp directory. macOS uses /var/folders/... for t.TempDir; Linux uses /tmp; Windows us
pkg/next/install/installtest/installtest.go:70
↓ 6 callersMethodlookup
lookup returns the last-writer record for a logical address. The returned record's valid field is false if nothing has written that address since the
cmd/zx_go/provenance.go:87
↓ 6 callersFunctionmakeFrames
(n int)
pkg/rzx/recording_test.go:445
↓ 6 callersFunctionmakePlaybackFile
makePlaybackFile builds a tiny RZX with one snapshot block followed by an IRB containing three frames: a normal one with two IN bytes, a repeat-last f
pkg/rzx/playback_test.go:11
↓ 6 callersFunctionmarkedMem
markedMem builds a Memory whose ROM and RAM pages carry recognisable markers so tests can tell which physical page a section resolves to.
pkg/sam/memory_test.go:7
↓ 6 callersFunctionmkText
(c color.Color)
pkg/debugger/debugger.go:570
↓ 6 callersMethodmountTRD
mountTRD reads a .TRD image from path and mounts it in the given Beta drive (0..3), enabling the Beta interface if it isn't already.
cmd/zx_go/betadisk.go:67
↓ 6 callersFunctionnewContendMem
iter 347: I/O + memory contention model tests. Two layers: 1. contentionDelay() — the per-T-state ULA hold pattern {6,5,4,3,2,1,0,0} over the 128-T c
pkg/memory/io_contention_test.go:21
↓ 6 callersFunctionnewLoopDetector
(threshold int, onStall func(pc uint16, count int))
cmd/zx_go/debug.go:222
↓ 6 callersFunctionnewTimeTravelBuffer
newTimeTravelBuffer constructs the ring. Returns nil if everyInsns/maxEntries are not sensible.
cmd/zx_go/timetravel.go:176
↓ 6 callersMethodnext
()
pkg/debugger/condition.go:193
↓ 6 callersMethodoctave
(c int)
pkg/saa1099/saa1099.go:95
↓ 6 callersMethodonPortWrite
onPortWrite records one guest OUT (wire to the ULA port tracer, write side). Port-level records are what disambiguate multi-occupant RAM code in oracl
cmd/zx_go/readtape.go:111
↓ 6 callersMethodpageInROM
pageInROM pages in the Multiface ROM overlay.
pkg/multiface/multiface.go:270
↓ 6 callersMethodpauseAckTimeout
pauseAckTimeout is the configured pause-ack wait, defaulting to 2s when unset. Settable at runtime via `set-pause-timeout`.
cmd/zx_go/debugger.go:668
↓ 6 callersMethodpeek
()
pkg/debugger/condition.go:186
↓ 6 callersFunctionphysKey
physKey packs a 16K bank index and a 14-bit intra-bank offset into a single map key. Offset is masked to 14 bits ($0000-$3FFF), so the bank shifts lef
cmd/zx_go/provenance.go:71
↓ 6 callersMethodreadByte
readByte clocks 8 bits out of the slave MSB-first, then sends the master's ACK (true) or NAK (false) on the 9th clock.
pkg/next/rtc/i2c_test.go:48
↓ 6 callersMethodrecord
record stamps the last-writer record for addr. It is a no-op when the tracker is disabled so arming/disarming is free on the hot path.
cmd/zx_go/provenance.go:77
↓ 6 callersFunctionredirectConfig
(t *testing.T)
pkg/config/config_test.go:10
↓ 6 callersFunctionsave
(t *testing.T, img image.Image, path string)
cmd/zx_go/snaprender_test.go:92
← previousnext →701–800 of 5,503, ranked by callers