Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conorarmstrong/zx_go
/ functions
Functions
5,503 in github.com/conorarmstrong/zx_go
⨍
Functions
5,503
◇
Types & classes
458
↓ 38 callers
Function
dsCmd
Port helpers expressed in WD1772 register terms.
pkg/disciple/datasheet_test.go:117
↓ 37 callers
Method
Close
()
pkg/next/sdcard/sdcard.go:278
↓ 37 callers
Method
HandleKeyWithModifiers
HandleKeyWithModifiers processes a key with explicit modifier information.
pkg/keyboard/keyboard.go:65
↓ 37 callers
Function
NewBank
NewBank constructs a Bank with all eight palettes initialised to zeros.
pkg/next/palette/palette.go:139
↓ 37 callers
Method
SetVMPR
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 callers
Function
createZ80NTestCPU
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 callers
Function
dsCommand
--------------------------------------------------------------------------- Phase / handshake helpers. -----------------------------------------------
pkg/plus3fdc/datasheet_test.go:120
↓ 36 callers
Method
ContendPort
(port uint16)
pkg/z80/z80.go:333
↓ 36 callers
Method
DE
DE returns the DE register pair.
pkg/z80/z80.go:585
↓ 36 callers
Method
Drive
Drive returns a pointer to the i-th drive (0-based). Out-of-range indices return nil.
pkg/if1/microdrive.go:290
↓ 36 callers
Method
RunFrames
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 callers
Method
SetAltROMReg
(val byte)
pkg/memory/memory.go:357
↓ 36 callers
Function
createTestROMs
Helper to create test ROM files
pkg/memory/memory_test.go:12
↓ 35 callers
Method
ExecuteFrame
(tstatesPerFrame int)
pkg/z80/z80.go:752
↓ 35 callers
Method
Index
Index returns the current write cursor.
pkg/next/palette/palette.go:161
↓ 34 callers
Method
Mount
Mount attaches an image to a drive (0..3). A nil image ejects.
pkg/betadisk/fdc.go:67
↓ 34 callers
Function
New
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 callers
Function
New
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 callers
Method
WritePatternByte
WritePatternByte streams one byte to the current sprite-pattern cursor (port $005B, auto-incrementing).
pkg/ula/ula.go:308
↓ 34 callers
Function
activeAt
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 callers
Function
loadTestDisk
loadTestDisk parses the standard synthetic DSK and returns it.
pkg/plus3fdc/upd765_test.go:8
↓ 33 callers
Function
RedirectConfig
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 callers
Method
Show
()
pkg/debugger/debugger.go:363
↓ 33 callers
Method
ir
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 callers
Method
CPU
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 callers
Function
New
New returns a fresh DMA with no transfer queued.
pkg/next/dma/dma.go:148
↓ 32 callers
Function
New
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 callers
Method
RenderScanline
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 callers
Function
dsStatus
(d *Disciple)
pkg/disciple/datasheet_test.go:118
↓ 32 callers
Function
feed
(d *DMA, bytes []byte)
pkg/next/dma/dma_test.go:31
↓ 32 callers
Function
newRemoteWithCPU
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 callers
Function
NewDisciple
NewDisciple creates a new DISCiPLE interface.
pkg/disciple/disciple.go:150
↓ 31 callers
Method
SelectedSprite
SelectedSprite returns the current attribute-write cursor.
pkg/next/sprite/sprite.go:217
↓ 31 callers
Function
writeDisplay
writeDisplay sets a byte in the display page (page 0 at reset / VMPR 0).
pkg/sam/display_test.go:34
↓ 30 callers
Method
IsMMUOverridden
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 callers
Function
NewFDC
NewFDC returns an idle controller with no disks mounted.
pkg/betadisk/fdc.go:51
↓ 30 callers
Method
ReadData
ReadData returns the next byte from the FDC. The CPU reads this from port 0x3FFD on the +3.
pkg/plus3fdc/upd765.go:419
↓ 30 callers
Method
Render
()
pkg/ula/ula.go:624
↓ 30 callers
Method
SetBC
SetBC writes the BC register pair.
pkg/z80/z80.go:591
↓ 30 callers
Function
annotateAddr
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 callers
Function
b2i
(b bool)
cmd/zx_go/debugger.go:68
↓ 30 callers
Method
fetch16
()
pkg/z80/z80.go:3786
↓ 30 callers
Function
routingTestSetup
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 callers
Function
synthROM
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 callers
Method
BlockCount
BlockCount returns the number of blocks in the tape.
pkg/ula/tape.go:192
↓ 29 callers
Method
Enabled
()
pkg/ula/ula.go:360
↓ 29 callers
Method
SelectDrive
SelectDrive chooses the active drive (0..3).
pkg/betadisk/fdc.go:83
↓ 29 callers
Function
createTestROMs
Helper to create test ROMs
pkg/ula/ula_test.go:15
↓ 29 callers
Function
newTestMemory
(t *testing.T, dir string)
pkg/disciple/disciple_test.go:32
↓ 28 callers
Function
New
New returns a reset SAA1099 (silent until the master enable bit is set).
pkg/saa1099/saa1099.go:54
↓ 28 callers
Function
NewFromROM
NewFromROM validates + splits a raw 32 KB SAM ROM image and builds the machine.
pkg/sam/sam.go:88
↓ 28 callers
Method
Register
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 callers
Method
SetButton
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 callers
Method
SetEnabled
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 callers
Function
cleanupTestROMs
(dir string)
pkg/ula/ula_test.go:41
↓ 28 callers
Function
crcUpdate
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 callers
Method
executeDDInstruction
(opcode byte)
pkg/z80/z80.go:2916
↓ 28 callers
Function
setFlagsNotTakenFor
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 callers
Method
Rows
()
pkg/debugger/timetravel_widget.go:32
↓ 27 callers
Method
SetEnabled
SetEnabled toggles tilemap rendering (NR$6B bit 7).
pkg/next/tilemap/tilemap.go:64
↓ 27 callers
Method
Sprite
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 callers
Function
createTestROMDir
(t *testing.T)
pkg/disciple/disciple_test.go:12
↓ 27 callers
Function
newEmulator
(model roms.SpectrumModel)
cmd/zx_go/main.go:796
↓ 27 callers
Function
newGatedPager
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 callers
Function
wireTestROMs
(t *testing.T)
pkg/next/wire_test.go:22
↓ 26 callers
Method
HandlePortWrite
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 callers
Method
HandleRead
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 callers
Method
Insert
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 callers
Method
PageMemoryPlus3
PageMemoryPlus3 handles the +3/+2A special paging via port 0x1FFD.
pkg/memory/memory.go:1976
↓ 26 callers
Function
PaletteColour
PaletteColour returns the RGBA for a 7-bit master-palette index.
pkg/sam/palette.go:25
↓ 26 callers
Method
ReadData
()
pkg/next/divmmc/divmmc.go:54
↓ 26 callers
Method
SetPatternAddr
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 callers
Method
SetTileMapBase
SetTileMapBase writes NR$6E.
pkg/next/tilemap/tilemap.go:94
↓ 26 callers
Method
SetTilesBase
SetTilesBase writes NR$6F.
pkg/next/tilemap/tilemap.go:97
↓ 26 callers
Method
SpeedMultiplier
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 callers
Function
setupFileAPI
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 callers
Method
Error
()
pkg/testharness/screen.go:153
↓ 25 callers
Method
Frame
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 callers
Method
GetROM
GetROM returns the Multiface ROM data
pkg/multiface/multiface.go:330
↓ 25 callers
Method
HandleNMI
HandleNMI handles Non-Maskable Interrupt (red button press)
pkg/multiface/multiface.go:168
↓ 25 callers
Method
Memory
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 callers
Method
NextDivMMC
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 callers
Method
SetConfigModeRAMPage
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 callers
Method
compressZ80
compressZ80 compresses data using Z80 RLE compression
pkg/snapshot/z80.go:290
↓ 25 callers
Function
dsResult
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 callers
Function
newMemoryForMMUTest
(t *testing.T, model roms.SpectrumModel)
pkg/memory/mmu_test.go:38
↓ 25 callers
Function
newTestMemory
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 callers
Method
renderFrame
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 callers
Method
Length
Length returns the cartridge length in blocks.
pkg/microdrive/microdrive.go:75
↓ 24 callers
Method
LoadTAP
LoadTAP loads a TAP file into the tape player.
pkg/ula/tape.go:70
↓ 24 callers
Function
New
New constructs an idle mouse: cursor at 0,0 and no buttons pressed.
pkg/kempmouse/kempmouse.go:52
↓ 24 callers
Function
New
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 callers
Function
New
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 callers
Method
Selected
()
pkg/ula/ula.go:400
↓ 24 callers
Method
SetOnRead
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 callers
Function
dsNewFDC
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 callers
Method
HandlePortWrite
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 callers
Method
IsROMPaged
IsROMPaged returns whether the Multiface ROM is paged in
pkg/multiface/multiface.go:310
↓ 23 callers
Method
IsROMPaged
IsROMPaged reports whether the DISCiPLE ROM/RAM is paged in.
pkg/disciple/disciple.go:741
↓ 23 callers
Function
Parse
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
← previous
next →
101–200 of 5,503, ranked by callers