|
|
you stole my guild tag
|
What university do you go to in the US?
Did you studied something here before going to the US?
I never heard of Marie, so this was interesting, keep us updated .
|
Don't you live somewhere in Houston?
You go to Rice or other college in Houston?
Edit: I recall you living somewhere in Texas. Oh yea interested in this. I suck dick with pc's.
|
I go to UHD in Houston
|
Haha, you're either going to find assembly interesting or very confusing and annoying. We had to learn Marie too, at the end of the class we had to write a program to do multiplication and array addition if I remember correctly; most of the other people in my class struggled with it.
Unfortunately assembly isn't really used much today at all with the power of modern CPUs and since compilers are decent at optimization; there's only some very small set of instances where it makes sense to program in assembly.
|
I'm learning assembly right now too :O not using that program though
|
assembly language sucks ass, its like 4 pages of crap just to turn the lights on!
|
Make it do division/multiplication! Implement your own stack! Although, I find using fake assembly languages kind of a crappy way to teach, tbh. Had to use LC-3 in a previous class, and it just doesn't mean much at all to you once you're done using it. Although I guess its a decent way to learn the basics of it, but past that, you end up having to go learn some other assembly if you want to make any use out of it.
|
I actually have to make an arithmetic clock for my final -___-;;
|
UHD = university of houston downtown? :O
|
United States3824 Posts
Lean Java bytecode. That way you can do everything you want AND reverse engineer other people's work
|
On January 31 2009 16:11 HeavOnEarth wrote: UHD = university of houston downtown? :O yes
|
Ah, this reminds me of when I took a class in Compiler Theory.
We had a VM that ran a similar type of fake assembly language, and C-like code called Trac42. Then we just had to implement a compiler for Trac42. It was a lot of fun, doing things like implicit type conversions and nested pointers.
Edit:
Here's a problem to calculate the factorial of a given number:
+ Show Spoiler +ORG 100 Input Store Factorial Fac, Load Factorial Store MulOpA Load Sum Skipcond 800 /Ugly way to prevent multiplication with Zero in the first iteration Load One /Let's start with multiplication by One Store MulOpB Load Zero Store MulSum Jump Mul FacLoop, Load MulSum Store Sum Load Factorial Subt One Skipcond 800 Jump Finish Store Factorial Jump Fac Mul, Load MulSum Add MulOpB Store MulSum Load MulOpA Subt One Store MulOpA Skipcond 400 Jump Mul Jump FacLoop Finish, Load Sum Output Halt
Factorial, DEC 0 Sum, DEC 0 MulOpA, DEC 0 MulOpB, DEC 0 MulSum, DEC 0 Zero, DEC 0 One, DEC 1
END
|
This is lame. I thought Marie was a girl and I expected pics.
|
|
|
|