atari email archive

a collection of messages sent at Atari from 1983 to 1992.

BLISS16 querks

(1 / 1)


A number of users have mentioned some of the goofy things that BLISS16
seems to do when you try to tell it to swap the bytes of a word or just
to get the high byte of a word. I did some investigation into the matter
and have concluded that, "yep, it does things goofy, so don't do that".
There is a simple solution (if you haven't already thought of it):

	SOURCE : WORD;		!the source word
	DEST : WORD;		!the dest word
	REGISTER TMP : UNSIGNED BYTE;	!get a fast temp byte
	TMP = .(SOURCE+1);	!get the high byte
	DEST = .TMP;		!put in the dest

BLISS-16 generates pretty tight code for this type of thing.

ds
Message 1 of 1

Jul 22, 1985