-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmycouser.b98
25 lines (25 loc) · 1.99 KB
/
mycouser.b98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
92#v/4-#v_55+"4 = 2 / 9 :DOOG">:#,_92#v%1-#v_55+"1 = 2 % 9 :DOOG">:#,_ vv$$$$$$<
>055+ "stcelfer / :DAB" ^>'",,@ >055+ "stcelfer % :DAB" ^ 5>$$$ v$
>055+"4 =! 2 / 9 :DAB"^^ a_,#! #:<;>055+"1 =! 2 % 9 :DAB"^;< 5v" wo"<$
v,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"About to test division by zero..."+<>",de"v$
>10#v/#v_055+"0 = 0 / 1 :DOOG" >:#,_ 10#v% #v_055+"0 = 0 % 1 :DOOG"v "$
>05 5+"...)llits( stcelfer /"^ $0 $0"UNDEF: 1 / 0 != 0," < d$
>055+"noisivid 89-egnuF tcerrocni r"# "o " "nevig rewsna gnorw "^ a"
v"answer given or incorrect Funge-98 division"+55< > >:#,_#<#< #ov
< >55+"stcel"v>55+"...)llits( stcelfer %"^v^ ""
>" gnorw ,0 =! 0 % 1 :FEDNU"^ @_,#! #:< # *25"UNDEF: STRN fingerprint not l"<v
" :rebmun a tupni esaelP">:#,_#^&0" tog :FEDNU">:#,_$.$55+".tcerroc " v>
"yllufepoh si hcihw">:#,_ v >"fer & :DAB"55+".dnim reveN">:#,_v >
>:#,_v#:"Please input a character: "< < X
v < >#v~0" tog :FEDNU">:#,_$:."'",,$55+".tcerroc yllufepoh si hcihw '">:#,_ v
#v~^ v>55+"stcelfer ~ :DAB"55+".dnim reveN" >:#,_ >
> ">:#,_@" $$$$$$$ 52*:"~ & % / :snoitcurtsni gniwollof eht gnikcehc enod llA"v
v55_,#! #:<"Loaded BASE fingerprint: testing I instruction."an(v#4"BASE"_,#! #:<
#:<"UNDEF: BASE fingerprint not loaded, won't check I."*520< >:#,_@ v _,#!
+ ;^>0\"detcelfer I :DAB"; x3*a5 a"BAD: & reflected. Never mind..."\0< #
>"...krow snoitcurtsni 89-egnufeB gnimussA">:#,_" ?ni tupni daer ot esab hcihW"v
v # "Input a number in that base: "0,a.:$_,#! #:<"Selected base "\&^#_,#! #:<
>:#,_$#vI\" tog :FEDNU">:#,_$.a".tcerroc yllufepoh si hcihw">:#,_$ v$_,#! #:<"
v".."an<;a"BAD: I reflected"a"As 10I should probably " <v n(v#4"STRN"<"^ "<"!:;
>".esab dilav a rof tcelfer t'ndluohs I ,& ekil evaheb"^>' v>025*".I kcehc t'n"^
'"'I^# _,#! #:<a"Loaded STRN: testing I. Please input:"< v"UNDEF: got"