Skip to content


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


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


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


Text mode

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

Graphic mode



  • XRDW0 : Get a char from keyboard (wait for a key)
  • XRD0 : check if a char is typed on the keyboard (continue execution)

Last update: 2022-11-23