MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 12 callersMethodIsInvisible
IsInvisible returns whether the Multiface is in stealth mode
pkg/multiface/multiface.go:315
↓ 12 callersMethodIsPlaying
IsPlaying returns whether the tape is playing.
pkg/ula/tape.go:185
↓ 12 callersMethodLength
()
pkg/next/dma/dma.go:505
↓ 12 callersMethodLoadTZX
LoadTZX loads a TZX file into the tape player. TZX is a more comprehensive tape format than TAP, supporting: - Standard speed data blocks (ID 0x10) -
pkg/ula/tzx.go:150
↓ 12 callersFunctionNewInterface
NewInterface returns a Beta interface with a fresh, diskless WD1793.
pkg/betadisk/interface.go:20
↓ 12 callersFunctionNewWD1772
NewWD1772 returns an idle controller with no disk.
pkg/sam/wd1772.go:48
↓ 12 callersMethodPixelAt
PixelAt reports whether the pixel at (x, y) is ink.
pkg/zx8x/video.go:54
↓ 12 callersMethodReadCommand
()
pkg/ula/ula.go:321
↓ 12 callersMethodScreenMode
ScreenMode returns the active SAM screen mode 1-4 (VMPR bits 5-6 + 1).
pkg/sam/memory.go:225
↓ 12 callersMethodScreenText
ScreenText returns the contents of the Spectrum text-mode screen as a 24-line string. Each line is 32 characters wide, padded with spaces. Lines are s
pkg/testharness/screen.go:112
↓ 12 callersMethodSetHMPR
(v byte)
pkg/sam/memory.go:194
↓ 12 callersMethodVisibleScreenPage
VisibleScreenPage returns the physical RAM page holding the displayed image. Modes 3/4 use a 24 KB bitmap over two pages, so the page is forced even.
pkg/sam/memory.go:229
↓ 12 callersFunctionWireReset
WireReset wires NextReg $02 (Reset). Per the SpecNext wiki at https://wiki.specnext.dev/Next_Reset_Register the register acts as a "sticky" reset-reas
pkg/next/wire.go:1499
↓ 12 callersMethodWrite
Write serializes the file to a fresh byte slice. The output starts with the 10-byte RZX header and contains every block in f.Blocks in order. The func
pkg/rzx/write.go:44
↓ 12 callersFunctiondsWriteData
(d *Disciple, v byte)
pkg/disciple/datasheet_test.go:119
↓ 12 callersMethodfloatingBusByte
floatingBusByte computes the value an unattached IN returns based on the current scanline / column timing. Implements the canonical algorithm document
pkg/ula/ula.go:1188
↓ 12 callersMethodrdAddr
rdAddr fetches a 16-bit little-endian operand at PC through two contended read cycles (lo then hi), advancing PC by 2.
pkg/z80/z80.go:433
↓ 12 callersMethodrlc
CB instruction helper methods
pkg/z80/z80.go:4020
↓ 12 callersFunctionrunOpcodeWithSetup
runOpcodeWithSetup is like runOpcode but lets the test prime the CPU/memory state first.
pkg/z80/timing_table_test.go:41
↓ 12 callersFunctionsetFrameRel
setFrameRel positions the machine so statusByte sees the given frame-relative T-state.
pkg/sam/io_test.go:19
↓ 12 callersFunctionsetupRST8
(t *testing.T, api byte, retAddr uint16)
pkg/next/esxdos/esxdos_test.go:24
↓ 12 callersMethodsla
(val byte)
pkg/z80/z80.go:4046
↓ 11 callersMethodAssertNMIButton
AssertNMIButton latches button_nmi (divmmc.vhd:110-111): a divMMC NMI has been asserted (NR$02 bit 2 / the divMMC NMI button). It arms the $0066 NMI a
pkg/next/divmmc/divmmc.go:681
↓ 11 callersMethodClear
()
pkg/debugger/breakpoints_widget.go:23
↓ 11 callersMethodClearConfigMode
ClearConfigMode exits the Next config-mode window. Called from the NextReg $03 OnWrite handler when guest code installs a real machine personality (bi
pkg/memory/next.go:415
↓ 11 callersMethodCursor
Cursor returns the current write cursor (for debugging / tests).
pkg/next/copper/copper.go:140
↓ 11 callersMethodLast
Last returns the last n entries in chronological order (oldest first, newest last). n is clamped to the number of entries currently stored. Returns a
pkg/debugger/history.go:159
↓ 11 callersMethodLen
Len reports the current ring depth. Race-tolerant — value may shift before the caller acts on it.
cmd/zx_go/timetravel.go:309
↓ 11 callersMethodMixInto
(buf []int16)
pkg/audio/audio.go:17
↓ 11 callersFunctionNew
New returns a freshly-reset Plus3FDC with no disk loaded.
pkg/plus3fdc/plus3fdc.go:21
↓ 11 callersFunctionNewHostDir
NewHostDir creates a HostDir mount rooted at the given host directory. The directory must exist; subdirectories and files inside it are reachable thro
pkg/next/sdcard/sdcard.go:110
↓ 11 callersFunctionNewKeyboard
NewKeyboard returns a keyboard with all keys released.
pkg/sam/keyboard.go:83
↓ 11 callersMethodReadStatus
ReadStatus returns the status register (Beta port $1F read). Reading status clears INTRQ, matching the WD1793.
pkg/betadisk/fdc.go:110
↓ 11 callersMethodSaveBytes
SaveBytes serialises the snapshot to a byte slice in the requested format. Symmetric counterpart to LoadBytes for the RZX embedding path.
pkg/snapshot/snapshot.go:135
↓ 11 callersMethodSetEntryPoints1
(val byte)
pkg/next/wire.go:45
↓ 11 callersMethodSetIndex
SetIndex installs the palette-write cursor (NextReg 0x40 write). Subsequent value writes auto-increment from here.
pkg/next/palette/palette.go:158
↓ 11 callersMethodSetRAMReadHook
SetRAMReadHook installs a debug callback fired on every successful RAM read returned via the Memory.Read path. bank is the 16K SRAM index, addr the by
pkg/memory/memory.go:1598
↓ 11 callersMethodSetStripFlags
SetStripFlags toggles NR$6B bit 5 — when set, the per-tile flag byte is omitted from the map and defaultAttr is used.
pkg/next/tilemap/tilemap.go:82
↓ 11 callersMethodSetWritePtrLow
SetWritePtrLow / SetWritePtrHighAndMode are the NextReg 0x61 / 0x62 writes. 0x61 is the low 8 bits of the 10-bit cursor; 0x62 carries the high 2 bits
pkg/next/copper/copper.go:111
↓ 11 callersMethodStop
Stop stops tape playback.
pkg/ula/tape.go:161
↓ 11 callersMethodVideoMemByte
VideoMemByte reads displayed video memory by linear offset (0-based from the start of the displayed page), spanning into the next page for modes 3/4.
pkg/sam/memory.go:239
↓ 11 callersFunctionWireCPUSpeed
WireCPUSpeed installs the NextReg 0x07 OnWrite handler that drives CPU.SetSpeedSelect from guest writes. The CPU's SpeedMultiplier method returns 1/2/
pkg/next/wire.go:1284
↓ 11 callersMethodWriteAttr
WriteAttr streams one byte to the current sprite's attributes (port $0057); after a sprite's 4/5 bytes the current-sprite pointer advances.
pkg/ula/ula.go:311
↓ 11 callersMethodWriteCommand
WriteCommand issues a controller command.
pkg/sam/wd1772.go:69
↓ 11 callersFunctionbuildSyntheticDSK
buildSyntheticDSK constructs a minimal but valid DSK image in memory. The geometry mirrors a typical +3 system disk: 2 sides, 40 cylinders, 9 sectors
pkg/plus3fdc/disk_test.go:14
↓ 11 callersMethodcontentionDelay
contentionDelay returns the contention delay for the current T-state position. Turbo speeds: the contention pattern keys off ULA-scale T-states (CPU
pkg/memory/memory.go:719
↓ 11 callersFunctioncreateTestROMDir
createTestROMDir creates a temporary directory with dummy ROM files for testing.
pkg/roms/rom_manager_test.go:10
↓ 11 callersFunctiondsReadData
(d *Disciple)
pkg/disciple/datasheet_test.go:120
↓ 11 callersFunctiondsSetSector
(d *Disciple, v byte)
pkg/disciple/datasheet_test.go:124
↓ 11 callersMethodendIO
(extra byte)
pkg/sam/wd1772.go:200
↓ 11 callersFunctionmarkMem
markMem tags ROM and RAM pages with recognisable markers at offset 0.
pkg/sam/paging_test.go:10
↓ 11 callersFunctionnewBanksFor
(t *testing.T, model roms.SpectrumModel)
cmd/zx_go/bank_access_test.go:35
↓ 11 callersFunctionnewBlankZX81
--------------------------------------------------------------------------- Helpers. -----------------------------------------------------------------
pkg/zx8x/ula_spec_test.go:563
↓ 11 callersFunctionpadFAT
(s string, n int)
pkg/next/sdcard/fat16.go:550
↓ 11 callersMethodrrc
(val byte)
pkg/z80/z80.go:4026
↓ 11 callersMethodsetActive
setActive plots an active-display pixel (0,0 = top-left of the screen area), offset into the bordered frame.
pkg/sam/display.go:106
↓ 11 callersMethodsnapshotOnBPHit
snapshotOnBPHit is called from BreakpointCheck after the halt decision is made. Writes the current emulator state to a .szx in the configured director
cmd/zx_go/bp_snapshot.go:45
↓ 11 callersMethodsra
(val byte)
pkg/z80/z80.go:4052
↓ 11 callersMethodsrl
(val byte)
pkg/z80/z80.go:4064
↓ 10 callersMethodByteCounter
ByteCounter / CurrentA / CurrentB expose the chip's internal counters (the values the read mask returns): bytes transferred in the current operation a
pkg/next/dma/dma.go:510
↓ 10 callersFunctionDecode
Decode parses a raw 16-bit instruction word into Instruction. Per the FPGA encoding (device/copper.vhd): - MOVE: bit 15 = 0; bits 14-8 = NextReg inde
pkg/next/copper/copper.go:168
↓ 10 callersFunctionDecodeSnapshot
DecodeSnapshot is the inverse of EncodeSnapshot: it reads the format identifier off the SnapshotBlock and asks the snapshot package to parse the embed
pkg/rzx/snapshot.go:37
↓ 10 callersMethodDrq
Drq reports the data-request line (a byte is ready / needed).
pkg/betadisk/fdc.go:97
↓ 10 callersMethodEmit
Emit serialises e and writes one JSON line. The output object contains the event's struct fields plus a `"kind"` field set to e.Kind(). Concurrent cal
pkg/trace/trace.go:82
↓ 10 callersMethodGetBlock
GetBlock parses block N (0-based) into a Block struct. Mirrors libspectrum_microdrive_get_block (microdrive.c:122-148).
pkg/microdrive/microdrive.go:154
↓ 10 callersMethodHandlePortWrite
HandlePortWrite handles writes to Multiface I/O ports. OUT to the Multiface port re-arms the hardware (IC8b_Q = 1). For MF128/MF3, A7 also controls th
pkg/multiface/multiface.go:245
↓ 10 callersMethodHasROM
HasROM checks if a ROM is loaded
pkg/roms/rom_manager.go:234
↓ 10 callersMethodIsDiscipleEnabled
IsDisciple enabled returns whether Disciple is enabled
pkg/peripherals/manager.go:651
↓ 10 callersMethodIsPagedIn
()
cmd/zx_go/timetravel.go:56
↓ 10 callersMethodKeyMap
KeyMap returns a stored PS/2 keymap entry (read-side; for the keyboard subsystem to consume).
pkg/next/keymap/keymap.go:55
↓ 10 callersMethodNextBlock
NextBlock returns the bytes of the next tape block (without the leading length word) and advances the block pointer. Used by the fast-load ROM trap. R
pkg/ula/tape.go:218
↓ 10 callersMethodReadPort
ReadPort returns the value for a Beta register read.
pkg/betadisk/interface.go:34
↓ 10 callersMethodReadPort
(port uint16)
pkg/next/dma/dma.go:65
↓ 10 callersMethodRunFrame
RunFrame executes one 50 Hz SAM frame.
pkg/sam/sam.go:97
↓ 10 callersMethodSet
Set writes a 9-bit value to the given index. Only the low 9 bits of val are kept.
pkg/next/palette/palette.go:35
↓ 10 callersMethodSetEnabled
SetEnabled toggles Layer 2 rendering. When disabled, RenderScanline fills dst with index 0.
pkg/next/layer2/layer2.go:77
↓ 10 callersMethodSetNMICallback
SetNMICallback sets the callback function for NMI (Non-Maskable Interrupt) This is used for Multiface red button simulation
pkg/keyboard/keyboard.go:487
↓ 10 callersMethodSetRegWriter
SetRegWriter installs the NextReg writer. Required for MOVE instructions to take effect; otherwise they are silent no-ops.
pkg/next/copper/copper.go:84
↓ 10 callersMethodSetSprites
SetSprites attaches the sprite engine. nil unhooks (compositor falls back to Layer-2-over-ULA only).
pkg/next/compositor/compositor.go:318
↓ 10 callersMethodVMPR
()
pkg/sam/memory.go:220
↓ 10 callersMethodWriteSDA
(bit bool)
pkg/ula/ula.go:330
↓ 10 callersMethodclusterOffset
(c uint32)
pkg/next/sdcard/fat32.go:257
↓ 10 callersMethodcmdCrashDetect
cmdCrashDetect implements the live `crash-detect` debugger command. Subcommands: crash-detect — show current status crash-detect on
cmd/zx_go/crashdetect_cmd.go:27
↓ 10 callersFunctioninitCard
============================================================================ CMD9, 10, 12, 13, 16, 18, 59 command-set coverage (iter 198 — task #113).
pkg/next/sdcard/spi_test.go:409
↓ 10 callersFunctionmapMountError
mapMountError translates sdcard.* sentinels to esxDOS error codes.
pkg/next/esxdos/file_handlers.go:57
↓ 10 callersFunctionnewFakeBanks
()
pkg/next/layer2/layer2_test.go:19
↓ 10 callersFunctionnewLogicDebugger
Covers the non-GUI logic in debugger.go — CheckBreakpoint (plain / bank-filtered / conditional), cpuBank, visualCPUState, and cpuStackSource. These al
pkg/debugger/debugger_logic_test.go:24
↓ 10 callersFunctionnewTestDiscipleWithDisk
(t *testing.T)
pkg/disciple/disciple_test.go:71
↓ 10 callersFunctionnonZero
(buf []int16)
pkg/saa1099/saa1099_test.go:8
↓ 10 callersFunctionparseWatchSpec
parseWatchSpec decodes the --watch flag value into a slice of watchEntries. The format is "name:hex,name:hex,...". Names containing a literal colon ar
cmd/zx_go/debug.go:256
↓ 10 callersMethodreadRAM
readRAM reads a byte from the snapshot's 48K RAM address space (0x4000-0xFFFF)
pkg/snapshot/sna.go:136
↓ 10 callersMethodrl
(val byte)
pkg/z80/z80.go:4032
↓ 10 callersMethodrr
(val byte)
pkg/z80/z80.go:4039
↓ 10 callersFunctionrunEnvCycles
========================================================================= AY envelope shape end-state tests. Each of the 16 envelope shapes (NR$13 /
pkg/ay/ay_test.go:214
↓ 10 callersFunctionsetupMount
(t *testing.T, files map[string][]byte)
pkg/next/sdcard/sdcard_test.go:11
↓ 10 callersMethodsll
(val byte)
pkg/z80/z80.go:4058
↓ 10 callersMethodwithEmulationPaused
withEmulationPaused runs fn with the emulation goroutine paused, then restores the previous pause state. Used by RZX start/stop helpers that mutate li
cmd/zx_go/main.go:1711
↓ 9 callersMethodActive
Active returns the currently-selected chip. Port writes through 0xFFFD / 0xBFFD on ModelNext route through this.
pkg/ay/engine.go:57
↓ 9 callersMethodAutomapEnabled
()
cmd/zx_go/timetravel.go:58
↓ 9 callersFunctionBuildFAT32
BuildFAT32 walks dir and produces a FAT32-LBA image containing every file and subdirectory under it (macOS metadata skipped).
pkg/next/sdcard/fat32.go:59
← previousnext →401–500 of 5,503, ranked by callers