Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Piotr

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

[ASM]Write String only using BIOS

First, set starting address of text into DS:SI registers. Procedure writes text until null-character is met.
;-----------------------------------------------------------------------------;
;		WRITE_STRING(DS:SI Text)                                      ;
;-----------------------------------------------------------------------------;
;	Writes string from DS:SI until character #0 is met		      ;
Write_String:		
	mov ah, 0xE	
	xor bh, bh	
	mov bl, 0x7
.nextchar	
	lodsb		
	or al,al
	jz .return
	int 10h	
	jmp .nextchar
.return		
	ret	

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS