MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 4 callersMethodparseAtom
()
pkg/debugger/condition.go:273
↓ 4 callersFunctionparseByteList
parseByteList parses a whitespace- or comma-separated list of hex bytes (with optional $ / 0x prefix) into a slice. Useful for "AA BB CC" or "$10,$20,
pkg/debugger/bankinspect.go:239
↓ 4 callersFunctionparsePressKeySpec
parsePressKeySpec parses --press-key. Returns entries sorted by frame for the scheduler to step through linearly.
cmd/zx_go/debug.go:656
↓ 4 callersFunctionparseRTCFixed
parseRTCFixed parses ZX_GO_RTC_FIXED (RFC3339). ok=false when unset or malformed (malformed logs a warning).
cmd/zx_go/next.go:1831
↓ 4 callersMethodpauseAndAck
pauseAndAck transitions a RUNNING CPU to paused and blocks until the headless loop acknowledges. The ack channel is captured in the SAME pauseAckMu cr
cmd/zx_go/debugger.go:778
↓ 4 callersMethodqueueRawDataBlock
queueBusy queues n 0xFF bytes — used to model the variable queueRawDataBlock queues an SDSC-style data block: 0xFE token + exactly len(data) bytes + 2
pkg/next/sdcard/spi.go:536
↓ 4 callersMethodraw
(bs ...byte)
pkg/ula/tzx_test.go:295
↓ 4 callersFunctionreadPath
readPath reads /dir/.../NAME.EXT from a FAT32 image for test verification.
pkg/next/sdcard/fat32_add_test.go:55
↓ 4 callersMethodrecordPhys
recordPhys stamps the last-writer record for a physical pool cell (16K bank + intra-bank offset). No-op when disabled or before the map is allocated (
cmd/zx_go/provenance.go:95
↓ 4 callersMethodrenderImage
()
pkg/debugger/spriteview.go:58
↓ 4 callersMethodrenderImage
renderImage produces the swatch image from the current provider.
pkg/debugger/paletteview.go:50
↓ 4 callersMethodres
(bit int, val byte)
pkg/z80/z80.go:4082
↓ 4 callersFunctionrestoreNextStateToEmu
restoreNextStateToEmu applies a captured full Next state back to a live emulator. Nil-safe (nil emu or fs is a no-op).
cmd/zx_go/timetravel_nextstate.go:101
↓ 4 callersFunctionrowBitLow
rowBitLow reports whether matrix (row, mask) reads as pressed (active-low).
pkg/keyboard/zx8x_test.go:88
↓ 4 callersFunctionrunRETI
WZ/MEMPTR on RETI / RETN. Per Sean Young §3.4: ED $4D (RETI) and ED $45 (RETN), plus all their mirror encodings, behave like RET for MEMPTR purposes
pkg/z80/memptr_retn_test.go:13
↓ 4 callersFunctionrunROpcode
R-register increment per M1 cycle. Per Z80 spec, every M1 (opcode fetch) increments the low 7 bits of the R register. Operand bytes are NOT M1 cycles
pkg/z80/r_register_test.go:21
↓ 4 callersMethodsaveSZXZ80Regs
saveSZXZ80Regs saves Z80 CPU registers as SZX block
pkg/snapshot/szx.go:352
↓ 4 callersMethodsbc16
16-bit subtract with carry. Undocumented F3/F5 come from the HIGH byte of the result (bits 11 and 13), not the low byte.
pkg/z80/z80.go:4136
↓ 4 callersFunctionscannedBits
scannedBits reports the matrix bits seen through the port-scan interface (so it reflects the typed-character symbol pulse, which Scan overlays). It sc
pkg/keyboard/punctuation_test.go:12
↓ 4 callersMethodsetAF
(val uint16)
pkg/z80/z80.go:3796
↓ 4 callersMethodsharedRegWatches
sharedRegWatches returns the emulator's single shared register-watchpoint set (telnet `watch-reg` + the GUI Watchpoints tab operate on the same instan
cmd/zx_go/main.go:291
↓ 4 callersMethodsignalPauseAck
signalPauseAck closes the current pauseAckCh and installs a fresh one for the next pause cycle. Called from the headless goroutine when the CPU has ac
cmd/zx_go/debugger.go:643
↓ 4 callersFunctionsortUint16s
sortUint16s sorts a slice of uint16 in ascending order.
cmd/zx_go/debugger.go:1615
↓ 4 callersFunctionstepAddr
(a uint16, mode byte)
pkg/next/dma/dma.go:490
↓ 4 callersMethodstopRefresh
()
pkg/debugger/debugger.go:533
↓ 4 callersMethodtickClock
tickClock replicates exactly the per-step interrupt/NMI clock bookkeeping that RunFrame performs BEFORE each CPU step (the line-clock NMI pulse and th
pkg/zx8x/ula_spec_test.go:593
↓ 4 callersFunctionuniformImage
(img image.Image)
cmd/zx_go/screenshot_test.go:92
↓ 4 callersMethodupdateContention
updateContention selects the active delay table for the current screen state.
pkg/sam/contention.go:63
↓ 4 callersFunctionuserKeymapPath
userKeymapPath returns the absolute path to the user's keymap override file under the platform-appropriate config dir: keymap.json inside `<os.UserCon
cmd/zx_go/main.go:748
↓ 4 callersFunctionwireNextSubsystems
wireNextSubsystems attaches the Spectrum Next bus onto an emulator constructed with classic (CPU + mem + ULA + kbd + peripherals) wiring. Used by both
cmd/zx_go/next.go:314
↓ 4 callersFunctionwithTiming
withTiming builds an A->B mem transfer that also sends the WR1/WR2 timing bytes (and, if presc != 0, the WR2 prescaler byte), so the duration model ca
pkg/next/dma/dma_timing_test.go:8
↓ 4 callersMethodwrite
(reg, val byte)
pkg/next/nextregs/dispatcher.go:284
↓ 4 callersMethodwriteDirEntry
writeDirEntry writes a single 32-byte directory entry at index idx inside dirBytes.
pkg/next/sdcard/fat16.go:458
↓ 4 callersFunctionwriteTempROM
writeTempROM writes a file of the given size to a fresh temp directory and returns its path. The content is the byte value (addr & 0xFF) at each offse
pkg/if2/if2_test.go:13
↓ 4 callersFunctionwriteWavHeader
writeWavHeader writes a 44-byte canonical PCM WAV header.
pkg/audio/audio.go:443
↓ 4 callersMethodwriteZ80MemoryBlock
writeZ80MemoryBlock writes a compressed memory block in Z80 format
pkg/snapshot/z80.go:422
↓ 3 callersMethodBankPoke
(kind string, bank, off int, data []byte)
pkg/debugger/bankaccess_test.go:33
↓ 3 callersMethodBorderColour
BorderColour returns the current 4-bit border CLUT index (BORDER bits map ((x&0x20)>>2)|(x&7)). The renderer resolves it through the CLUT.
pkg/sam/sam.go:130
↓ 3 callersMethodCLUT
CLUT returns the 16 palette registers (7-bit master-palette indices).
pkg/sam/sam.go:133
↓ 3 callersMethodCanEnableInterface1
CanEnableInterface1 reports whether the current machine model can host an Interface 1. The IF1 was a 48K-only peripheral; the menu item should be disa
pkg/peripherals/manager.go:321
↓ 3 callersMethodChannelDAC
ChannelDAC returns the 8-bit unsigned per-channel digital output level (O_AUDIO_A/B/C) for channel ch (0..2), exactly as the FPGA core's DAC produces
pkg/ay/ay.go:546
↓ 3 callersMethodCheckCompetitionSpeed
CheckCompetitionSpeed validates that the supplied emulator speed (as a percentage; 100 = real-time) is within CompetitionSpeedTolerance of 100%. Retur
pkg/rzx/recording.go:345
↓ 3 callersMethodClearFPGABootROM
ClearFPGABootROM disables bootrom mode but keeps the loaded image around (cheap to re-enable for a soft reset back into the loader if a peripheral wan
pkg/memory/next.go:367
↓ 3 callersMethodClearMAPRAM
()
pkg/next/wire.go:105
↓ 3 callersMethodCloseAll
CloseAll closes every open file handle and clears the handle table. Call it on teardown/reset so the host OS releases the underlying file descriptors
pkg/next/esxdos/esxdos.go:196
↓ 3 callersMethodComposeBorderRow
ComposeBorderRow paints tilemap content over the border pixels of a 320-wide RGBA row. tilemapY is the row index within the tilemap (0 = top of the fu
pkg/ula/ula.go:269
↓ 3 callersMethodComposeSpriteBorderRow
ComposeSpriteBorderRow paints sprite pixels over the border-area pixels of a 320-wide RGBA row. frameY is the sprite vcounter for this row (frame-rela
pkg/ula/ula.go:277
↓ 3 callersMethodConfigModeRAMPage
ConfigModeRAMPage returns the latched REG_RAMPAGE value. Exposed for tests; production callers should not need it.
pkg/memory/next.go:457
↓ 3 callersMethodCovoxEnabled
()
pkg/audiodac/audiodac.go:43
↓ 3 callersFunctionDetectFormat
DetectFormat detects the snapshot format based on file extension and content
pkg/snapshot/snapshot.go:73
↓ 3 callersMethodDisableDisciple
DisableDisciple disables the Disciple disk interface
pkg/peripherals/manager.go:113
↓ 3 callersMethodDisableInterface1
DisableInterface1 detaches the Interface 1 — any inserted microdrive cartridges are dropped.
pkg/peripherals/manager.go:172
↓ 3 callersMethodDisableMultiface
DisableMultiface disables the Multiface interface
pkg/peripherals/manager.go:138
↓ 3 callersMethodDiskPath
DiskPath returns the path of the disk loaded in the given drive.
pkg/disciple/disciple.go:777
↓ 3 callersMethodEjectMicrodrive
EjectMicrodrive removes the cartridge from drive `which`.
pkg/peripherals/manager.go:375
↓ 3 callersMethodEjectPlus3Disk
EjectPlus3Disk removes the disk from the given drive.
pkg/peripherals/manager.go:74
↓ 3 callersMethodEnableUninitTracking
GetPage returns a direct pointer to a RAM page. Page indices outside 0..127 return nil. Indices 8..127 return nil on classic models (only allocated fo
pkg/memory/memory.go:1694
↓ 3 callersMethodEnabled
()
pkg/debugger/timetravel_widget.go:26
↓ 3 callersMethodEntryPointsTiming0
()
pkg/next/wire.go:50
↓ 3 callersMethodEntryPointsValid0
()
pkg/next/wire.go:48
↓ 3 callersMethodFindPC
FindPC returns every entry whose saved PC equals pc. Useful for "show me every snapshot whose PC was inside the freeze loop".
cmd/zx_go/timetravel.go:270
↓ 3 callersMethodFormatTrack
FormatTrack rebuilds the track at (head, cylinder) from the given sectors, replacing whatever was there — the WD177x Write Track (format) operation. E
pkg/plus3fdc/disk.go:82
↓ 3 callersMethodGenerateAudioMono
GenerateAudioMono fills buf (length SamplesPerFrame) with one frame of the SAA1099 output downmixed to mono — the average of the left and right channe
pkg/sam/audio.go:25
↓ 3 callersMethodGetLoadedROMs
GetLoadedROMs returns a list of all loaded ROM types
pkg/roms/rom_manager.go:240
↓ 3 callersMethodGetPageMap
GetPageMap returns the current read/write page map for debugging. Returns [4]int for read map and [4]int for write map. Values >= 16 indicate ROM page
pkg/memory/memory.go:1811
↓ 3 callersMethodGetStatus
GetStatus returns status information about enabled peripherals
pkg/peripherals/manager.go:630
↓ 3 callersMethodHandle
(_ context.Context, r slog.Record)
pkg/zxlog/zxlog.go:177
↓ 3 callersMethodHandlePortRead
HandlePortRead returns (value, true) if the FDC handled the port; the PeripheralManager uses this to know whether to fall through to other peripherals
pkg/plus3fdc/plus3fdc.go:96
↓ 3 callersMethodHandlePortWrite
HandlePortWrite handles I/O port writes to peripherals
pkg/peripherals/manager.go:490
↓ 3 callersMethodIF1
IF1 returns the active Interface 1 device, or nil if not enabled. Used by the UI for cartridge insertion / ejection / write-protect.
pkg/peripherals/manager.go:308
↓ 3 callersMethodImage
Image returns the most recently presented frame (or the in-progress picture if none has been presented yet).
pkg/zx8x/machine.go:179
↓ 3 callersMethodImage
Image renders the picture as a 320×240 RGBA bitmap: the 256×192 active display (ink = black, paper = white) centred in a white border, matching the re
pkg/zx8x/video.go:83
↓ 3 callersMethodInsertDisk
InsertDisk loads a disk image into drive 1 (drive 0) or drive 2 (drive 1).
pkg/sam/sam.go:122
↓ 3 callersMethodIsEnabled
IsEnabled returns whether the Multiface is enabled
pkg/multiface/multiface.go:305
↓ 3 callersMethodIsEnabled
IsEnabled reports whether the DISCiPLE is enabled and not inhibited.
pkg/disciple/disciple.go:731
↓ 3 callersMethodIsRecording
IsRecording reports whether a WAV recording is currently in progress.
pkg/ula/ula.go:1724
↓ 3 callersMethodJoyMap
JoyMap returns a stored joymap entry.
pkg/next/keymap/keymap.go:58
↓ 3 callersMethodLoadDiscipleDisk
LoadDiscipleDisk loads a disk image into the specified DISCiPLE drive.
pkg/testharness/testharness.go:364
↓ 3 callersMethodLockSpeedSelect
LockSpeedSelect pins the speed selector to v and ignores all subsequent SetSpeedSelect (guest NR$07) writes. Used by the timing diagnostic AND by the
pkg/z80/z80.go:642
↓ 3 callersMethodMultifaceActive
MultifaceActive reports whether the MF overlay is currently paged in.
pkg/memory/memory.go:350
↓ 3 callersFunctionNewBreakpointsWidget
NewBreakpointsWidget builds the panel. store may not be nil — pass an in-memory implementation if no shared store is needed.
pkg/debugger/breakpoints_widget.go:48
↓ 3 callersFunctionNewHeatmapWidget
NewHeatmapWidget builds the panel. hist may be nil; call SetHistory once the shared ring is available.
pkg/debugger/heatmap_widget.go:31
↓ 3 callersFunctionNewImageView
NewImageView builds the panel. minW/minH set the image's minimum display size (it scales with crisp nearest-neighbour).
pkg/debugger/imageview.go:26
↓ 3 callersFunctionNewSpriteView
NewSpriteView builds the widget. provider may be nil.
pkg/debugger/spriteview.go:42
↓ 3 callersFunctionNewTimeTravelWidget
NewTimeTravelWidget builds the panel. ctl may be nil; call SetController once the backend is available.
pkg/debugger/timetravel_widget.go:52
↓ 3 callersFunctionNewWatchpointsWidget
NewWatchpointsWidget builds the panel. store may be nil; call SetStore once the shared set is available.
pkg/debugger/watchpoints_widget.go:37
↓ 3 callersFunctionPackIFFIM
PackIFFIM is the packing helper for HistoryEntry.IFFIM. Kept public so push sites in cmd/zx_go can build entries without duplicating the bit layout.
pkg/debugger/history.go:211
↓ 3 callersMethodPageIn
PageIn pages in the DISCiPLE ROM/RAM and pre-initializes the RAM workspace. Used by the emulator's reboot path to start GDOS cold boot from 0x0000. T
pkg/disciple/disciple.go:814
↓ 3 callersFunctionParseD40D80
---------------------------------------------------------------------- D40 / D80 (Didaktik 40 / 80) --------------------------------------------------
pkg/plus3fdc/raw.go:217
↓ 3 callersFunctionParseIMG
ParseIMG parses an in-memory IMG image. Same geometry as MGT but sectors are stored in "out-out" order — all of side 0's tracks, then all of side 1's.
pkg/plus3fdc/raw.go:79
↓ 3 callersFunctionParseSAD
ParseSAD parses an in-memory SAD image. SAD is a DISCiPLE / +D variant with an 18-byte "Aley's disk backup" magic followed by a 4-byte geometry header
pkg/plus3fdc/raw.go:158
↓ 3 callersMethodPeripherals
Peripherals returns the peripheral manager so tests can enable/disable interfaces, insert media, etc.
pkg/testharness/testharness.go:137
↓ 3 callersMethodPlotChar
PlotChar draws display byte b into the character cell at column col (0..31) and text row trow (0..23).
pkg/zx8x/video.go:41
↓ 3 callersMethodPos
Pos returns the current cursor position. For directories this is the iteration index.
pkg/next/sdcard/sdcard.go:63
↓ 3 callersMethodPostFetchHook
PostFetchHook is a no-op — GDOS pages itself out via port 0xBB.
pkg/disciple/disciple.go:830
↓ 3 callersMethodPreFetchHook
PreFetchHook pages in the DISCiPLE when the CPU fetches from specific trigger addresses: 0x0001 — second byte of cold boot (re-page after reset) 0x
pkg/disciple/disciple.go:794
↓ 3 callersMethodReadBlock
ReadBlock copies 512 bytes for the given LBA into dst.
pkg/next/sdcard/image_source.go:25
↓ 3 callersMethodReadTrack
Register accessors. Register = port & 3 (0=status/command, 1=track, 2=sector, 3=data).
pkg/sam/wd1772.go:63
↓ 3 callersMethodReleaseAll
ReleaseAll lifts every key (used on reset / focus loss).
pkg/sam/keyboard.go:109
↓ 3 callersMethodReleaseAll
ReleaseAll lifts every key in the matrix (all bits set = released). Used when the host window loses focus or the machine reboots: the OS stops deliver
pkg/keyboard/keyboard.go:161
← previousnext →1,101–1,200 of 5,503, ranked by callers