Commit graph

28 commits

Author SHA1 Message Date
steve
35e31cccb7 o errors
- refined error package
2020-01-05 18:58:28 +00:00
steve
ec173372c9 o gopher2600
- "mode PLAY" is now a synonym for "mode RUN"

o chip memory
	- implemented PeriphBus interface
	- controller now uses PeriphBus interface
	- panel now uses PeriphBus interface

o hardware
	- consolidated controller and panel packages into peripheral
		package

o assert
	- added GetGoRoutineID function to help with debugging/testing
	- not for general use. it's too slow and in bad taste
2020-01-05 18:58:28 +00:00
steve
d5895261bd o television
- refactored SDL television
	- implemented close window for SDL windows
	- backquote key toggles screen-mode (debug guides on/off)
	- window resizes to fit screen-mode
	- sketched in mouse support for SDL implementation
	   - the intention here is to be able to select breakpoints
	     with the mouse

o concurrency
	- made sure shared memory is locked for all go routines

o errors
	- reworked gopher errors a little
2020-01-05 18:58:28 +00:00
steve
c7ee93312e o debugger
- initisalisation script is now an argument to debugger.Start()
	rather than calling from gopher2600
2020-01-05 18:58:27 +00:00
steve
4e9f48630b o debugger
- added SYMBOL command. searches for address label, returns
		address
	- fixed disassembly output for ROMs without a symbol file
	- improved disassembly a little bit. now attempts to disassemble
		entire of cartridge memory and doesn't bail out of loop
		at first sign of an unimplemented instruction. cpu
		package now returns a ProgramCounterCycled error when
		program counter reads past end of memory

o video
	- tweaked horizontal movement
	- fixed player vertical delay (tested with Pitfall ROM)
	- fixed ball enable detection (0x02 not 0x20. doh!)

o cpu
	- implemented LAX command
	- renamed 3 byte NOP to DOP
	- added program counter information to unimplemented instruction
		error

o gopher 2600
	- error message now returned and displayed in run mode

o
2020-01-05 18:58:27 +00:00
steve
6957a52adc o controller
- added basic controller support
	- uses third-party package:
		- github.com/splace/joysticks
2020-01-05 18:58:27 +00:00
steve
1a59db31d1 o implemented disassembly
- symbol loading
	- printing of disassembly now uses symbols (if available)
	- run mode disasm now works as expected

o errors
	- added GopherError - started to replace calls to fmt.Errorf()
	with instantiations of GopherError

o debugger
	- prompt now shows (brief) disassembly of next instruction to be
	executed
2020-01-05 18:58:27 +00:00
steve
21dbb029f4 o debugger
- improved command parsing, although still lacking in required
	features
	- clear/listing of breaks/traps now handled by CLEAR and LIST
	commands
2020-01-05 18:58:27 +00:00
steve
fb1a07d803 o video
- ball, missile and player sprite types added - tidy up of
	sprite class
	- properties moved from video type to the correct sprite type
	- delayCounter now renamed and reworked as future. it was felt
	that needlessly conflicted with the VCS concept of vertical
	delay
	- completed horizontal movement for all sprite types

o correction of assorted linting errors
2020-01-05 18:58:27 +00:00
steve
6f2ac8efd1 o cpu
- fixed bug caused by RMW version of instructions working on the
	accumulator rather than the memory value via a temporary
	register

o debugger / traps
	- fixed segfault caused by attempting to set a trap for illegal target

o video / playfield
	- fixed bug when writing value to playfield
	- clarified names and comments
	- fixed write delay for playfield registers
2020-01-05 18:58:27 +00:00
steve
b9e3dd9617 o debugger
- debugger can be launched without specifying a cartridge
	- tidied up commands package
	- sketched in filename tab-completion
	- corrected tab-completion comments
2020-01-05 18:58:27 +00:00
steve
3739f89202 o fixed tabcompletion
- panic when list of options is empty

o debugger
	- debugger now initialises with plain terminal
	- other terminals are still specified on debugger.Start()
	- this fixes a bug caused when trying to print error messages
	from a startup script
	- conversion of user input to upper cause is now more selective
	- SCRIPT command added
2020-01-05 18:58:27 +00:00
steve
9d3d9d10ac o debugger
- refactored user interface types and functions - now in ui
	package
	- sketched in tab completion
2020-01-05 18:58:27 +00:00
steve
b5cf097363 o colorterm
- implemented cursor navigation
	- implemented history
	- ansi source file moved into it's own package
	- created easyterm - wraps termios with additional functions
2020-01-05 18:58:26 +00:00
steve
480c60d4f9 o debugger
- implemented traps
	- tidied up breakpoint implementations

o tia / video
	- first pass at playfield rendering
2020-01-05 18:58:26 +00:00
steve
de3c30beda o gopher2600
- cartridge file now required on command line when launching

