<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: bios code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 28 Aug 2008 15:04:45 GMT</pubDate>
    <description>DZone Snippets: bios code</description>
    <item>
      <title>[ASM]Write String only using BIOS</title>
      <link>http://snippets.dzone.com/posts/show/3129</link>
      <description>First, set starting address of text into DS:SI registers. Procedure writes text until null-character is met.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;;-----------------------------------------------------------------------------;&lt;br /&gt;;		WRITE_STRING(DS:SI Text)                                      ;&lt;br /&gt;;-----------------------------------------------------------------------------;&lt;br /&gt;;	Writes string from DS:SI until character #0 is met		      ;&lt;br /&gt;Write_String:		&lt;br /&gt;	mov ah, 0xE	&lt;br /&gt;	xor bh, bh	&lt;br /&gt;	mov bl, 0x7&lt;br /&gt;.nextchar	&lt;br /&gt;	lodsb		&lt;br /&gt;	or al,al&lt;br /&gt;	jz .return&lt;br /&gt;	int 10h	&lt;br /&gt;	jmp .nextchar&lt;br /&gt;.return		&lt;br /&gt;	ret	&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 12 Dec 2006 02:02:47 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3129</guid>
      <author>darktemplar (Piotr)</author>
    </item>
  </channel>
</rss>
