Calculator Community > Community Contests

[ENDED] Code Golf Contest #9

<< < (2/12) > >>

calc84maniac:
Got 9 bytes in TI-BASIC!

Also, I have an interesting idea for how to handle a z80 ASM version of this. Print 1337, but without using any immediate values, or reading data from the program in general. Only opcode fetches are allowed. (Exception is BCALL for printing.) Also, I'm unsure whether JR/JP/CALL should be allowed, since they technically have immediate values. If they're not allowed, that pretty much just means loops are out.

Edit: Another concern, I suppose, might be whether BIT/RES/SET can be used, since those have bit values from 0-7. I personally think those should be allowed, because they're technically part of the opcode itself.

Edit2: Now I don't care either way, because I have a nice solution that doesn't use BIT/RES/SET. Throw them out for all I care.

Juju:
Got 18 bytes in Ruby.

Adriweb:
Got a 32 bytes one in Lua.
I didnt put much time into it though.

Hayleia:

--- Quote from: JWinslow23 on September 08, 2014, 07:38:31 pm ---
* The program must only use the printable ASCII characters (" " to "~")
--- End quote ---
What does this mean for a Basic/Axe program ? I mean "DispGraph" is one token but not a printable ASCII character and not composed of printable ASCII characters so is it allowed ?

Juju:
I guess it means nothing outside of UTF-8 systems, so everything would be allowed on calcs, I guess. It's so you couldn't do something like ord('ΤΉ') on PCs.

EDIT: 26 bytes of PHP!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version