chdir.s 178 B

1234567891011121314
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .sect .text
  3. chdir = 12
  4. .define _chdir
  5. .define cerror
  6. _chdir:
  7. .data2 0x0000
  8. chmk $chdir
  9. bcc 1f
  10. jmp cerror
  11. 1:
  12. clrl r0
  13. ret