83Plus:Software:usb8x/Asm Interface/SetupLog

From WikiTI
Revision as of 10:34, 4 October 2006 by Dan Englender (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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