shutdn.s 199 B

1234567891011121314
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .define _shutdn
  3. .sect .text
  4. _shutdn:
  5. mov ax,40
  6. push bp
  7. mov bp,sp
  8. mov cx,6(bp)
  9. mov bx,4(bp)
  10. call syscal
  11. mov (_errno),ax
  12. mov ax,-1
  13. pop bp
  14. ret