Hello, I'm making a 16bit os and i'm messing with my code...
I'm trying to make it more readable and to comment it...
i have a stupid question, but it is useful to make my code more readable:
What goes first: AH or AL?
mov ah, [Y]
mov al, 160
or
mov al, [Y]
mov ah, 160
thanks
Writing readable code
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm
Writing readable code
MatÃas Beretta
Uhh.....No? Please refrain from posting unless you have something to say. Thank you.Craze Frog wrote:ah first.
As for the question, I don't understand. In your case, it doesn't matter which goes first. AL and AH have to relation no each other except through AX, which you're not manipulating at the moment.
C8H10N4O2 | #446691 | Trust the nodes.
-
- Member
- Posts: 368
- Joined: Sun Sep 23, 2007 4:52 am
But I did, and I answered. Please don't answer if you don't have any answer.As for the question, I don't understand.
Ah should be set first because it's always drawn leftmost in the visual representation. Going from left to right is more natural than going from right to left. There is of course no technical difference.
I'm so slow today...Sorry, I thought you meant: "Ah, first" as in first post.Craze Frog wrote:But I did, and I answered. Please don't answer if you don't have any answer.As for the question, I don't understand.
Ah should be set first because it's always drawn leftmost in the visual representation. Going from left to right is more natural than going from right to left. There is of course no technical difference.
C8H10N4O2 | #446691 | Trust the nodes.
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm