Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //multiple string test
  2. dcolor white;
  3.  
  4. mov #text_pos.y,0;
  5. mov #num_pos.y,0;
  6.  
  7. mov ecx,8; //loop 8 times
  8. mov edx,-1; // start from 0
  9. write_line:
  10.     inc edx;
  11.     in eax,edx;
  12.  
  13.     add #text_pos.y,25;
  14.     add #num_pos.y,25;
  15.  
  16.     dwrite text_pos,str;
  17.     dwritei num_pos,eax;
  18.  
  19. loop write_line;
  20.  
  21. dexit;
  22.  
  23. vec2f text_pos,100,0;
  24. vec2f num_pos,250,0;
  25. color white, 255, 255, 255, 255;
  26. str:
  27.     db 'Port: ',0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement