Sphinx‎ > ‎Documentation‎ > ‎Reference‎ > ‎

isxtv

Isxtv is a lightweight interface object between Sphinx-aware programs and the Sphinx TV driver (sxtv).

Note that any object in a program's object hierarchy can use isxtv, not just the top object. This allows output from anywhere in a program and can be very useful.

Spin interface methods

  • PUB GetBasepin -- returns the video base pin.
  • PUB str(stringptr) -- prints the null-terminated string at address stringptr.
  • PUB dec(value) -- prints value as a decimal number.
  • PUB hex(value, digits) -- prints value as a hexadecimal number of digits digits.
  • PUB bin(value, digits) -- prints value as a binary number of digits bits.
  • PUB out(c) -- prints the character c. $08 is interpreted as backspace, $0d is interpreted as a carriage return.

Example

' A simple demonstration of isxtv
' Note: Sphinx-aware programs don't need clock settings
obj
  term : "isxtv"
  f: "sxfile"
pub Main
  term.str( string("Howdy") )
  term.out( 13 )
  ' Our work here is done. Now back to the command shell:
  f.Open( string("sphinx.bin"), "R" )
  f.Execute( 0 )