Rules for assembly code

  • Macro in ca65 must be written to uppercase
  • use userzp label to get space from zero page. You can have at least 10 bytes from userzp in order to use zp
  • Allocate with XMALLOC your memory. In that case, in the future, it will be easier to start multithreading.
  • use ‘XFREE‘ to free memory
  • userzp space will be managed by kernel when multithreading occurs
  • use macro from kernel