Interested in advertising on Derpibooru? Click here for information!
Help fund the $15 daily operational cost of Derpibooru - support us financially!
Description
No description provided.
Help fund the $15 daily operational cost of Derpibooru - support us financially!
No description provided.
Revisiting this comment, I remember absolutely nothing of assembly. Lulz.
Oh shit, son. Gauntlet status: thrown. Not sure how you one-up that except with straight machine code.
.data
trixieIsBest: .asciiz “The great and powerful Trixie its best\n”
trixie: .word 1
bestPony: .word 1
.text
la $t0, trixie #get adress of trixie
lw $t1, 0x4($t0) # $t1 = what is 4 bytes ahead of $t0’s adress (this will land in best pony) $t1 = best pony
lw $t0 0x0($t0) # $t0 = what is in the adress $t0, trixie, $t0 = trixie
li $v0, 4 #ask to print string starting at $a0
la $a0, trixieIsBest #adress of the string
whileTrixieIsBest: #Label
syscall #print string
beq $t0, $t1, whileTrixieIsBest #branch if $t0 equals $t1 ; branch if trixie == best pony
10 print “The Great and Powerful BASIC is best.”
20 goto 10
still ugly thou
Counting loop starting at 1 will work fine if you use the <= instead of just the <
>first bracket gets a whole line for itself
>>main(void)
newline?
preincrement?
void?
Twi has better codestyle
#include<brain.h>
for q in range(100): print("The great and powerful Parcly is the best")
Also: It’s…
[Liberty Bell music plays]
MONTY PYTHON’S FLYING CIR-CUS!
i:=1; while i=(1..100) do print “The great and powerful Trixie its best.”; i:=i+1; od;
print “foo\n” * 100
While I don’t know Python, the for loop is declaring count, providing the loop condition, and modifying count, all in one line. She could do the second and it’d get the same result, a for loop just condenses it.
Like this:
print 'The great and powerful Trixie is the best, ' * 100
Or to print multiple lines:
@count=0
while count!=100:
… print ‘The great and powerful Trixie is the best’
… count=count+1@
Console mode ?
“For 1 to 100” instead of “while(true)” ?
Trixie, I’m disappointed.
>#include [stdio.h]
It won’t even compile.