[ASM] Assembly Programming
Moderator: MaxCoderz Staff
- ProphetsDementia
- Regular Member
- Posts: 81
- Joined: Wed 06 Dec, 2006 2:20 am
- Location: Tokyo, Kanto, Japan
[ASM] Assembly Programming
This may or may not be a valid post.
However, I must know.
Is assembly has hard as it sounds and looks?
However, I must know.
Is assembly has hard as it sounds and looks?
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
It helps if you have lots of experience in working with binary data before taking on ASM.
Then for a while, you'll be at the "look at other people's code and rearrange it" stage. Then you do that enough, then you can write your own.
Then for a while, you'll be at the "look at other people's code and rearrange it" stage. Then you do that enough, then you can write your own.
You know your hexadecimal output routine is broken when it displays the character 'G'.
- driesguldolf
- Extreme Poster
- Posts: 395
- Joined: Thu 17 May, 2007 4:49 pm
- Location: $4080
- Contact:
@Dwedit: I find that very hard to look at other peoples code first and then go on to making your own code. I tried to read ionputsprite when I first started and had a brain meltdown. So I programmed for about a 1 1/2 years and came back and it was easier then I could have every imagined. Same with Jim_e's improved/your original tilemapper.
I always find it useful that if you don't understand the code at first sight then go through and trace it by inputting fake data and seeing what happens. That is what makes assembly easy because its not like basic where you can have like:
length(sub((2A-1)+1), .5B - abs(2A+1)))
or something like that. You take assembly one command at a time.
I always find it useful that if you don't understand the code at first sight then go through and trace it by inputting fake data and seeing what happens. That is what makes assembly easy because its not like basic where you can have like:
length(sub((2A-1)+1), .5B - abs(2A+1)))
or something like that. You take assembly one command at a time.
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
you can't have
sub('s first arg should be a string, should have more than 1 arg, and length( doesn't take 2 args, and doing math like this (making a substring and calculating it's length) is quite.. odd.. to say the least.
But I get your point, and I agree with you. (I also had a bit of a brain meltdown when I looked at existing code before trying to learn something simple, I would have been here a year earlier if I hadn't )
ps: you had 1 too many closing brackets
Code: Select all
length(sub((2A-1)+1), .5B - abs(2A+1)))
But I get your point, and I agree with you. (I also had a bit of a brain meltdown when I looked at existing code before trying to learn something simple, I would have been here a year earlier if I hadn't )
ps: you had 1 too many closing brackets