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
  • XHEXA : convert a number to hexadecimal and printit
  • 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

Keyboard

  • 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