1 Replies - 3183 Views - Last Post: 01 December 2009 - 04:05 AM

#1 born2c0de   User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 187
  • View blog
  • Posts: 4,673
  • Joined: 26-November 04

Clearing the Screen in 16-bit x86 Assembly

Posted 14 October 2007 - 12:27 PM

Description: This Block of Code clears the Screen of the Console.
	MOV AX , 600h       ; service plus blank code
	MOV BX , 700h        ; bh = attrib byte
	XOR CX , CX            ; upper left corner of window

; Positions cursor to lower right corner of window
	MOV AX , 18h
	SHL AX , 8h
	ADD AX , 4Fh
	MOV DX , AX	
	INT 10h

	MOV AX , 200h    ; cursor position service
	XOR BX , BX       ; display page number
	XOR DX , DX      ; row and column position
	INT 10h             ; CLEAR THE SCREEN


Is This A Good Question/Topic? 0
  • +

Replies To: Clearing the Screen in 16-bit x86 Assembly

#2 nathanpc   User is offline

  • SCIENCE!
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Clearing the Screen in 16-bit x86 Assembly

Posted 01 December 2009 - 04:05 AM

Thanks very much! I was needing this for my project ;)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1