change active display page?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
posman
Posts: 19
Joined: Fri Sep 05, 2008 12:55 pm

change active display page?

Post by posman »

Hi to all.

I have a question. Is there any way to select the active display page (text mode) in protected mode? (obviously without int 10H/ah=05h)
Or I must copy memory from other pages to 0xb8000?

Thank you :D
djmauretto
Member
Member
Posts: 116
Joined: Wed Oct 22, 2008 2:21 am
Location: Roma,Italy

Re: change active display page?

Post by djmauretto »

Ciao :D

Code: Select all

	MOV	DX,3D4H		
	MOV	AX,080CH	       ;Select page 1
	OUT	DX,AX		
	MOV	AX,000DH	
	OUT	DX,AX		
This select page 1 :wink:
for page 2,3,4,5,6,7 change the second line
in this way

Code: Select all

	MOV	AX,010CH	       ;Select page 2
	MOV	AX,180CH	       ;Select page 3
	MOV	AX,200CH	       ;Select page 4
	MOV	AX,280CH	       ;Select page 5
	MOV	AX,300CH	       ;Select page 6
	MOV	AX,380CH	       ;Select page 7
Ciao
Post Reply