Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Zad z wejsciowki
- program tescior;
- #include("stdlib.hhf");
- static
- tablica: char[5,4];
- i: int32;
- j: int32;
- procedure wysw;
- static
- g: int32;
- h: int32;
- begin wysw;
- for(mov(0,g); g<5; inc(g)) do
- for(mov(0,h); h<4; inc(h)) do
- mov(g,EAX);
- shl(2, EAX);
- add(h,EAX);
- stdout.put(tablica[EAX]:4);
- endfor;
- mov(0,h);
- stdout.newln();
- endfor;
- end wysw;
- begin tescior;
- mov(65,BL);
- for(mov(0,i); i<5; inc(i)) do
- for(mov(0,j); j<4; inc(j)) do
- mov(i,EAX);
- shl(2, EAX);
- add(j,EAX);
- mov(BL, tablica[EAX]);
- add(1, BL);
- mov(0,EAX);
- endfor;
- mov(0,j);
- stdout.newln();
- endfor;
- wysw();
- end tescior;
- 2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement