Re: unsigned to float

From: silverdr_at_wfmh.org.pl
Date: Tue, 15 Oct 2019 11:13:04 +0200
Message-Id: <D2960297-1851-4F9C-9E83-7CA5D6AF4A28_at_wfmh.org.pl>
> On 2019-10-14, at 22:24, Anders Carlsson <anders.carlsson_at_sfks.se> wrote:
> 
> Clever!
> 
> By the way, the routine at $B391 which Patryk already tried to use, essentially does the same except that it jumps to $BC44 instead of $BC49 so it sets the carry flag for values > 32767.

Right. So probably there was no need for unsigned ints in BASIC but by taking the steps GIVAYF does and enforcing positive values by setting flag plus skipping the complementing EOR it's direct enough. Nice.

-- 
SD! 
Received on 2020-05-29 23:09:12

Archive generated by hypermail 2.3.0.