Skip to content

Summary

Kernel calls are done with brk VALUE.

Some parameter are set into A,X,Y and some others ones needs to be set in Kernel zp memory.

Orix-sdk must be used in order to manage in the right way kernel calls

Args from commandline

  • XMAINARGS : get command line and build argv/argc
  • XGETARGV : get an argv from xmainargs struct

Numbers

  • XBINDX : convert a number to decimal
  • XDECIM : display a number to the output
  • XDECAY : Convert a string into a number (16 bits)

Memory

  • XMALLOC : allocate memory from main memory
  • XFREE : free memory

Files

Text mode

  • XSCROB : scroll from bottom to top
  • XSCROH : scroll from top to bottom

Graphic mode

Execute

  • EXEC : Execute binary