*** versions prior to this used literal strings to specify the
cartridge, which may or may not exist if previous versions are checked
out of the repository
2020-01-05 18:58:26 +00:00
steve
c19f7c8c39 o video
- completed horizontal movement

o gopher2600
  - added new mode TVFPS, to test perfomance with the SDL TV window
    active
2020-01-05 18:58:26 +00:00
steve
f06d958487 o vcs
- video stepping doesn't callback to debugger when CPU isn't ready (like cpu
		stepping)
	- RIOT now only runs once per CPU cycle, instead of once per video cycle
		timer now runs as expected

o tia/video
	- tidied up sprite types for easier debugging/thinking

o television
	- MachineInfo* now reports on whether tv is performing out-of-spec

o sdl tv
	- added overlays
		- cursor
		- screen boundary
		- pixel guide

o debugger
	- replaced strings.Split(s, " ") and a small amount of post-processing,
		with a single call to strings.Fields() - I've just discovered it.
	- added STEPMODE command
	- STEPMODE VIDEO will now print video step result (what it can of instruction
		result)
	- implemented script loading and running - no SCRIPT command just yet though
		this is intended for initialisation for the time being
	- added VERBOSITY and DEBUGGERSTATE commands

o cpu
	- better, more complete, printing for instruction result

o sprite/drawSig
  - counting drawSig the wrong way, causing pixels in sprites to be
    flipped horizontally
2020-01-05 18:58:26 +00:00
steve
1916a556fe o color terminal
- improved ansi color
  - moved ui package to debugger/colorterm

o debugger
  - replaced SHOW and HIDE commands with DISPLAY command
  - DISPLAY command takes optional argument OFF
  - replaced CLEAR BREAKS command with BREAK CLEAR

o sprites
  - improved MachineInfo() messages
  - ball sprite now ticks/pixels correctly

o debugger/breakpoints
  - tidied up breakpoints implementation
2020-01-05 18:58:26 +00:00
steve
8248a52735 o debugger/ui
- debugger now expects a type that satisfies UI interface

o tia/video
  - implemented MachineInfoTerse() for sprite types
2020-01-05 18:58:26 +00:00
steve
ac3dd75b18 o debugger
- reworked print routines so that they are more easily replacable
  - added print profiles, to allow formatting of output

o ui
  - implemented basic color terminal

o tia
  - reworked so that tia sub-components are accessible from outside of
    tia package - useful for the debugger
2020-01-05 18:58:26 +00:00
steve
09f1e21149 o debugger
- implemented video stepping
  - STEP command now has optional argument CPU or VIDEO
  - subsequent calls to STEP (or implied STEP) will default to previous
    selection of STEP CPU or STEP VIDEO

o changed vcs.go and gopher.go to reflect changes required by video
  stepping implementation

o debugger
  - ONBREAK now called ONHALT
  - ONHALT command sequence can now be specified
2020-01-05 18:58:26 +00:00
steve
b18a329706 o SDL TV
- first version - simply to get something onto the screen
  - embeds headlessTV

o HeadlessTV
  - implemented TVState type for frameNum, scanline and horizPos fields
  - TVState satisfies BreakTarger interface in the debugger

o Breakpoints
  - altered breakpoint to account for changes made for TVState

o Debugger
  - implemented SHOW and HIDE

o clarified commentary
2020-01-05 18:58:26 +00:00
steve
bd1ca32c11 o tia/video
- implemented video in part
  - implemented sprite framework - ball sprite completed
  - reorganised existing tia code in repsonse to new code

o debugger
  - tweaked existing commands and how they work
2020-01-05 18:58:26 +00:00
steve
5496f7277c o television
- implemented headless TV

o debugger
  - VERBOSE is now called HALT - as in "auto command halt"
  - no way of setting what command(s) to run on halt just yet
  - a real verbose command that flips between verbose and terse printing
    of machine state

o polycounter
  - separated Reset() and SetResetPattern()
2020-01-05 18:58:26 +00:00
steve
74c80421f3 o tia
- filled in more of the TIA implementation
  - RSYNC works correctly
  - polycounter and other components altered as required

o television
  - sketched in television interface
  - implemented dummy television

o debugger
  - syntax normalisation -- allowing variations in how we specify hex numbers
  - added VERBOSE command

o renamed mflib package to assert
  - Assert function renamed to CheckValueVCS
2020-01-05 18:58:26 +00:00
steve
04f4d34ca7 o tia
- began implementation of tia
  - implemented polycounter more or less fully

o polished up error handling
2020-01-05 18:58:26 +00:00
steve
8105706f7c o debugger
- added MEMMAP command

o tidy up
  - changed pointer recievers to value receivers when the method does
    not mutate the type instance
  - I'm not sure about this but I like if for now - this way it is
    clearer, to me at least, which methods mutate and which don't

o memory
  - small reorganisation of memory package in preparation for
    implementation of the video chips

o renamed project to "gopher2600"
2020-01-05 18:58:26 +00:00
Renamed from headless.go (Browse further)