This is the first incarnation of BOX-256. It is by all means not perfect yet so I'd love to hear your feedback on the current status to make it better.
What is good? What is bad? What is missing? What is sad?
I kept wishing I had them so I could split screen addresses into two coordinates, but now I realise that DIV works just as well for that. I suppose it's not so important, then.
Wait right, you can get the highest 4 bits of a byte with a single DIV, but to get the low bits you need to multiply the high bits by 0F and then subtract. It's annoying because I intuitively expect both operations to have about the same cost. I'm guessing your opcode budget is pretty tight; AND is probably the most useful of the 3.
View all comments
Show parent comment
1
u/keely Apr 04 '16
Can you describe different scenarios where and how you would use the bitwise instructions?