MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 6 callersFunctionscaleToWindowSize
scaleToWindowSize maps a percentage (100/125/150/200/300) to the fyne window size. The returned height is padded by the menu-bar height so the emulato
cmd/zx_go/main.go:2295
↓ 6 callersFunctionselectRow
selectRow returns the IN high byte that selects exactly one matrix row.
pkg/sam/typedrune_test.go:6
↓ 6 callersMethodsetFAT
(c, v uint32)
pkg/next/sdcard/fat32.go:215
↓ 6 callersMethodsetLineInterrupt
setLineInterrupt programs the line-interrupt target (OUT 0xF9). Lines 0-191 fire the maskable INT a second time at (line+68)·384; >=192 disables it. T
pkg/sam/io.go:162
↓ 6 callersMethodtapeLoadingActive
tapeLoadingActive reports whether a tape is mid-load (playing with blocks still to load) — the window in which fast-tape turbo applies.
cmd/zx_go/main.go:915
↓ 6 callersFunctiontapeTrapROMActive
installTapeTrap installs a fast-load trap on the CPU that intercepts the 48K ROM LD-BYTES routine at 0x0556 and synthesises the load directly from the
cmd/zx_go/main.go:2009
↓ 6 callersMethodtimerExpired
timerExpired: tx_timer(PRESCALER_BITS-1 downto 1) == 0, i.e. timer in {0,1} (uart_tx.vhd:131).
pkg/next/uart/serial.go:100
↓ 6 callersMethodtimerExpired
()
pkg/next/uart/serial.go:476
↓ 6 callersMethodupdatePaging
updatePaging resolves the four section read/write pointers from the registers.
pkg/sam/memory.go:124
↓ 6 callersFunctionwithConfigMode
Spec-derived tests for NextReg write handlers. Each test pins a code path that exists in the canonical FPGA VHDL at `_tools/reference/tbblue-fpga/cor
pkg/next/wire_specderived_test.go:30
↓ 6 callersFunctionxorChecksum
xorChecksum returns the standard tape block checksum: the XOR of every byte (flag through last data byte).
pkg/ula/tape_format_test.go:49
↓ 5 callersFunctionAddFileToFAT32
AddFileToFAT32 inserts data as a file named fileName under the directory dirPath (e.g. "imported", or "games/imported") into an existing in-memory FAT
pkg/next/sdcard/fat32_add.go:19
↓ 5 callersMethodAutosaveDue
AutosaveDue reports whether enough frames have elapsed since the last automatic snapshot to warrant a new one. Drivers call this after each StoreFrame
pkg/rzx/recording.go:189
↓ 5 callersMethodBankPeek
(kind string, bank, off, n int)
pkg/debugger/bankaccess_test.go:29
↓ 5 callersFunctionDistroURL
DistroURL returns the configured distro download URL.
pkg/next/install/download.go:27
↓ 5 callersMethodDuration
Duration returns the T-state cost of the most recent transfer (per-byte cycle cost × bytes moved). The emulator charges this to the CPU clock so a con
pkg/next/dma/dma.go:517
↓ 5 callersMethodEnableInterface1
EnableInterface1 turns on the Sinclair Interface 1 — the same path the GUI takes when the user clicks "Enable Interface 1". Pulls the embedded if1-2.r
pkg/testharness/testharness.go:297
↓ 5 callersMethodEnableInterface1
EnableInterface1 attaches an Interface 1 with the supplied ROM image bytes. Allowed only on the 48K Spectrum.
pkg/peripherals/manager.go:153
↓ 5 callersMethodEnableKempstonMouse
EnableKempstonMouse attaches a Kempston mouse to the peripheral bus. The mouse is idle until Move / SetButton calls arrive from the host event loop. I
pkg/peripherals/manager.go:268
↓ 5 callersMethodFindAtOrBefore
FindAtOrBefore returns the latest entry whose insn ≤ target, or nil if none. Used by tt-rewind to pick the snapshot to restore.
cmd/zx_go/timetravel.go:248
↓ 5 callersMethodFormatLine
FormatLine produces a one-line description suitable for the breakpoints list in either the telnet `list-breakpoints` output or the visual breakpoints
pkg/debugger/breakpoints.go:29
↓ 5 callersMethodGetROMManager
GetROMManager returns the ROM manager
pkg/memory/memory.go:1146
↓ 5 callersMethodGetTracer
GetTracer returns the currently-installed TraceFunc (or nil). Used by chained-tracer patterns so a new caller can wrap the existing tracer rather than
pkg/next/nextregs/dispatcher.go:263
↓ 5 callersFunctionGetVariantName
GetVariantName returns a human-readable name for the variant
pkg/multiface/multiface.go:353
↓ 5 callersMethodHasPriority
HasPriority reports whether the Layer 2 priority bit (NR$44 bit 7, the high priority bit) is set — i.e. this pixel is promoted above the lower layers
pkg/next/palette/palette.go:51
↓ 5 callersMethodIM
()
pkg/debugger/backtrace_widget.go:18
↓ 5 callersMethodIs80Col
Is80Col reports whether NR$6B bit 6 (80-column mode) is set. In that mode the tilemap is 80 tiles × 8px = 640 pixels wide, so the caller must render i
pkg/next/tilemap/tilemap.go:115
↓ 5 callersMethodIsInhibited
IsInhibited reports whether the DISCiPLE is inhibited.
pkg/disciple/disciple.go:736
↓ 5 callersMethodKempstonMouseButton
KempstonMouseButton presses or releases a Kempston mouse button. btn is the button index (0 = right, 1 = left).
pkg/peripherals/manager.go:300
↓ 5 callersMethodLineHeight
LineHeight returns the active framebuffer height (192 for 256×192, else 256).
pkg/next/layer2/layer2.go:248
↓ 5 callersMethodList
List satisfies BreakpointsStore (alias of Snapshot).
pkg/debugger/bpset.go:72
↓ 5 callersMethodList
()
pkg/debugger/breakpoints_widget.go:20
↓ 5 callersFunctionLoad
Load reads config.json. If the file does not exist (fresh install) it returns a zero Config and no error. A corrupt file returns an error so the calle
pkg/config/config.go:66
↓ 5 callersFunctionLoadImage
LoadImage wraps a raw .TRD dump, inferring 80/40-track and single/double-sided geometry from its length. The 327680-byte size is ambiguous (40-track D
pkg/betadisk/image.go:57
↓ 5 callersMethodLoadMicrodrive
LoadMicrodrive parses a .mdr cartridge file from disk and inserts it into the IF1's drive `which` (0-based). Mirrors the shape of LoadPlus3Disk so the
pkg/peripherals/manager.go:336
↓ 5 callersMethodMicrodriveWriteProtected
MicrodriveWriteProtected reports whether the cartridge in drive `which` is currently write-protected. Returns false if the slot is empty or the IF1 is
pkg/peripherals/manager.go:398
↓ 5 callersMethodMixedLevel
MixedLevel returns the mean of the four channel levels as an 8-bit unsigned value. The mixer in pkg/ula uses this to fold DAC output into the global a
pkg/next/dac/dac.go:136
↓ 5 callersFunctionNew
New returns a hard-reset channel (equivalent to holding i_reset).
pkg/next/ctc/ctc.go:48
↓ 5 callersFunctionNewPageMapWidget
NewPageMapWidget builds a fresh diagram bound to mem. Pass a non-nil NextProvider to enable the 8-slot view; passing nil leaves the diagram in 4-slot
pkg/debugger/pagemap.go:99
↓ 5 callersMethodOnTop
OnTop reports whether NR$6B bit 0 (tm_on_top) is set. When on, the FPGA renders the tilemap as ALWAYS opaque over every layer below — even nibble-0 pi
pkg/next/tilemap/tilemap.go:109
↓ 5 callersMethodOpen
Open opens a file under the mount root. esxDOS flags: bit 0 = read, bit 1 = write, bit 2 = create (if missing), bit 4 = truncate.
pkg/next/sdcard/sdcard.go:149
↓ 5 callersMethodPageOut
PageOut unmaps the shadow ROM, restoring access to the main Spectrum ROM. Called when the IF1 ROM finishes its current command and returns control to
pkg/if1/if1.go:120
↓ 5 callersMethodRead
Read fills buf and returns the number of bytes read; for files, this advances the file cursor.
pkg/next/sdcard/sdcard.go:51
↓ 5 callersFunctionReadEmbeddedROM
ReadEmbeddedROM reads a ROM file from the embedded filesystem. Returns the data and nil error on success, or nil and an error if not found.
pkg/roms/embed.go:10
↓ 5 callersFunctionReadFile
ReadFile reads a .mdr file from disk and parses it.
pkg/microdrive/microdrive.go:314
↓ 5 callersMethodReadSector
ReadSector returns a copy of the sector at (cyl, head, sector), or false if the address is out of range.
pkg/sam/disk.go:65
↓ 5 callersMethodRefresh
Refresh recomputes the selected analysis from the live ring.
pkg/debugger/heatmap_widget.go:88
↓ 5 callersMethodReset
Reset clears all four DAC levels to 0 and the event-timing state.
pkg/next/dac/dac.go:123
↓ 5 callersMethodRestorePagingState
RestorePagingState restores a previously saved paging configuration. If state is nil or was never saved, this is a no-op.
pkg/memory/memory.go:1850
↓ 5 callersMethodRollback
Rollback removes everything after the LAST snapshot block in the recording, returning that snapshot. The recording is left ready to resume from that p
pkg/rzx/recording.go:296
↓ 5 callersMethodRunFrame
RunFrame executes approximately one 50 Hz frame, stepping the CPU and driving the ZX8x interrupts from a T-state line clock. The maskable INT (once pe
pkg/zx8x/machine.go:116
↓ 5 callersMethodSaveTZX
SaveTZX writes the currently loaded blocks back to a TZX file. Each block is emitted using the same TZX block-ID it parsed as on load: standard-speed
pkg/ula/tzx.go:24
↓ 5 callersMethodSeek
Seek sets the file cursor relative to whence (0 = start, 1 = current, 2 = end).
pkg/next/sdcard/sdcard.go:59
↓ 5 callersMethodSeekToBlock
SeekToBlock positions the tape at the given block index. Playback is stopped (the caller can call Play afterwards). Out-of-range indices are clamped t
pkg/ula/tape.go:299
↓ 5 callersMethodSelectRegister
SelectRegister latches the register that will be read or written via the data port. Only the low 4 bits are significant.
pkg/ay/ay.go:197
↓ 5 callersMethodSelectSprite
(v byte)
pkg/ula/ula.go:302
↓ 5 callersMethodSetBetaActive
SetBetaActive forces the Beta ROM paging state (used by save-state restore). It is a no-op unless the Beta ROM has been enabled.
pkg/memory/memory.go:1115
↓ 5 callersMethodSetClip
SetClip installs the sprite clip window (NextReg $19 coords X1,X2,Y1,Y2). X is in 2-pixel units (matching the FPGA), Y in 1-pixel units.
pkg/next/sprite/sprite.go:118
↓ 5 callersMethodSetDFFD
SetDFFD applies a write to port $DFFD, the Spectrum Next high RAM-bank extension. Bits 3:0 are the most-significant bits of the $C000-slot RAM bank se
pkg/memory/memory.go:556
↓ 5 callersMethodSetHEPR
(v byte)
pkg/sam/memory.go:196
↓ 5 callersMethodSetNextDMA
SetNextDMA installs the Spectrum Next zxnDMA controller. Port 0x6B writes are forwarded as command bytes. Passing nil unhooks.
pkg/ula/ula.go:429
↓ 5 callersMethodSetNextDivMMC
SetNextDivMMC installs the divMMC pager's port-write hook so OUT (0xE3) reaches it. The pager itself is also wired via the CPU M1 pre-fetch hook (for
pkg/ula/ula.go:482
↓ 5 callersMethodSetNextSpritePort
SetNextSpritePort installs the sprite engine's $303B select/status port handler. Passing nil unhooks.
pkg/ula/ula.go:433
↓ 5 callersMethodSetPeripherals
SetPeripherals sets the peripheral manager for I/O port delegation
pkg/ula/ula.go:1757
↓ 5 callersMethodSetROMBank
SetROMBank changes which of the four 16K ROM banks is visible at 0x0000-0x3FFF. Called from the NextReg 0x8E handler. Writes through to port7FFD bit 4
pkg/memory/next.go:134
↓ 5 callersMethodSetRender
SetRender swaps the frame source and repaints.
pkg/debugger/imageview.go:59
↓ 5 callersMethodSetSDHC
SetSDHC toggles the OCR's CCS bit so this card advertises SDHC/SDXC capacity (block-addressed CMD17 args) instead of the default SDSC (byte-addressed)
pkg/next/sdcard/spi.go:160
↓ 5 callersMethodSetScrollX
SetScrollX installs the 9-bit Layer 2 X scroll (NR$71 bit0 || NR$16). Only the low 9 bits are kept. Feeds the FPGA address generator (layer2.vhd:152).
pkg/next/layer2/layer2.go:97
↓ 5 callersMethodSetSide
SetSide selects the head (0/1) — driven from the SAM port address bit 2.
pkg/sam/wd1772.go:56
↓ 5 callersMethodSetSpecDrum
SetSpecDrum / SetCovox enable or disable each device.
pkg/audiodac/audiodac.go:38
↓ 5 callersMethodSetTransparency
SetTransparency installs the palette index that should be treated as "see-through" for the Layer 2 layer.
pkg/next/compositor/compositor.go:339
↓ 5 callersMethodSimulateNMI
SimulateNMI manually triggers an NMI (for testing or programmatic use)
pkg/keyboard/keyboard.go:526
↓ 5 callersFunctionTStatesPerLineFor
TStatesPerLineFor returns the documented T-states-per-scanline for a machine model: 224 for the 48K (312 lines * 224 = 69888 T-states/frame), 228 for
pkg/ula/ula.go:40
↓ 5 callersMethodTick
Tick advances the channel by exactly one i_CLK rising edge with i_iowr = 0.
pkg/next/ctc/ctc.go:122
↓ 5 callersMethodWide
Wide reports whether this history's entries carry BC/DE/HL/IX/IY.
pkg/debugger/history.go:126
↓ 5 callersFunctionWireContentionDisable
WireContentionDisable installs the NextReg 0x08 OnWrite handler. NextReg 0x08 is officially "Peripheral 3" and exposes multiple behaviour bits (port-F
pkg/next/wire.go:564
↓ 5 callersFunctionWireLayer2
WireLayer2 installs the NextReg 0x12 / 0x13 / 0x69 OnWrite handlers. 0x12 / 0x13 select the active / shadow framebuffer banks; 0x69 bit 7 enables Laye
pkg/next/wire.go:597
↓ 5 callersFunctionWireLayerPriority
WireLayerPriority installs the NextReg 0x15 OnWrite/OnRead handlers. The compositor reads p.Get() to drive the 5-source ordering rules from the NextRe
pkg/next/wire.go:718
↓ 5 callersFunctionWireMMU
Other subsystems (CPU speed at NextReg 0x07, palette at 0x40–0x44, etc.) have their own Wire* functions below; this one is scoped to just the MMU regi
pkg/next/wire.go:1737
↓ 5 callersFunctionWireSprites
WireSprites installs the NextReg sprite-select (0x34), attribute-byte (0x35-0x39), and auto-incrementing attribute (0x75-0x79) handlers. NR$35-$39 wr
pkg/next/wire.go:692
↓ 5 callersMethodWrite9
Write9 stores both bytes of a 9-bit palette value (NextReg 0x44 behaviour: two consecutive writes — first the high 8 bits, then the second byte carryi
pkg/next/palette/palette.go:264
↓ 5 callersMethodWriteBlock
WriteBlock writes 512 bytes into the image at the given LBA. Returns an error if the source is read-only.
pkg/next/sdcard/image_source.go:43
↓ 5 callersMethodaf
Helper functions for register pairs
pkg/z80/z80.go:3791
↓ 5 callersMethodapplyForcedCPUSpeed
applyForcedCPUSpeed enforces the user's "CPU Speed" override (cpuSpeedForce) on the live CPU. Called once per executed frame: - Auto (0), no CPU, or a
cmd/zx_go/main.go:1041
↓ 5 callersMethodbanks
banks returns a freshly-constructed accessor for the current emulator. Kept allocation-light because every debugger command builds one — these are tin
cmd/zx_go/bank_access.go:86
↓ 5 callersFunctionbitSet
bitSet sets bit i in the bitmap.
pkg/plus3fdc/track.go:142
↓ 5 callersMethodbpset
bpset returns the shared breakpoint store, lazily allocating one if unset. Production always pre-sets d.bps in newRemoteDebugger (before any goroutine
cmd/zx_go/debugger.go:1382
↓ 5 callersFunctionbytes
(read readFunc, start uint16, count int)
pkg/debugger/disasm.go:60
↓ 5 callersFunctionccfRun
ccfRun runs CCF starting from given A and F.
pkg/z80/flags_misc_test.go:23
↓ 5 callersMethodchain
(c uint32)
pkg/next/sdcard/fat32_test.go:77
↓ 5 callersMethodclassifyBranch
classifyBranch sets c.BranchSource / c.BranchFrom based on the just-executed instruction's opcode if the PC took an unexpected path. The classifier is
pkg/z80/z80.go:945
↓ 5 callersMethodclockLow
()
pkg/next/rtc/i2c_test.go:13
↓ 5 callersMethodclutColour
clutColour resolves a 4-bit CLUT index → its master-palette colour.
pkg/sam/display.go:146
↓ 5 callersMethodcmdClearTp
cmdClearTp removes one tracepoint (by PC) or all if no arg.
cmd/zx_go/debugger.go:1587
↓ 5 callersMethodcmdTp
cmdTp adds a tracepoint at PC. The CPU does NOT halt at PC; instead, an slog.Info("tp-hit") record is emitted with full register state every time PC f
cmd/zx_go/debugger.go:1547
↓ 5 callersFunctionconfigureClassicIntTiming
configureClassicIntTiming sets the maskable frame interrupt to the hardware-faithful narrow pulse for 128K-family models, replacing the legacy "held f
cmd/zx_go/main.go:769
↓ 5 callersFunctioncrc16CCITT
crc16CCITT computes the SD data-block CRC: CRC-16/CCITT with polynomial 0x1021 and initial value 0x0000 (the "XMODEM" variant the SD Physical Layer sp
pkg/next/sdcard/spi.go:516
↓ 5 callersMethodcurrentTrack
currentTrack returns the track at the current US / HD / PCN, or nil if the selected drive has no disk in it.
pkg/plus3fdc/upd765.go:710
↓ 5 callersMethoddaa
DAA (Decimal Adjust Accumulator) implementation
pkg/z80/z80.go:2260
↓ 5 callersFunctiondecodeWavHeader
(t *testing.T, b []byte)
pkg/audio/audio_test.go:245
← previousnext →801–900 of 5,503, ranked by callers