<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="http://smartbasic.net/forum/app.php/feed/topic/93" />

	<title>SmartBASIC - A Coleco Adam Forum</title>
	<subtitle>Let's Talk Adam</subtitle>
	<link href="http://smartbasic.net/forum/index.php" />
	<updated>2020-05-18T21:30:32-04:00</updated>

	<author><name><![CDATA[SmartBASIC - A Coleco Adam Forum]]></name></author>
	<id>http://smartbasic.net/forum/app.php/feed/topic/93</id>

		<entry>
		<author><name><![CDATA[joltguy]]></name></author>
		<updated>2020-05-18T21:30:32-04:00</updated>

		<published>2020-05-18T21:30:32-04:00</published>
		<id>http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=317#p317</id>
		<link href="http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=317#p317"/>
		<title type="html"><![CDATA[Re: HCOLOR pokes]]></title>

		
		<content type="html" xml:base="http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=317#p317"><![CDATA[
<img class="smilies" src="http://smartbasic.net/forum/images/smilies/icon_exclaim.gif" width="15" height="17" alt=":!:" title="Exclamation"> Pure genius... that works perfectly. Thank you very much for the solution <em class="text-italics">and</em> the technical explanation!<p>Statistics: Posted by <a href="http://smartbasic.net/forum/memberlist.php?mode=viewprofile&amp;u=198">joltguy</a> — Mon May 18, 2020 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pearsoe]]></name></author>
		<updated>2020-05-18T16:04:23-04:00</updated>

		<published>2020-05-18T16:04:23-04:00</published>
		<id>http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=316#p316</id>
		<link href="http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=316#p316"/>
		<title type="html"><![CDATA[Re: HCOLOR pokes]]></title>

		
		<content type="html" xml:base="http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=316#p316"><![CDATA[
It looks like the poke 18747,201 is trying to bypass the routine at 18747 by inserting a RET (opcode C9 = 201). But that routine seems to need to return with a valid value in register A.  Try this:<br><br>poke 11127,255: poke 18747,121:poke 18748,201<br><br>This disables the value check with the poke 11127,255<br><br>Then inserts a LD A,C and then the RET with poke 18747,121: poke 18748,201<br><br>So this:<br><br>4936 215d49    ld      hl,495dh<br>4939 1803      jr      493eh<br>493b 214d49    ld      hl,494dh<br>493e 0600      ld      b,00h<br>4940 09        add     hl,bc<br>4941 7e        ld      a,(hl)<br>4942 c9        ret<br><br>Becomes this:<br>4936 215d49    ld      hl,495dh<br>4939 1803      jr      493eh<br>493b 79      ld a,c<br>493c c9      ret<br>493d 49      ld c,c ; this is never called<br>493e 0600      ld      b,00h<br>4940 09        add     hl,bc<br>4941 7e        ld      a,(hl)<br>4942 c9        ret<p>Statistics: Posted by <a href="http://smartbasic.net/forum/memberlist.php?mode=viewprofile&amp;u=59">pearsoe</a> — Mon May 18, 2020 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[joltguy]]></name></author>
		<updated>2020-05-17T09:49:16-04:00</updated>

		<published>2020-05-17T09:49:16-04:00</published>
		<id>http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=308#p308</id>
		<link href="http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=308#p308"/>
		<title type="html"><![CDATA[HCOLOR pokes]]></title>

		
		<content type="html" xml:base="http://smartbasic.net/forum/viewtopic.php?t=93&amp;p=308#p308"><![CDATA[
Hi all<br><br>I've been having fun going through Guy Cousineau's "Exploring SmartBASIC" document and in the <strong class="text-strong"><em class="text-italics">High Resolution Graphics</em></strong> section it says:<blockquote class="uncited"><div>In HGR it is highly recommended to disable the check and translation; see HPLOT for applications. The value check is disabled with a POKE of 255 at 11127 (2B76). The translation check is disabled by POKE 18747, 201.</div></blockquote>The POKE for disabling the value check works as expected. With it in place I am able to supply values above 15 to HCOLOR. However the second POKE for disabling the translation check doesn't seem to work. Once I POKE it, none of the colours work at all. No matter what colour I specify, all my HPLOTs are rendered as black (or maybe transparent). I've also tried POKE 18747 with other values and had no success.<br><br>Can anyone provide some insight into what's happening or what I should do differently? I am using SmartBASIC 1.0.<p>Statistics: Posted by <a href="http://smartbasic.net/forum/memberlist.php?mode=viewprofile&amp;u=198">joltguy</a> — Sun May 17, 2020 9:49 am</p><hr />
]]></content>
	</entry>
	</feed>
