flat assembler
Message board for the users of flat assembler.

Index > Main > flat assembler 1.54

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
The official release of fasm 1.54 is now available in the Download section.

The biggest changes are in the Win32 GUI version - the interface contains rewritten AsmEdit control, support for CHM help files, updated set of macros for Win32 programming and some other small improvements.

All versions are now able to automatically generate the name for output file, so the "output" parameter in the command line versions is no longer obligatory.


Last edited by Tomasz Grysztar on 27 Aug 2004, 21:10; edited 1 time in total
Post 30 Jul 2004, 16:10
View user's profile Send private message Visit poster's website Reply with quote
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon
awesome.awesome.awesome. Smile I Like.
Post 30 Jul 2004, 22:21
View user's profile Send private message Visit poster's website Reply with quote
tsunghsien_lin



Joined: 03 May 2004
Posts: 4
Location: R.O.C
tsunghsien_lin
;fasm1.54 for win98 key chinese for good ,
;(1)fasmw.asm
section '.data' data readable writeable
zzz dd 0 ;(1)fasmw.asm row 36 <===add it
_caption db 'flat assembler ',VERSION_STRING,0

;(2) Asmedit.inc
convert_to_ascii:
mov ax,word [lparam+2]
and eax,7Fh
lea ebx,[kbstate]
lea edx,[char]
invoke ToAscii,[wparam],eax,ebx,edx,FALSE
or eax,eax
jz ignore
mov [zzz],1 ; (2) Asmedit.inc 628<== add it
mov al,byte [char]
cmp al,20h
jae character
cmp al,0Dh
je character
cmp al,9
je character
jmp ignore

wm_char: ;(3)search wm_char
; test [lparam],1 shl 31 ;<===del it
; jz ignore ;<===del it
cmp [zzz],1 ;<===add it
jne .wm_Ascii ;<===add it
mov [zzz],0 ;<===add it
jmp ignore ;<===add it
.wm_Ascii: ;<===add it
cmp [wparam],8 ;<===add it
je ignore ;<===add it
mov eax,[wparam]
jmp character
Post 31 Jul 2004, 08:29
View user's profile Send private message Yahoo Messenger Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
I must ask, shouldn't you fix the perimissions for the output on the linux version?
when diffing I see this: (among else)
(diffing 1.44 against vanilla sources + permission fix, I'll diff for the libc version too later)
Code:
--snip--
--- fasm.old/source/Linux/system.inc    2004-07-31 13:44:22.000000000 +0200
+++ fasm/source/Linux/system.inc        2004-07-30 10:54:00.000000000 +0200
@@ -17,15 +17,12 @@
 S_ISUID    = 4000o
 S_ISGID    = 2000o
 S_ISVTX    = 1000o
-S_IRWXU    = 0700o
 S_IRUSR    = 0400o
 S_IWUSR    = 0200o
 S_IXUSR    = 0100o
-S_IRWXG    = 0070o
 S_IRGRP    = 0040o
 S_IWGRP    = 0020o
 S_IXGRP    = 0010o
-S_IRWXO    = 0007o
 S_IROTH    = 0004o
 S_IWOTH    = 0002o
 S_IXOTH    = 0001o
--snip--
@@ -219,7 +214,7 @@
        mov     eax,5
        mov     ebx,buffer
        mov     ecx,O_CREAT+O_TRUNC+O_WRONLY
-       mov     edx,S_IRWXU or S_IRWXG or (S_IROTH or S_IXOTH)
+       mov     edx,S_IRUSR+S_IWUSR+S_IRGRP
        int     0x80
        pop     ebp edi esi
        test    eax,eax
--snip--
    


btw, tsunghsien_lin, please put the code in a [ code ] block [ /code ] (without the spaces between [ and ] ).
Post 31 Jul 2004, 11:56
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
These permission are as were intended.
Post 31 Jul 2004, 12:38
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
ok, why do you want the output to have -rw-r------? it should (IMO) be (if the umaks so allows) -rwxrwx-r-x. It seems gcc does set x for at least the owner - I think fasm should too Smile - else I'll ahve to chmod after compile :/ (or patch the sources Wink)
Post 31 Jul 2004, 12:42
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
The "chmod after compile" is exactly what was my intention. fasm sets only the minimum, "safe" permissions.
Post 31 Jul 2004, 12:45
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9
i thought it was because users seldom see the FASM source code.
Post 31 Jul 2004, 12:56
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
Quote:
The "chmod after compile" is exactly what was my intention. fasm sets only the minimum, "safe" permissions.


I don't see the problem with setting rwx for the current user; if I just ran a command to assemble a program into runnable object code, I want to be able to run it without more steps Smile
Post 31 Jul 2004, 13:17
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
ok, I see your point. But most other compilers are "unfase" in this point of view. I don't really see the danger in setting to my suggested permissions, as:
1) to excute a file you must type "./file", unless a) it's in any of the dirs in $PATH b) you got "." in $PATH - neither a or b are likley to be done by the average coder (unless (s)he's not practising safe-hex) Wink
2) Usually you build you sources in some dir that's only avalible to you(owner) and those you want to have access (group), and when you release the files, you want the world (others) to beavle to read and exec it. Having o=rx (other = r-x) is safe, as long as the dir you keep the files in don't have o=x (other = --x ) - as the ousiders can't enter the dir.
Post 31 Jul 2004, 13:31
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
btw here are three patches:
http://w1.364.telia.com/~u36404088/fasm/

