STRLEN.b 470 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Input file : ./tests/inputs/STRLEN.EXE
  3. * File type : EXE
  4. */
  5. #include "dcc.h"
  6. void proc_1 (int arg0)
  7. /* Takes 2 bytes of parameters.
  8. * High-level language prologue code.
  9. * C calling convention.
  10. */
  11. {
  12. int loc1; /* si */
  13. loc1 = 0;
  14. arg0 = (arg0 + 1);
  15. while ((*arg0 != 0)) {
  16. loc1 = (loc1 + 1);
  17. arg0 = (arg0 + 1);
  18. } /* end of while */
  19. }
  20. void main ()
  21. /* Takes no parameters.
  22. */
  23. {
  24. int loc1;
  25. loc1 = 404;
  26. proc_1 (loc1);
  27. }