Advertisement
Paszta

wejsciowka

Dec 17th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. 1. Zad z wejsciowki
  2.  
  3. program tescior;
  4. #include("stdlib.hhf");
  5. static
  6. tablica: char[5,4];
  7. i: int32;
  8. j: int32;
  9.  
  10. procedure wysw;
  11. static
  12. g: int32;
  13. h: int32;
  14. begin wysw;
  15.  
  16. for(mov(0,g); g<5; inc(g)) do
  17. for(mov(0,h); h<4; inc(h)) do
  18. mov(g,EAX);
  19. shl(2, EAX);
  20. add(h,EAX);
  21. stdout.put(tablica[EAX]:4);
  22. endfor;
  23. mov(0,h);
  24. stdout.newln();
  25. endfor;
  26.  
  27. end wysw;
  28.  
  29. begin tescior;
  30. mov(65,BL);
  31.  
  32. for(mov(0,i); i<5; inc(i)) do
  33. for(mov(0,j); j<4; inc(j)) do
  34. mov(i,EAX);
  35. shl(2, EAX);
  36. add(j,EAX);
  37. mov(BL, tablica[EAX]);
  38. add(1, BL);
  39. mov(0,EAX);
  40. endfor;
  41. mov(0,j);
  42. stdout.newln();
  43. endfor;
  44.  
  45. wysw();
  46.  
  47. end tescior;
  48.  
  49. 2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement