flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 14 Sep 2008, 14:41
Sure, CR-LF is pretty standard in Windows.
Although a lot of editors today can also cope with just LF without any problem. Some of the better editors also support the MAC style CR and can save-as any of the Windows/*nix/MAC formats that you choose. |
|||
![]() |
|
andyz74 14 Sep 2008, 14:44
Thx for the ultrafast answer!
![]() So, Example 2 of my first post is the right syntax? |
|||
![]() |
|
revolution 14 Sep 2008, 14:46
I think there is no right syntax. My point was that is depends upon what OS and what editing tools you are using.
|
|||
![]() |
|
andyz74 14 Sep 2008, 15:15
Most likely, the files will be viewed/edited on Windows, and most likely in Notepad. Therefor, I think, the 13,10-thing will be good.
So, I hope, I can handle my other coding-problems on myself... I hope... ![]() |
|||
![]() |
|
andyz74 16 Sep 2008, 18:15
There seems to be another problem in this "project"...
I want my asm-prog to create a html-file. The necessary html-sourcecode is stored in certain variables, for example: Quote:
As U can see, the line is very long, and therefor, the html-source is not good to read, for the case, I want to change it. Can I split the variable in more lines, while it will still be ONE variable? |
|||
![]() |
|
revolution 16 Sep 2008, 18:19
Use a backslash:
Code: msg1 db '<html><head><title>Slide-Hacker by Andy</title></head>',13,10,\ '<body bgcolor="#000000" text="#eeeeee">',13,10,'<center>',13,10,\ '<font face="Comic Sans MS"><font size=3>Bild ' size1 = $-msg1 |
|||
![]() |
|
andyz74 16 Sep 2008, 18:24
Ok, that's it!
![]() Thanks man, U'r my alltime-saviour! ![]() |
|||
![]() |
|
LocoDelAssembly 16 Sep 2008, 18:49
Should I move this thread to Main?
|
|||
![]() |
|
andyz74 18 Sep 2008, 18:04
Another little problem (and maybe the proof, that this is right in Linux thread
![]() I have this Quote:
...but fasm says "error: invalid operand." Google and any search function didn't help me. Maybe U can? I just want to input a number between 0 and 999. |
|||
![]() |
|
LocoDelAssembly 18 Sep 2008, 18:38
STR—Store Task Register
So "mov ecx, str" is like "mov ecx, xor", you have to use a different name for the string (note that fasm rejects "str db 0" also because again, it is like defining "mov db 0"). [edit]And if you want a 3 bytes input buffer then you need "string rb 3". |
|||
![]() |
|
andyz74 18 Sep 2008, 18:50
OK, that was a silly fault by me, but now it works.
Just the last task to use the given number by input as variable in repeating (don't know the english word...) and in the same time as output-string and in the same time as part of a filename. But that's my task for tomorrow! So thanks for the answer! ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.