Difference between revisions of "83Plus:Software:usb8x/Asm Interface/SetupLog"
From WikiTI
m (typo) |
(→Notes: errFeatureDisabled) |
||
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
== Notes == | == Notes == | ||
− | This entry point has no effect if logging has not been compiled into the usb8x binary. Each log entry is four bytes long and there is no bound checking. Make sure your log buffer wont overflow or the calculator will most likely crash. Make sure to call [[../DriverInit|DriverInit]] before calling SetupLog. | + | This entry point has no effect and will return errFeatureDisabled if logging has not been compiled into the usb8x binary. Each log entry is four bytes long and there is no bound checking. Make sure your log buffer wont overflow or the calculator will most likely crash. Make sure to call [[../DriverInit|DriverInit]] before calling SetupLog. |
== Example == | == Example == | ||
Line 26: | Line 26: | ||
== See Also == | == See Also == | ||
− | |||
* [[../LogCustom|LogCustom]] - Add a custom entry to the log file | * [[../LogCustom|LogCustom]] - Add a custom entry to the log file | ||
+ | * [[../StopLog|StopLog]] - Stop logging |
Latest revision as of 10:34, 4 October 2006
Synopsis
Name: SetupLog
Minimum usb8x version: 0.09
Starts logger
Inputs
- B: RAM page on which to store log
- HL: Address of log buffer
Outputs
None
Destroys
- IX
Notes
This entry point has no effect and will return errFeatureDisabled if logging has not been compiled into the usb8x binary. Each log entry is four bytes long and there is no bound checking. Make sure your log buffer wont overflow or the calculator will most likely crash. Make sure to call [[../DriverInit|DriverInit]] before calling SetupLog.
Example
U_CALL DriverInit ld hl,8000h ld b,82h U_CALL SetupLog
See Also
- [[../LogCustom|LogCustom]] - Add a custom entry to the log file
- [[../StopLog|StopLog]] - Stop logging