Piet_interpreter
Piet_interpreter copied to clipboard
Wrong order of operations in divide by zero example.
The divide by zero example actually does 0/1 not 1/0.
I couldn't really think of a good way to embed an image, so this hexdump will have to do...
You can use xxd -r hexdump.txt > divsion_by_zero.png
to recover the image.
00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR
00000010: 0000 000e 0000 0006 0806 0000 00f3 1baf ................
00000020: bc00 0000 3749 4441 5418 95bd 8e31 0a00 ....7IDAT....1..
00000030: 200c c4f2 ff57 ddcf e260 2be2 e0e0 608f ....W...`+...`.
00000040: c0c1 1128 269a 2828 9862 859a 9209 4c9e ...(&.((.b....L.
00000050: c5ad 5ce9 fb20 f68b 27af e200 db6e 9091 ..\.. ..'....n..
00000060: 8505 eb59 0000 0000 4945 4e44 ae42 6082 ...Y....IEND.B`.
00000070: 0000
This image pushes the parameters in the right order and should cause a division by zero.