This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Albytok
Pages: [1]
1
« on: January 18, 2013, 11:48:50 am »
2
« on: January 17, 2013, 07:14:55 pm »
I AM NOT GOING TO TELL YOU ANYTHING! MY METHODS SHALL FOREVER REMAIN A MYSTERY!
Edit: Here's the code for the rainbow buttsort, written in python.
#rbuttsort.py # FOR PRODUCING A (RAINBOW) FIBONACCI BUTTSORT
ctags = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'purple', 'indigo', 'blue', 'green', 'yellow', 'orange'] out = '' i = 0
print 'What would you like buttsorted today?\n', sentence = str(raw_input(">>> "))
for x in sentence: if x == ' ': out = out + ' ' continue i = i + 1 if i > 11: i = 0 out = out + '[color=' + ctags[i] + ']' + x + '[/color]' f = open('out.txt', 'w') f.write('[b][i]' + out + '[/i][/b]\n') f.close()
print 'Enjoy your buttsort.',
3
« on: January 17, 2013, 06:53:32 pm »
Yeah, I was planning on using a regular buttsort, but overline doesn't work on this forum...
4
« on: January 17, 2013, 03:10:50 pm »
In this thread we shall discuss the various implementations of the
FIBONACCI BUTTSORT
5
« on: December 22, 2012, 04:20:00 pm »
I didn't even know about the key debouncing thing. Thanks!
6
« on: December 18, 2012, 04:38:15 pm »
Well, here I am. I came here mostly to get help with ASM problems that I couldn't figure out myself.
I also suck at introductions. Can I have my peanuts now?
7
« on: December 18, 2012, 04:30:46 pm »
So, what this routine is supposed to do is pause the program until the user hits the DEL key. For some reason though, whenever I use this routine, the calculator doesn't respond to the DEL key. In fact, it won't respond to any key, and just keeps looping forever. Here's the code: ld c, 1
WaitKey: ld a, $FF out (c), a ld a, $FD out (c), a nop nop in a, (c) bit 7, a jp nz, WaitKey ld a, $FF out (c), a ret
What am I doing wrong? EDIT: Wait, nevermind. I was just reading from the wrong key group.
Pages: [1]
|