Public feed #377627

Cody Brocious

public text v1 · immutable
Raw Edit
·published 2007-03-01 22:00 UTC
rendered paste body
talk_init:
	cli
	mov edi, 0x000B8000
	
	mov eax, (80*25)-1
	
	talk_init_blankscreen_loop:
		mov word [ds:edi+eax*2], 0x0000
		
		dec ax
		ja talk_init_blankscreen_loop
	
	mov esi, talk_initialized
	jmp talk_write
	
	talk_initialized: db "Talk initialized", 0

talk_write:
	xor eax, eax
	mov cx, 7 << 8
	
	talk_write_loop:
		mov cl, byte [esi]
		mov word [ds:edi+eax*2], cx
		
		inc esi
		inc ax
		
		test cl, cl
		jnz talk_write_loop
	talk_write_loop_end:
		ret

talk_deinit:
	hlt