0

I want to know how to draw a particular pixel on screen at given row, col in assembly in 16 bit real mode for boot sector? Also how can I know width and height of screen?

Rahul
  • 47
  • 4
  • To draw single pixels, you'd have to switch the screen to graphics mode, not text mode (the default when a legacy-BIOS MBR bootloader boots.) – Peter Cordes May 02 '21 at 07:27
  • Use [INT 10h](http://www.ctyme.com/intr/rb-0069.htm) for a switch to graphic videomode. Arrangement of each mode is described in the table at this link. For instance, the usual mode 13h (320*200) is set by `AX=0013h; INT 10h`, videomemory starts at `A000:0000`, addressing the top-left pixel. – vitsoft May 02 '21 at 10:25

0 Answers0