On Tue, 11 Apr 2017 02:52:06 +0000, Mateusz Viste wrote:
> On Mon, 10 Apr 2017 17:07:30 -0500, Rugxulo wrote:
>> Converting hex nibble to ASCII shouldn't need a jump at all. On the
>> 8086 all jumps are very slow. Best to avoid them entirely if possible.
>> Here you can easily use the old "cmp al, 0Ah // sbb al, 69h // das"
>> trick instead. But since you're only printing hex one time (instead of
>> thousands), you probably don't care.
> Indeed, I care little about jumps there, but still your version might be
> shorter, which would make it interesting. Will compare.

Checked: your nibble-to-hex version is indeed smaller. Hence it's better 
than mine both in terms of space (by 3 bytes) and speed (no jump). Nice!


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Freedos-user mailing list

Reply via email to