Commit graph

25 commits

Author SHA1 Message Date
JetSetIlly
393904abcb simplification of the memory sub-system
- preparation for adding 7800 emulation

cpu (6507) package uncoupled from upstream dependencies

- cpu no longer logs execution of KIL instruction
- randomisation of registers on startup can be handled by the called of
  the cpu's Reset() function
- address errors are filtered by an optional IsAddressError() function
  in the Memory interface implementation
- Error field removed from execution.Result type

all references to interface{} replaced with any
2024-11-23 14:56:37 +00:00
JetSetIlly
c0bcca6647 logger improvements
Log() function takes any type for the detail argument. More convenient
when logging errors or fmt.Stringer types. Logf() function is unaffected
by this change

permissions moved to base logger type. previously only available with
the central logger
2024-11-23 14:56:36 +00:00
JetSetIlly
a196b21a93 logging functions called with real env instances from the hardware package
logger package will no longer create new log entires for environments
other than the main emulation (or the logging.Always shim)
2024-04-30 17:48:46 +01:00
JetSetIlly
cd2a00d4ba logger.Log() and logger.Logf() now require a logger.Permission instance
the logger.Permission interface indicates whether the environment making
the logging request is allowed to create new log entries. the
environment.Environment type satisifies the Permission interface

logger.Allow is provided as a convienient way of indicating the the log
entry should always be created
2024-04-30 11:23:40 +01:00
JetSetIlly
f69aae5dbc improved log window scrolling 2023-07-10 16:20:43 +01:00
JetSetIlly
ecfdfd7444 mutliline log entries split into multiple entries
each entry is prefixed with the log tag
2023-07-10 15:33:14 +01:00
JetSetIlly
732c433cd2 tidied and simplified test package 2023-07-06 13:49:18 +01:00
JetSetIlly
5410a9b936 number of cores being used is added to log on startup 2023-01-05 22:20:19 +00:00
JetSetIlly
040695b4c7 added CappedWriter to test package
renamed test.Writer to test.CompareWriter
2022-11-01 13:01:35 +00:00
JetSetIlly
c767b1c1d5 simplified logger package. added BorrowLog() function 2022-01-19 18:18:55 +00:00
JetSetIlly
4be2106a76 colorised log window - colored in a similar way to the log/colorizer io.Writer 2021-12-14 21:29:06 +00:00
JetSetIlly
94e24e8881 colored log. log entries with multiple lines will be colored 2021-12-11 08:45:35 +00:00
JetSetIlly
7297389e38 logger package records timestamp of most recent log event
fixed Dirty flag for log window
2021-03-11 14:02:38 +00:00
JetSetIlly
d4f72c3b40 Logf() function in logger package
replaced all instances of logger.Log() that used fmt.Sprintf() to build
the details argument
2021-03-06 08:01:48 +00:00
JetSetIlly
9e159b97d8 added more linters to golangci-lint config
godot --fix has been run to make sure all comments end in a full-stop

specified nolint directive to apply to specific linter
2020-10-16 16:31:07 +01:00
JetSetIlly
504ad464a1 corrected regression output format
added ability to skip tests during a regression run by issuing an
interrupt signal (ctrl-c). two such signals within 250ms will stop the
run completely

corrected log regression. now makes sure log is clear before beginning
collation
2020-10-02 22:25:03 +01:00
JetSetIlly
3c7ea1953c adding entry to log will make sure the first part of the detail does not
duplicate the information in the tag
2020-09-28 22:16:59 +01:00
JetSetIlly
cf94511c6b WriteRecent() function in logger package
writes to io.Writer the log entries since the last call to WriteRecent()

implemented RECENT argument to LOG command
2020-09-22 19:21:36 +01:00
JetSetIlly
96b023d381 logging package functions now safe to call from different goroutines 2020-09-17 21:08:45 +01:00
JetSetIlly
12c0da1512 further fix race condition in lazy log copy 2020-09-16 10:59:31 +01:00
JetSetIlly
b76abf69f6 sketched in savekey support
-savekey argument added to play and debug mode

savekey window available in debug menu
2020-09-13 22:31:20 +01:00
JetSetIlly
fcd297e4b6 simple log window 2020-09-13 13:49:46 +01:00
JetSetIlly
b0522d598e "compress" repeated log entries 2020-08-16 11:21:36 +01:00
JetSetIlly
305112ea5b option to echo new log entries to stdout 2020-08-13 16:33:04 +01:00
JetSetIlly
a2aee094a0 added logger package
small changes to how terminal prompt is used

reworked terminal print styles for clarity
2020-08-03 23:24:39 +01:00