Search (using Google):  Web Karig

 

15 January 2004

(Revised 16 January 2004)

Fixing scroll_up

In my previous entry, I found a bug in my scrolling routine (scroll_up, introduced in "Hex dump, part 1"). I entered the wrong number of lines to scroll in my call to INT 10h, AH=06h. This code:

scroll_up:
		mov	bh, 7
		xor	cx, cx
		mov	dx, (24*0x100) + 79
		mov	ax, (0x0600 + 23)
		int	0x10
		ret

— should look like this:

scroll_up:
		mov	bh, 7
		xor	cx, cx
		mov	dx, (24*0x100) + 79
		mov	ax, (0x0600 + 1) ; pass 1 in AL
		int	0x10
		ret

Sorry about that. Here's the corrected version of the code for my previous entry.

Check the index for other entries.