#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Oct 19, 2010 9:17:48 GMT -8
Then that would be your professor. I could do the assignment (now that I know how to do if statements/loops/arrays etc), but I don't see the point since you wouldn't learn anything and I would have to spend probably half and hour to an hour to complete it. When people come on here with homework questions I try to guide them rather than give them the answer. You kept asking for help on the debugger so that's where I helped you rather than on the actual assembly.
|
|
inherit
143665
wildgoosespeeder wildgoosespeeder wildgoosespeeder
0
Jun 14, 2018 5:59:55 GMT -8
wildgoosespeeder
ProBoards V5 be trippin'. I'm disoriented. :P
4,393
August 2009
wildgoosespeeder
|
Post by wildgoosespeeder on Oct 19, 2010 11:28:22 GMT -8
Like I said earlier, my professor makes it harder for me to understand. All she does is tell us what each command does or something and never really have us create assembly code in-class using what she told us. Luckily I found a student that seems to get it better than I do and learned a few things but not much due to time left in class.
In general, I don't learn well by lecture, especially when learning codes. That's how I learned VB6 back in high school. No lecture, strictly hands-on and I learned it rather quickly.
I thought the debugger thing would give me the right hints but it just makes it more confusing to me.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Oct 19, 2010 13:35:09 GMT -8
Most people don't learn by lecture in this field because it is definitely a hands on field. My teacher doesn't teach it very well either so I have to rely on the book and Google.
The debugger uses a lot of techniques and commands that you probably won't learn in an assembly intro class. I still suggest writing the code in C++ (like on paper, no need to compile), and then convert to assembly. It really makes it easier since operations like if statements are awkward in assembly. The main thing to know about if statements which you will need to use in your assignment is to negate the statement and jump to the else/end if the statement is false.
if(CPlusPlus > Assembly && counter != 100)
If you negate that which hopefully you learned how to do in discrete mathematics or a class similar to that, you'll know that the negation is:
if(CPlusPlus <= Assembly || counter == 100)
Now you can convert it to assembly.
mov ebx, CPlusPlus mov ecx, Assembly mov edx, Counter Loop: cmp ebx, ecs ; If CPlusPlus <= Assembly jle End ; Jump out of loop (short-Circuit evaluation) cmp counter, 0 ; If counter == 0 je End ; Jump out since the counter is 0 ; Loop contents here jmp Loop End:
It's just tedious so you have to play with it. Just do what you did to learn Visual Basic which was probably reading tutorials and screwing around.
|
|