letscheat1234

Graphics Builtin

Nov 10th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1.  
  2.  
  3. 119 |
  4. Page
  5.  
  6. INT 21HRET
  7. DISP ENDPCONV PROC NEARPUBLIC CONV
  8. MOV AH,00HMOV BH,0AHDIV BHRET
  9. CONV ENDPCODE ENDSEND STARTOUTPUT:
  10. THE CURRENT TIME IS: 23:37:23.85
  11.  
  12.  
  13. 120 |
  14. Page
  15.  
  16. 41.TO DISPLAY CURRENT DATE.
  17. DATA SEGMENT
  18. MESS1 DB 0AH,0DH,'THE CURRENT DATE IS:'$'
  19. DATA ENDSCODE SEGMENT
  20. ASSUME CS:CODE,DS:DATASTART:MOV AX,DATAMOV DS,AXLEA DX,MESS1MOV AH,09HINT 21HMOV AH,2AHINT 21HMOV SI,CXMOV BL,DHMOV BH,DLCALL DISPMOV DL,'-'MOV AH,06HINT 21HMOV BL,BHCALL DISPMOV DL,'-'MOV AH,06HINT 21HXOR DX,DXMOV AX,SIMOV CX,0064HDIV CXMOV DH,DLMOV BL,ALCALL DISPMOV BL,DHMOV AH,4CHINT 21H
  21. CONV PROC NEARPUBLIC CONV
  22. MOV CL,04HXOR AH,AH
  23.  
  24.  
  25. 121 |
  26. Page
  27.  
  28. MOV AL,BLMOV BL,0AHDIV BLSHL AL,CLADD AL,AHDAAMOV BL,ALRET
  29. CONV ENDPDISP PROC NEARPUBLIC DISP
  30. MOV CL,04HCALL CONVMOV DL,BLSHR DL,CLADD DL,30HMOV AH,06HINT 21HAND BL,0FHADD BL,30HMOV DL,BLMOV AH,06HINT 21HRET
  31. DISP ENDPCODE ENDSEND START
  32. OUTPUT:
  33. THE CURRENT DATE IS: MON 07/11/2011
  34.  
  35. NAME FUNCTION SYNTAX
  36. 1.arc arc draws a circular arc. void far arc(int x,int y,int stangle,int endangle,int radius);
  37. 2.circle circle draws a circle. void far circle(int x,int y,int radius);
  38. 3.bar draws a bar. void far bar(int left,int top,int right,int bottom);
  39. 4.closegraph shutdown the graphicsystem. void far closegraph(void);
  40. 5.ellipse ellipse draws an ellipticalarc. void far ellipse(int x,int y,int stangle,int endangle,int xradius,int yradius);
  41. 6.floodfill floodfills a bound region. void far floodfill(int x,int y,int radius);
  42. 7.getbkcolor getbkcolor returns the current back ground color. int far getbkcolor(void);
  43. 8.getgraphmode getgraphmode returns the current graphic mode. int far getgraphmode(void);
  44. 9.getmaxcolor returns the maximum color value. int far getmaxcolor(void);
  45. 10.getmaxx returns maximum x screen coordinate. int far gatmaxx(void);
  46. 11.getmaxy returns maximum yscreen coordinate. int far getmaxy(void);
  47. 12.gety returns the current positions y coordinate. int far gety(viod);
  48. 13.getx returns the current positions xcoordinate. int far getx(void);
  49. 14.detectgraph determaines graphic driver and mode to use by checking the hardware. void far detectgraph(int far *graphdriver,int far *graphmode);
  50. 15.fillellipse fillellipse draws and fill an ellipse. void far fillellipse(int x,int y,int xradius,int yradius);
  51. 16.getarccoords gets coordinate of the last call to arc. void far getarccoords(struct arccoords type far *arccoords);
  52. 17.getcolor returns the current drawing color. int far getcolor(void);
  53. 18.getfillpattern copies a userefined fillpattern into memory. void far getfillpattern(char far *pattern);
  54. 19.getmaxmode returns maximum graphics mode number for current driver. int far getmaxmode(void);
  55. 20.drawpoly draws the outline of a polygon. void far drawpoly(int numpoints,int far *polypoints);
  56. 21.fillpoly fillpoly draws and fills a polygon. void far fillpoly(int numpoints,int *polypoints);
  57. 22.clearviewpoint clear the current view port. void far clearviewport(void);
  58. 23.getpixel getpixel gets the color of a specified pixel. unsigned far getpixel(int x,int y);
  59. 24.grapherrormsg returns a pointer to an error message string. char *far grapherrormsg(int errorcode);
  60. 25.lineto draws a line from th current position cp to (x,y). void far lineto(int x,int y);
  61. 26.line draws a line between two specified points. void far line(int x1,int y1,int x2,int y2);
  62. 27.initgraph initialize the graphicsystem. void far initgraph(int far *graphdrive,int far *graphmode,int far *pathtodrive);
  63. 28.rectangle draws a rectangle. void far rectangle(int left,int top,int right,int bottom);
  64. 29.putpixel plots a pixel at a specified point. void far putpixel(int x,int y,int color);
  65. 30.imagesize returns the number of bytes required to store a bit image. Unsigned far imagesize(int left,int top,int right,int bottom);
  66. 31.moveto Moves the cp to (x,y). void far moveto(int x,int y);
  67. 32.setcolor sets the current drawing color. void far setcolor(int color);
  68. 33.setgraphmode sets the system to graphics mode,clear the screen. void far setgraphmode(int mode);
  69. 34.textwidth returns the width of string in pixels. int far textwidth(char far *textstring);
  70. 35.textheight returns the height of string in pixels. int far textheight(char far *textstring);
Add Comment
Please, Sign In to add comment