flat assembler
Message board for the users of flat assembler.
Index
> DOS > file I/O Goto page Previous 1, 2 |
Author |
|
rhyno_dagreat 12 Oct 2006, 13:31
I just use a calculator for speed primarily.
|
|||
12 Oct 2006, 13:31 |
|
Tomasz Grysztar 12 Oct 2006, 14:16
What about this?
Code: org 256 finit fldpi fsubr [alpha] fistp [alpha] mov ah,byte [alpha] int 33 alpha dd 1117669503 |
|||
12 Oct 2006, 14:16 |
|
2 12 Oct 2006, 21:42
Quote:
Yes,but you're forgetting 2 things. First of all,the assembler recognizes is the same no matter how you do it,second,we have calculators right on our computers so you don't have 2 torment yourself like I did. I have hex edited many games. I'm always struggling with the fact that the games do the numbers in decimal, but in a hex editor they are hex. So,I torment myself because it's needed. You write your code however you want,but I'm still using decimal just to save space. I suggest that you stay away from all my topics if you don't like it. |
|||
12 Oct 2006, 21:42 |
|
Tomasz Grysztar 12 Oct 2006, 21:59
You can aswell make your own versions of all the assembly mnemonics and rename registers (like using R0D instead of EAX) etc. if it suits you - I know people who do this (one especially interesting case was my friend from Russia that made customized version of fasm to use two-letter mnemonics intead of three, like MV and SB instead of MOV and SUB - talk about saving space!). But if you want the code to be read by others, it's good to actually follow some standards. Otherwise you can just share only the output code - well, anyone can disassemble it if really wants.
Perhaps that may sound a bit unconvincing from someone, who almost doesn't comment his code and uses raw structure offsets and magic constants in large amount. Perhaps Tom Tobias is a better authority to speak about readability on this forums. PS. However if you just want to share the finished program, without discussing the programming issues, you're of course free to share it in any form you wish. As long as it's a usable form. |
|||
12 Oct 2006, 21:59 |
|
2 13 Oct 2006, 20:10
Yeah,that would be cool,but I don't really wanna confuse people that much. Just wanna confuse you enough! Number bases just didn't really
come as confusion to me. I still don't know what Goplat was talking about. He's obviously programming for different reasons than me. |
|||
13 Oct 2006, 20:10 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.