diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-10-18 20:18:51 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-10-18 20:18:51 -0700 |
commit | 82d1fe7c9cf50d63621233e4958a44afe4af9fbf (patch) | |
tree | 01102b7a2c113def4a3cb481271f9719a9c8f878 | |
parent | d7d384a72bdadfb3d704914b89318f8f7907d7fe (diff) | |
download | mu-82d1fe7c9cf50d63621233e4958a44afe4af9fbf.tar.gz |
7056 - orange-pink
-rw-r--r-- | apps/texture.mu | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/texture.mu b/apps/texture.mu index 4e73b9f2..edac4126 100644 --- a/apps/texture.mu +++ b/apps/texture.mu @@ -28,19 +28,24 @@ fn main -> exit-status/ebx: int { # r var tmp/eax: int <- copy col tmp <- multiply row - tmp <- and 0xff + tmp <- and 0x7f + tmp <- add 0x80 + tmp <- copy 0xff print-int32-decimal 0, tmp print-string 0, " " # g tmp <- copy row tmp <- multiply col - tmp <- and col + tmp <- and 0x7f + tmp <- add 0x80 +#? tmp <- copy 0xcf print-int32-decimal 0, tmp print-string 0, " " # b tmp <- copy row tmp <- multiply col - tmp <- and row + tmp <- and 0x7f + tmp <- add 0x80 print-int32-decimal 0, tmp print-string 0, "\n" col <- increment |