fasm-patch-1.53-sci0-to-1.54-sci0.patch.bz2 - probably useless to you Smile
fasm-patch-1.54-to-1.5-sci04.patch.bz2 - patch for the vanilla 1.54 to set the permissions -rwxrwxr-x on output
fasm-vanilla-patch-1.53-to-1.54.patch.bz2 - patch the vanilla 1.53 to the vanilla 1.54. (no permission fix here)

apply with "bzcat file | patch -p1" when in the fasm dir.
Post 31 Jul 2004, 13:41
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
It's only one of the fasm's output formats that can be executed directly in Linux, and even this formatting can be used to make programs for other systems (like BSD or BeOS). So I thought it's better to leave it to the programmer to set up the permissions (when he knows what he is doing) - fasm is not able to guess it.
Post 31 Jul 2004, 14:17
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
well, it doesn't harm to have eg PEs runnable, and really how often does one compile PEsunderlinux? But ok, I'll keep bugging the forum with patch(es) to set the permission on every major release Wink (if it's ok with you)
Post 31 Jul 2004, 14:25
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
Of course it's OK. Wink
Post 31 Jul 2004, 14:26
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
What do you think about developing the fasm IDE for Linux? I'm already planning making IDEs for DOS and maybe Menuet - I'm trying to make my editor core independent from the interface in the same way as fasm's core, you can see the progress of it in the current fasmw release.
Post 31 Jul 2004, 14:28
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
I'd love to have the FASM IDE for Linux! If you could do it as a console app, that'd be great, but I would also use an X11 version.
Post 31 Jul 2004, 14:37
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
good idea, maybe something similar to the source/[os] dirs (maybe (source/[os]/ide ), sort of abstracting gui calls in some similar way to the system.inc files.
Post 31 Jul 2004, 14:40
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
tip: as new FASMW version can handle CHM help files, you can set freshguide.chm file from fresh package as your help file. This will give you context help on all FASM directives and all supported instructions.
Post 31 Jul 2004, 17:49
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
why don't people use VIM under linux?
I use it under Windoze and it works, so under Linux it should be native (my opnion of course, i never worked under linux).
I think tings like parser-stage skipping not-taken "if" blocks would be better, but maybe linux users would like FASM native editor.

Should it be copy of AsmEdit or something new?
Post 31 Jul 2004, 18:36
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
Yes, I suggested this because I'm making Assembly Editor core system-independent so it could (hopefully) be used as a base for fasm IDEs with "common look and feel" for different systems.
Post 31 Jul 2004, 19:45
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.