<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wikiti.brandonw.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=208.181.90.67</id>
		<title>WikiTI - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=208.181.90.67"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Special:Contributions/208.181.90.67"/>
		<updated>2026-04-05T23:11:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83:ROMCalls:400C</id>
		<title>83:ROMCalls:400C</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83:ROMCalls:400C"/>
				<updated>2005-04-13T21:22:27Z</updated>
		
		<summary type="html">&lt;p&gt;208.181.90.67: Capitalized registers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:83:ROMCalls:By_Name:Utility|DivHLByA]][[Category:83:ROMCalls:By_Name|DivHLByA]][[Category:83:ROMCalls:By_Address|400C - DivHLByA]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Official Name:''' DivHLByA&lt;br /&gt;
&lt;br /&gt;
'''Call Address:''' 400C&lt;br /&gt;
&lt;br /&gt;
Divides HL by A.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* HL = dividend&lt;br /&gt;
* A = devisor&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* HL = quotient&lt;br /&gt;
* A = remainder&lt;br /&gt;
* BC, DE preserved&lt;br /&gt;
* F destroyed&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
See also [[83:ROMCalls:4008|DivHLBy10]].&lt;/div&gt;</summary>
		<author><name>208.181.90.67</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83:ROMCalls:4008</id>
		<title>83:ROMCalls:4008</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83:ROMCalls:4008"/>
				<updated>2005-04-13T21:21:28Z</updated>
		
		<summary type="html">&lt;p&gt;208.181.90.67: Capitalized registers, added obelus&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:83:ROMCalls:By_Name:Utility|DivHLBy10]][[Category:83:ROMCalls:By_Name|DivHLBy10]][[Category:83:ROMCalls:By_Address|4008 - DivHLBy10]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Official Name:''' DivHLBy10&lt;br /&gt;
&lt;br /&gt;
'''Call Address:''' 4008&lt;br /&gt;
&lt;br /&gt;
Divides HL by 10.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* HL = number&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* HL = HL &amp;amp;divide; 10&lt;br /&gt;
* A = remainder&lt;br /&gt;
* BC, DE preserved&lt;br /&gt;
* F destroyed&lt;/div&gt;</summary>
		<author><name>208.181.90.67</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:RAM:97A6</id>
		<title>83Plus:RAM:97A6</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:RAM:97A6"/>
				<updated>2005-04-08T22:16:42Z</updated>
		
		<summary type="html">&lt;p&gt;208.181.90.67: Same thing as for &amp;quot;winTop&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Synopsis ==&lt;br /&gt;
'''Official Name:''' winBtm&lt;br /&gt;
&lt;br /&gt;
'''Memory Address:''' 97A6h&lt;br /&gt;
&lt;br /&gt;
'''Length:''' 1 bytes.&lt;br /&gt;
&lt;br /&gt;
This byte is used to store the bottomrow of the current window.&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
You can use this byte in combination with [[83Plus:RAM:97A5|winTop]] to restrict certain routines in the os to only affect the lines you want.&lt;br /&gt;
&lt;br /&gt;
[[Category:83Plus:RAM:By Address|97A6 - winBtm]]&lt;br /&gt;
[[Category:83Plus:RAM:By Name|winBtm]]&lt;/div&gt;</summary>
		<author><name>208.181.90.67</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:RAM:97A5</id>
		<title>83Plus:RAM:97A5</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:RAM:97A5"/>
				<updated>2005-04-08T22:15:29Z</updated>
		
		<summary type="html">&lt;p&gt;208.181.90.67: &amp;quot;effect&amp;quot; to &amp;quot;affect&amp;quot;. Grammar, people!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Synopsis ==&lt;br /&gt;
'''Official Name:''' winTop&lt;br /&gt;
&lt;br /&gt;
'''Memory Address:''' 97A5h&lt;br /&gt;
&lt;br /&gt;
'''Length:''' 1 bytes.&lt;br /&gt;
&lt;br /&gt;
This byte is used to store the toprow of the current window.&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
You can use this byte in combination with [[83Plus:RAM:97A6|winBtm]] to restrict certain routines in the os to only affect the lines you want.&lt;br /&gt;
&lt;br /&gt;
[[Category:83Plus:RAM:By Address|97A5 - winTop]]&lt;br /&gt;
[[Category:83Plus:RAM:By Name|winTop]]&lt;/div&gt;</summary>
		<author><name>208.181.90.67</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Other:DispA</id>
		<title>Z80 Routines:Other:DispA</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Other:DispA"/>
				<updated>2005-04-04T22:39:09Z</updated>
		
		<summary type="html">&lt;p&gt;208.181.90.67: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Z80 Routines:Other|itoa]]&lt;br /&gt;
