well you cant because that way works vga 16 color mode, use 256 color mode instead or divide picture into 4 planes, first set port for 1 plan draw whole,then 2nd till 4th, for lfb you have to use vesa bios extension & protected mode, in real mode you have to switch memory banks if whole resolution data is biger than 64kb