Welcome! Log In Create A New Profile

Advanced

My screen attribute function fails

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
My screen attribute function fails
November 05, 2007 11:57AM
I want to write a generic clear screen function. Could anyone advise?

clrscr:	mov ax, 0600	;service scrolls up the screen
	mov bh,49	;hopefully light red foreground on blue background
	mov cx,00	;starting row/column
	mov dx,184	;ending row/column
	int 10		;call dos
	ret
Anonymous User
Re: My screen attribute function fails
November 05, 2007 09:47PM
clrscr:	mov ax,0600h	;service scrolls up the screen
	xor bx,bx
	mov bh,30h	;attempt to change the colour
	int 10h		;call dos and kiss your system good bye smiling smiley
	ret
Sorry, only registered users may post in this forum.

Click here to login