hi all, i hope that someone can help me to sove this problem.
i didn't understand exactly the meaning of these code lines:
i need to know exactly what the bold numbers refer to so i will be able toCode:14. [B]char *ecran = (char *) (0xA0000000L);[/B] 15. 16. 17. char *virtuel = new unsigned char[64000L]; 18. 19. 20. 21. void setmode(unsigned int mode) 22. 23. { 24. 25. asm { 26. 27. MOV AX, [mode] 28. 29. INT 0x10 30. 31. }} 32. 33. 34. //CLS l'ecran. 35. 36. void clsvirt() 37. 38. {memset(virtuel,0,64000L);} 39. 40. 41. //RAM TO memoire video 42. 43. void cpyvirt() 44. 45. {memcpy(ecran,virtuel,64000L);} 46. 47. 48. //Ecran virtuel 49. 50. void pixel(int x, int y, unsigned char col) 51. 52. {virtuel[(y*320)+x] = col;} 53.
write a C code similar to these precedent lines . thanks



LinkBack URL
About LinkBacks



