<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.specnext.dev/index.php?action=history&amp;feed=atom&amp;title=Example_-_Layer_2_esxdos</id>
	<title>Example - Layer 2 esxdos - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.specnext.dev/index.php?action=history&amp;feed=atom&amp;title=Example_-_Layer_2_esxdos"/>
	<link rel="alternate" type="text/html" href="http://wiki.specnext.dev/index.php?title=Example_-_Layer_2_esxdos&amp;action=history"/>
	<updated>2026-04-09T13:50:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>http://wiki.specnext.dev/index.php?title=Example_-_Layer_2_esxdos&amp;diff=164&amp;oldid=prev</id>
		<title>Specnext: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.specnext.dev/index.php?title=Example_-_Layer_2_esxdos&amp;diff=164&amp;oldid=prev"/>
		<updated>2019-04-14T09:59:53Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:59, 14 April 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key specnext_wiki:diff:1.41:old-163:rev-164 --&gt;
&lt;/table&gt;</summary>
		<author><name>Specnext</name></author>
	</entry>
	<entry>
		<id>http://wiki.specnext.dev/index.php?title=Example_-_Layer_2_esxdos&amp;diff=163&amp;oldid=prev</id>
		<title>wiki&gt;Tenebrous at 12:08, 12 September 2017</title>
		<link rel="alternate" type="text/html" href="http://wiki.specnext.dev/index.php?title=Example_-_Layer_2_esxdos&amp;diff=163&amp;oldid=prev"/>
		<updated>2017-09-12T12:08:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:08, 12 September 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Has example of::Layer 2]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Has example of::ESXDOS]] &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;M_GETSETDRV  equ $89&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;M_GETSETDRV  equ $89&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key specnext_wiki:diff:1.41:old-162:rev-163:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>wiki&gt;Tenebrous</name></author>
	</entry>
	<entry>
		<id>http://wiki.specnext.dev/index.php?title=Example_-_Layer_2_esxdos&amp;diff=162&amp;oldid=prev</id>
		<title>wiki&gt;Tenebrous: Created page with &quot;&lt;pre&gt; M_GETSETDRV  equ $89 F_OPEN       equ $9a F_CLOSE      equ $9b F_READ       equ $9d F_WRITE      equ $9e F_SEEK       equ $9f F_GET_DIR    equ $a8 F_SET_DIR    equ $a9...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.specnext.dev/index.php?title=Example_-_Layer_2_esxdos&amp;diff=162&amp;oldid=prev"/>
		<updated>2017-09-12T09:04:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; M_GETSETDRV  equ $89 F_OPEN       equ $9a F_CLOSE      equ $9b F_READ       equ $9d F_WRITE      equ $9e F_SEEK       equ $9f F_GET_DIR    equ $a8 F_SET_DIR    equ $a9...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
M_GETSETDRV  equ $89&lt;br /&gt;
F_OPEN       equ $9a&lt;br /&gt;
F_CLOSE      equ $9b&lt;br /&gt;
F_READ       equ $9d&lt;br /&gt;
F_WRITE      equ $9e&lt;br /&gt;
F_SEEK       equ $9f&lt;br /&gt;
F_GET_DIR    equ $a8&lt;br /&gt;
F_SET_DIR    equ $a9&lt;br /&gt;
&lt;br /&gt;
FA_READ      equ $01&lt;br /&gt;
FA_APPEND    equ $06&lt;br /&gt;
FA_OVERWRITE equ $0C&lt;br /&gt;
&lt;br /&gt;
ESXDOS      macro   command&lt;br /&gt;
        db  $cf&lt;br /&gt;
        db  command&lt;br /&gt;
endm&lt;br /&gt;
        &lt;br /&gt;
        org     32768&lt;br /&gt;
&lt;br /&gt;
start:&lt;br /&gt;
        ld      a, &amp;#039;*&amp;#039;          ; use current drive&lt;br /&gt;
        ld      b, FA_READ      ; set mode&lt;br /&gt;
        ld      ix, bmp         ; filename in ix&lt;br /&gt;
        &lt;br /&gt;
        ESXDOS  F_OPEN&lt;br /&gt;
        ret     c               ; return if failed&lt;br /&gt;
&lt;br /&gt;
        ld      (handle), a     ; store handle&lt;br /&gt;
&lt;br /&gt;
        ld      l, 0            ; seek from start of file&lt;br /&gt;
        ld      bc, 0&lt;br /&gt;
        ld      de, 1078        ; 54 byte header and 1024 palette&lt;br /&gt;
        ESXDOS  F_SEEK&lt;br /&gt;
&lt;br /&gt;
        ld      a, 3            ; enable write bit and make visible&lt;br /&gt;
&lt;br /&gt;
   writeLoop:&lt;br /&gt;
        push    af              ; store bitmask&lt;br /&gt;
        ld      bc, $123b       ; set port for writing&lt;br /&gt;
        out     (c), a&lt;br /&gt;
&lt;br /&gt;
        ld      a, (handle)     ; restore handle&lt;br /&gt;
&lt;br /&gt;
        ld      ix, $0          ; read 16k into addr 0&lt;br /&gt;
        ld      bc, $4000&lt;br /&gt;
        ESXDOS  F_READ&lt;br /&gt;
        &lt;br /&gt;
        pop     af              ; restore bit mask&lt;br /&gt;
        add     a, 64           ; next page&lt;br /&gt;
        jr      nc, writeLoop&lt;br /&gt;
&lt;br /&gt;
        ESXDOS  F_CLOSE         ; close file&lt;br /&gt;
&lt;br /&gt;
        ld      bc, $123b       ; reset write bit&lt;br /&gt;
        ld      a, 2            ; but keep visible&lt;br /&gt;
        out     (c), a&lt;br /&gt;
&lt;br /&gt;
        ret                     ; have a guess?&lt;br /&gt;
&lt;br /&gt;
handle: db      0&lt;br /&gt;
&lt;br /&gt;
bmp:    db      &amp;quot;test.bmp&amp;quot;  &lt;br /&gt;
&lt;br /&gt;
end     start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Tenebrous</name></author>
	</entry>
</feed>