[[Category:Z80 Routines|itoa]]&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
; ITOA&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; Converts a signed integer value to a zero-terminated ASCII&lt;br /&gt;
; string representative of that value (using radix 10).&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; INPUTS:&lt;br /&gt;
;     HL     Value to convert (two's complement integer).&lt;br /&gt;
;     DE     Base address of string destination. (pointer).&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; OUTPUTS:&lt;br /&gt;
;     None&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; REGISTERS/MEMORY DESTROYED&lt;br /&gt;
; AF HL&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
itoa:&lt;br /&gt;
   push    de&lt;br /&gt;
   push    bc&lt;br /&gt;
&lt;br /&gt;
; Detect sign of HL.&lt;br /&gt;
    bit    7, h&lt;br /&gt;
    jr     z, _DoConvert&lt;br /&gt;
&lt;br /&gt;
; HL is negative. Output '-' to string and negate HL.&lt;br /&gt;
    ld     a, '-'&lt;br /&gt;
    ld     (de), a&lt;br /&gt;
    inc    de&lt;br /&gt;
&lt;br /&gt;
; Negate HL (using two's complement)&lt;br /&gt;
    xor    a&lt;br /&gt;
    sub    l&lt;br /&gt;
    ld     l, a&lt;br /&gt;
    ld     a, 0     ; Note that XOR A or SUB A would disturb CF&lt;br /&gt;
    sbc    a, h&lt;br /&gt;
    ld     h, a&lt;br /&gt;
&lt;br /&gt;
; Convert HL to digit characters&lt;br /&gt;
_DoConvert:&lt;br /&gt;
    ld     b, 0     ; B will count character length of number&lt;br /&gt;
-   ld     a, 10&lt;br /&gt;
    syscall  DivHLByA  ; HL = HL / A, A = remainder&lt;br /&gt;
    push   af&lt;br /&gt;
    inc    b&lt;br /&gt;
    ld     a, h&lt;br /&gt;
    or     l&lt;br /&gt;
    jr     nz, -&lt;br /&gt;
&lt;br /&gt;
; Retrieve digits from stack&lt;br /&gt;
-   pop    af&lt;br /&gt;
    or     $30&lt;br /&gt;
    ld     (de), a&lt;br /&gt;
    inc    de&lt;br /&gt;
    djnz   -&lt;br /&gt;
&lt;br /&gt;
; Terminate string with NULL&lt;br /&gt;
    xor    a&lt;br /&gt;
    ld     (de), a&lt;br /&gt;
&lt;br /&gt;
    pop    bc&lt;br /&gt;
    pop    de&lt;br /&gt;
    ret&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Comments===&lt;br /&gt;
*This routine uses the common [[Wikipedia:Numeral_systems#Change_of_radix|positive-integer radix conversion algorithm]] of repeatedly dividing a value by the desired radix (base case: the value is zero) and saving the remainders of each division.&lt;br /&gt;
*As this algorithm gives the digits in reverse order, they are pushed onto the hardware stack so that subsequently popping them yields the correct order.&lt;br /&gt;
*Note that the output string will not be fixed-width.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Example Usage===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;    ld    hl, -1004&lt;br /&gt;
    ld    de, OP1&lt;br /&gt;
    call  itoa&lt;br /&gt;
    ld    hl, OP1&lt;br /&gt;
    syscall  PutS&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>208.181.90.67</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Other:DispA</id>
		<title>Z80 Routines:Other:DispA</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Other:DispA"/>
				<updated>2005-04-04T22:38:45Z</updated>
		
		<summary type="html">&lt;p&gt;208.181.90.67: /* Comments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Z80 Routines:Other|itoa]]&lt;br /&gt;
[[Category:Z80 Routines|itoa]]&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
; ITOA&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; Converts a signed integer value to a zero-terminated ASCII&lt;br /&gt;
; string representative of that value (using radix 10).&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; INPUTS:&lt;br /&gt;
;     HL     Value to convert (two's complement integer).&lt;br /&gt;
;     DE     Base address of string destination. (pointer).&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; OUTPUTS:&lt;br /&gt;
;     None&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
; REGISTERS/MEMORY DESTROYED&lt;br /&gt;
; AF HL&lt;br /&gt;
; --------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
itoa:&lt;br /&gt;
   push    de&lt;br /&gt;
   push    bc&lt;br /&gt;
&lt;br /&gt;
; Detect sign of HL.&lt;br /&gt;
    bit    7, h&lt;br /&gt;
    jr     z, _DoConvert&lt;br /&gt;
&lt;br /&gt;
; HL is negative. Output '-' to string and negate HL.&lt;br /&gt;
    ld     a, '-'&lt;br /&gt;
    ld     (de), a&lt;br /&gt;
    inc    de&lt;br /&gt;
&lt;br /&gt;
; Negate HL (using two's complement)&lt;br /&gt;
    xor    a&lt;br /&gt;
    sub    l&lt;br /&gt;
    ld     l, a&lt;br /&gt;
    ld     a, 0     ; Note that XOR A or SUB A would disturb CF&lt;br /&gt;
    sbc    a, h&lt;br /&gt;
    ld     h, a&lt;br /&gt;
&lt;br /&gt;
; Convert HL to digit characters&lt;br /&gt;
_DoConvert:&lt;br /&gt;
    ld     b, 0     ; B will count character length of number&lt;br /&gt;
-   ld     a, 10&lt;br /&gt;
    call   DivHLByA ; HL = HL / A, A = remainder&lt;br /&gt;
    push   af&lt;br /&gt;
    inc    b&lt;br /&gt;
    ld     a, h&lt;br /&gt;
    or     l&lt;br /&gt;
    jr     nz, -&lt;br /&gt;
&lt;br /&gt;
; Retrieve digits from stack&lt;br /&gt;
-   pop    af&lt;br /&gt;
    or     $30&lt;br /&gt;
    ld     (de), a&lt;br /&gt;
    inc    de&lt;br /&gt;
    djnz   -&lt;br /&gt;
&lt;br /&gt;
; Terminate string with NULL&lt;br /&gt;
    xor    a&lt;br /&gt;
    ld     (de), a&lt;br /&gt;
&lt;br /&gt;
    pop    bc&lt;br /&gt;
    pop    de&lt;br /&gt;
    ret&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Comments===&lt;br /&gt;
*This routine uses the common [[Wikipedia:Numeral_systems#Change_of_radix|positive-integer radix conversion algorithm]] of repeatedly dividing a value by the desired radix (base case: the value is zero) and saving the remainders of each division.&lt;br /&gt;
*As this algorithm gives the digits in reverse order, they are pushed onto the hardware stack so that subsequently popping them yields the correct order.&lt;br /&gt;
*Note that the output string will not be fixed-width.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Example Usage===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;    ld    hl, -1004&lt;br /&gt;
    ld    de, OP1&lt;br /&gt;
    call  itoa&lt;br /&gt;
    ld    hl, OP1&lt;br /&gt;
    syscall  PutS&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>208.181.90.67</name></author>	</entry>

	</feed>