|
| 16 Jan 2013 03:28 PM |
The challenge is to make a print function in Hack VM on your own.
The only limitation is that you must use the JavaScript version, the following memory data: 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33
The string length is 13, final output should say "Hello, world!" without quotes.
Please remember that your entry should be a function. |
|
|
| Report Abuse |
|
|
| |
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
| |
|
|
| 16 Jan 2013 04:25 PM |
Guys, I think he wants some sort of Memory Injection... Or not.
<< AʙsᴏʟᴜᴛᴇLOL >> |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
|
| 16 Jan 2013 04:35 PM |
| ain't nobody got time for that |
|
|
| Report Abuse |
|
|
Sorcus
|
  |
 |
| Joined: 29 Nov 2010 |
| Total Posts: 3775 |
|
|
| 16 Jan 2013 04:36 PM |
@AbsoluteLOL what? he is asking you to modify the VM... He even says it in his message
~Sorcus |
|
|
| Report Abuse |
|
|
iOpened
|
  |
| Joined: 31 Mar 2012 |
| Total Posts: 638 |
|
| |
|
NXTBoy
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 4533 |
|
|
| 16 Jan 2013 04:44 PM |
This is my `print13` function:
00^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P1+0^<P |
|
|
| Report Abuse |
|
|
NXTBoy
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 4533 |
|
|
| 16 Jan 2013 04:50 PM |
| And, we're done here: `00^<0^9?P1+08-8-g` |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2013 05:28 PM |
@NXTBoy
Haha, nice one.
New rule: The function must be able to print strings of arbitrary length. ;) |
|
|
| Report Abuse |
|
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
|
| 16 Jan 2013 06:37 PM |
@Oysi
At least he's capable :P |
|
|
| Report Abuse |
|
|
LPGhatguy
|
  |
 |
| Joined: 27 Jun 2008 |
| Total Posts: 4725 |
|
|
| 16 Jan 2013 06:37 PM |
You know what would make this thread remarkably more relevant?
Make a Lua implementation of Hack VM and implement a friendly ROBLOX interface. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 16 Jan 2013 08:30 PM |
"friendly ROBLOX interface"
We have a contradiction here. The contradiction is in the middle of the two other words, preventing that noun from every existing.
On the other hand, this really isn't relevant, although it is cool. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2013 08:52 PM |
> "I'm sorry, but since you made it I have to add another rule so I will still be best"
Oxcool1 is the one that was doing that to you, not popinman. |
|
|
| Report Abuse |
|
|
NXTBoy
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 4533 |
|
|
| 17 Jan 2013 01:13 AM |
| @popin, my second answer does follow that rule, and is around half the size of yours. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 17 Jan 2013 05:37 AM |
@Oysi
He won, the rule only takes effect on entries after it. :O
@NXTBoy
Analyzing... |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 05:39 AM |
@NXT
Oh, I see.
Yours relies on the string starting at 0 and uses errors to terminate effectively.
I made mine to take a cell address and length as well as clean the stack before exiting. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 17 Jan 2013 10:35 AM |
my reaction to this thread/OP:
wat |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 11:09 AM |
My reaction to this thread:
This is just rea-
Wow, it's snowing :D |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 11:46 AM |
My reaction to this thread:
...wutwhy |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2013 02:21 PM |
Sorcus, I was being sarcastic. I just forgot to add a "/sarc". Don't get all Sorcy on me.
<< AʙsᴏʟᴜᴛᴇLOL >> |
|
|
| Report Abuse |
|
|