MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 38 callersFunctiondsCmd
Port helpers expressed in WD1772 register terms.
pkg/disciple/datasheet_test.go:117
↓ 37 callersMethodClose
()
pkg/next/sdcard/sdcard.go:278
↓ 37 callersMethodHandleKeyWithModifiers
HandleKeyWithModifiers processes a key with explicit modifier information.
pkg/keyboard/keyboard.go:65
↓ 37 callersFunctionNewBank
NewBank constructs a Bank with all eight palettes initialised to zeros.
pkg/next/palette/palette.go:139
↓ 37 callersMethodSetVMPR
SetVMPR stores the video register (only bits 0-6; RXMIDI is read-only) and re-evaluates which sections are displayed. It does not change the CPU map.
pkg/sam/memory.go:200
↓ 37 callersFunctioncreateZ80NTestCPU
createZ80NTestCPU returns a Z80N-variant CPU sharing the 48K memory backing used by the existing ED tests, for unit-testing Z80N opcodes in isolation
pkg/z80/z80n_test.go:13
↓ 37 callersFunctiondsCommand
--------------------------------------------------------------------------- Phase / handshake helpers. -----------------------------------------------
pkg/plus3fdc/datasheet_test.go:120
↓ 36 callersMethodContendPort
(port uint16)
pkg/z80/z80.go:333
↓ 36 callersMethodDE
DE returns the DE register pair.
pkg/z80/z80.go:585
↓ 36 callersMethodDrive
Drive returns a pointer to the i-th drive (0-based). Out-of-range indices return nil.
pkg/if1/microdrive.go:290
↓ 36 callersMethodRunFrames
RunFrames executes n full emulator frames synchronously on the calling goroutine. Each frame runs the CPU for TstatesPerFrame T-states, renders the sc
pkg/testharness/testharness.go:156
↓ 36 callersMethodSetAltROMReg
(val byte)
pkg/memory/memory.go:357
↓ 36 callersFunctioncreateTestROMs
Helper to create test ROM files
pkg/memory/memory_test.go:12
↓ 35 callersMethodExecuteFrame
(tstatesPerFrame int)
pkg/z80/z80.go:752
↓ 35 callersMethodIndex
Index returns the current write cursor.
pkg/next/palette/palette.go:161
↓ 34 callersMethodMount
Mount attaches an image to a drive (0..3). A nil image ejects.
pkg/betadisk/fdc.go:67
↓ 34 callersFunctionNew
New creates a new AY instance with all registers cleared. The noise LFSR powers up all-zeros, matching the FPGA core (audio/ym2149.vhd:111); the feedb
pkg/ay/ay.go:138
↓ 34 callersFunctionNew
New constructs a tilemap reader. Disabled by default; clip window defaults to the full area ({0, 0x9F, 0, 0xFF} per the FPGA reset). The dispatcher wr
pkg/next/tilemap/tilemap.go:59
↓ 34 callersMethodWritePatternByte
WritePatternByte streams one byte to the current sprite-pattern cursor (port $005B, auto-incrementing).
pkg/ula/ula.go:308
↓ 34 callersFunctionactiveAt
activeAt reads a pixel in active-screen coordinates (0,0 = top-left of the 512×192 display area inside the border).
pkg/sam/display_test.go:13
↓ 34 callersFunctionloadTestDisk
loadTestDisk parses the standard synthetic DSK and returns it.
pkg/plus3fdc/upd765_test.go:8
↓ 33 callersFunctionRedirectConfig
RedirectConfig points install.Path() at a fresh temp directory for the duration of the test by setting ZX_GO_NEXT_ROM_DIR. Returns the resolved path s
pkg/next/install/installtest/installtest.go:30
↓ 33 callersMethodShow
()
pkg/debugger/debugger.go:363
↓ 33 callersMethodir
ir returns the I:R register pair value — the address the Z80 places on the bus during internal (no-MREQ) machine cycles, i.e. the value the ULA conten
pkg/z80/z80.go:444
↓ 32 callersMethodCPU
CPU returns the underlying Z80. Tests that need to peek at register state directly can use it; most tests should stick to the higher-level Memory / Sc
pkg/testharness/testharness.go:116
↓ 32 callersFunctionNew
New returns a fresh DMA with no transfer queued.
pkg/next/dma/dma.go:148
↓ 32 callersFunctionNew
New constructs a Layer 2 reader backed by the given memory bus. Disabled by default — guest code (or test code) flips it on when ready.
pkg/next/layer2/layer2.go:57
↓ 32 callersMethodRenderScanline
RenderScanline writes the sprite layer's contribution to one row of the active display region. dst is Width bytes of palette indices; the function ove
pkg/next/sprite/sprite.go:445
↓ 32 callersFunctiondsStatus
(d *Disciple)
pkg/disciple/datasheet_test.go:118
↓ 32 callersFunctionfeed
(d *DMA, bytes []byte)
pkg/next/dma/dma_test.go:31
↓ 32 callersFunctionnewRemoteWithCPU
Covers the live `crash-detect` command dispatcher and its status / enable / disable / set sub-handlers. enable/set wire a pre-fetch hook onto a real C
cmd/zx_go/crashdetect_cmd_test.go:16
↓ 31 callersFunctionNewDisciple
NewDisciple creates a new DISCiPLE interface.
pkg/disciple/disciple.go:150
↓ 31 callersMethodSelectedSprite
SelectedSprite returns the current attribute-write cursor.
pkg/next/sprite/sprite.go:217
↓ 31 callersFunctionwriteDisplay
writeDisplay sets a byte in the display page (page 0 at reset / VMPR 0).
pkg/sam/display_test.go:34
↓ 30 callersMethodIsMMUOverridden
IsMMUOverridden reports whether the given 8K slot was last written through the MMU rather than through classic paging. Exposed mainly for tests; produ
pkg/memory/memory.go:644
↓ 30 callersFunctionNewFDC
NewFDC returns an idle controller with no disks mounted.
pkg/betadisk/fdc.go:51
↓ 30 callersMethodReadData
ReadData returns the next byte from the FDC. The CPU reads this from port 0x3FFD on the +3.
pkg/plus3fdc/upd765.go:419
↓ 30 callersMethodRender
()
pkg/ula/ula.go:624
↓ 30 callersMethodSetBC
SetBC writes the BC register pair.
pkg/z80/z80.go:591
↓ 30 callersFunctionannotateAddr
annotateAddr returns "$XXXX (NAME)" if a symbol exists for the address, else just "$XXXX". Lock-free fast path when no symbols are loaded; takes RLock
cmd/zx_go/debug.go:72
↓ 30 callersFunctionb2i
(b bool)
cmd/zx_go/debugger.go:68
↓ 30 callersMethodfetch16
()
pkg/z80/z80.go:3786
↓ 30 callersFunctionroutingTestSetup
Memory routing priority matrix tests (iter 188 — task #109). Verifies the documented priority ordering of read/write dispatch at $0000-$3FFF on Model
pkg/memory/routing_matrix_test.go:49
↓ 30 callersFunctionsynthROM
synthROM builds a 32K SAM ROM image whose first byte is DI (0xF3, the real ROM's reset entry) with recognisable markers at the start of each 16K half.
pkg/sam/rom_test.go:7
↓ 29 callersMethodBlockCount
BlockCount returns the number of blocks in the tape.
pkg/ula/tape.go:192
↓ 29 callersMethodEnabled
()
pkg/ula/ula.go:360
↓ 29 callersMethodSelectDrive
SelectDrive chooses the active drive (0..3).
pkg/betadisk/fdc.go:83
↓ 29 callersFunctioncreateTestROMs
Helper to create test ROMs
pkg/ula/ula_test.go:15
↓ 29 callersFunctionnewTestMemory
(t *testing.T, dir string)
pkg/disciple/disciple_test.go:32
↓ 28 callersFunctionNew
New returns a reset SAA1099 (silent until the master enable bit is set).
pkg/saa1099/saa1099.go:54
↓ 28 callersFunctionNewFromROM
NewFromROM validates + splits a raw 32 KB SAM ROM image and builds the machine.
pkg/sam/sam.go:88
↓ 28 callersMethodRegister
Register installs (or replaces) a handler for the given API number. Pass nil to remove a previously-registered handler.
pkg/next/esxdos/esxdos.go:238
↓ 28 callersMethodSetButton
SetButton presses or releases the given Kempston button bit: bit 0 is right-click, bit 1 is left-click. Pressed drives the bit LOW on the Kempston bus
pkg/kempmouse/kempmouse.go:79
↓ 28 callersMethodSetEnabled
SetEnabled toggles the divMMC global enable (FPGA i_en). When false the overlay never maps — o_divmmc_rom_en/ram_en are gated to 0 — regardless of CON
pkg/next/divmmc/divmmc.go:708
↓ 28 callersFunctioncleanupTestROMs
(dir string)
pkg/ula/ula_test.go:41
↓ 28 callersFunctioncrcUpdate
crcUpdate is the CRC-16-CCITT update used by the µPD765's address-mark and data-field CRCs. Polynomial 0x1021, initial value 0xFFFF.
pkg/plus3fdc/track.go:369
↓ 28 callersMethodexecuteDDInstruction
(opcode byte)
pkg/z80/z80.go:2916
↓ 28 callersFunctionsetFlagsNotTakenFor
setFlagsClear primes flags so all conditional jumps with negated flag conditions (NZ, NC, PO, P) take the FALL-THROUGH path. With F=0: NZ → Z=0 → ta
pkg/z80/timing_table_test.go:82
↓ 27 callersMethodRows
()
pkg/debugger/timetravel_widget.go:32
↓ 27 callersMethodSetEnabled
SetEnabled toggles tilemap rendering (NR$6B bit 7).
pkg/next/tilemap/tilemap.go:64
↓ 27 callersMethodSprite
Attr returns a pointer to the sprite at idx so callers can read or directly mutate attributes. nil for out-of-range.
pkg/next/sprite/sprite.go:388
↓ 27 callersFunctioncreateTestROMDir
(t *testing.T)
pkg/disciple/disciple_test.go:12
↓ 27 callersFunctionnewEmulator
(model roms.SpectrumModel)
cmd/zx_go/main.go:796
↓ 27 callersFunctionnewGatedPager
Entry-point gating tests. Verifies that the NR$B8 (entryPoints0) and NR$BB (entryPoints1) register bits correctly gate which PC values trigger the di
pkg/next/divmmc/entrypoint_gating_test.go:37
↓ 27 callersFunctionwireTestROMs
(t *testing.T)
pkg/next/wire_test.go:22
↓ 26 callersMethodHandlePortWrite
HandlePortWrite processes an OUT instruction targeting an IF1 port. Returns true if the address decoded to an IF1 port (so the caller stops dispatchin
pkg/if1/ula.go:121
↓ 26 callersMethodHandleRead
HandleRead is the memory.PeripheralRead hook. When paged in, 0x0000–0x1FFF reads come from divMMC ROM (or RAM bank 3 if MAPRAM is set — independent of
pkg/next/divmmc/divmmc.go:862
↓ 26 callersMethodInsert
Insert places the supplied cartridge into drive i, ejecting any existing cartridge first. Calls restart() at the end so the drive is in a consistent s
pkg/if1/microdrive.go:309
↓ 26 callersMethodPageMemoryPlus3
PageMemoryPlus3 handles the +3/+2A special paging via port 0x1FFD.
pkg/memory/memory.go:1976
↓ 26 callersFunctionPaletteColour
PaletteColour returns the RGBA for a 7-bit master-palette index.
pkg/sam/palette.go:25
↓ 26 callersMethodReadData
()
pkg/next/divmmc/divmmc.go:54
↓ 26 callersMethodSetPatternAddr
SetPatternAddr installs the pattern-RAM write cursor directly, bypassing the port $303B addressing (see SelectSlot) so callers (mainly tests) can targ
pkg/next/sprite/sprite.go:407
↓ 26 callersMethodSetTileMapBase
SetTileMapBase writes NR$6E.
pkg/next/tilemap/tilemap.go:94
↓ 26 callersMethodSetTilesBase
SetTilesBase writes NR$6F.
pkg/next/tilemap/tilemap.go:97
↓ 26 callersMethodSpeedMultiplier
SpeedMultiplier returns how much faster than the 3.5 MHz reference the CPU is currently running. Always 1 on non-Next models. On ModelNext, mirrors th
pkg/z80/z80.go:602
↓ 26 callersFunctionsetupFileAPI
setupFileAPI builds a dispatcher wired to a host-directory SD card mount populated with the given files, plus a fresh CPU and memMap. Returns those pl
pkg/next/esxdos/file_handlers_test.go:22
↓ 25 callersMethodError
()
pkg/testharness/screen.go:153
↓ 25 callersMethodFrame
Frame finalises the current frame and advances the cursor to the next one. The driver calls this once per emulator frame, AFTER running the CPU for In
pkg/rzx/playback.go:171
↓ 25 callersMethodGetROM
GetROM returns the Multiface ROM data
pkg/multiface/multiface.go:330
↓ 25 callersMethodHandleNMI
HandleNMI handles Non-Maskable Interrupt (red button press)
pkg/multiface/multiface.go:168
↓ 25 callersMethodMemory
Memory reads a single byte from the CPU's memory space at addr. ROM and RAM areas both work; the value reflects the current page mapping (so a 128K te
pkg/testharness/testharness.go:264
↓ 25 callersMethodNextDivMMC
NextDivMMC returns the currently-wired divMMC pager (nil if none). Exposed so tests and debug tools can poke at pager state without going through the
pkg/ula/ula.go:487
↓ 25 callersMethodSetConfigModeRAMPage
SetConfigModeRAMPage selects which 16 KB RAM page is visible at $0000-$3FFF when the Spectrum Next "configuration mode" memory map is active. The acti
pkg/memory/next.go:408
↓ 25 callersMethodcompressZ80
compressZ80 compresses data using Z80 RLE compression
pkg/snapshot/z80.go:290
↓ 25 callersFunctiondsResult
dsResult reads n result bytes, checking RQM=1/DIO=1/CB=1 before each, and that the FDC returns to the idle command state afterwards.
pkg/plus3fdc/datasheet_test.go:136
↓ 25 callersFunctionnewMemoryForMMUTest
(t *testing.T, model roms.SpectrumModel)
pkg/memory/mmu_test.go:38
↓ 25 callersFunctionnewTestMemory
pkg/memory uncovered-accessor coverage (iter 251). Wraps the 0%-coverage public funcs identified by `go test -cover`: AltROMReg / GetAltROM, ContendP
pkg/memory/accessors_test.go:17
↓ 25 callersMethodrenderFrame
renderFrame returns the current display image for any machine type. ZX80/ZX81 produce a fresh image per presented frame; the Spectrum/Next path render
cmd/zx_go/zx8x.go:59
↓ 24 callersMethodLength
Length returns the cartridge length in blocks.
pkg/microdrive/microdrive.go:75
↓ 24 callersMethodLoadTAP
LoadTAP loads a TAP file into the tape player.
pkg/ula/tape.go:70
↓ 24 callersFunctionNew
New constructs an idle mouse: cursor at 0,0 and no buttons pressed.
pkg/kempmouse/kempmouse.go:52
↓ 24 callersFunctionNew
New returns a compositor that reads Layer 2 through the given palette bank and Layer 2 reference. Transparency defaults to DefaultTransparency. Any pa
pkg/next/compositor/compositor.go:312
↓ 24 callersFunctionNew
New constructs a fresh IF1 with no ROM loaded and no cartridges inserted. Call LoadROM (or LoadROMBytes) before activating, and use the ULA's Bus to i
pkg/if1/if1.go:49
↓ 24 callersMethodSelected
()
pkg/ula/ula.go:400
↓ 24 callersMethodSetOnRead
SetOnRead installs a read-side computation for the given register. The callback's return value is what reads of the register observe; the backing stor
pkg/next/nextregs/dispatcher.go:235
↓ 24 callersFunctiondsNewFDC
dsNewFDC builds a DISCiPLE with a real (synthetic) GDOS ROM and an attached in-memory disk so the WD1772 has media to walk. The disk is a small MGT i
pkg/disciple/datasheet_test.go:65
↓ 23 callersMethodHandlePortWrite
HandlePortWrite handles OUT (0xFB). Updates drum state from elapsed cycles, writes pixels up to the current drum position, and starts a new line when
pkg/zxprinter/zxprinter.go:189
↓ 23 callersMethodIsROMPaged
IsROMPaged returns whether the Multiface ROM is paged in
pkg/multiface/multiface.go:310
↓ 23 callersMethodIsROMPaged
IsROMPaged reports whether the DISCiPLE ROM/RAM is paged in.
pkg/disciple/disciple.go:741
↓ 23 callersFunctionParse
Parse reads a .NEX file from any io.Reader. Returns an error (ErrBadMagic) if the magic does not match. Each loading-screen block set in ScreenFlags
pkg/next/nex/nex.go:162
← previousnext →101–200 of 5,503, ranked by callers