with this simple code a make this:


only 2,72 KB

what i find wonderdull is tha NAGOA does not need
*.lib at all .

here is the code:

;-----------------------------------
%include '\lab\vasm\inc\nagoa.inc'



..start:

CONST DIALOG_ID, equ 1000

call DialogBoxParamA,NULL,DIALOG_ID, 0, Dialog1Proc, 0

proc Dialog1Proc ,hwnd,uMsg,wParam,lParam

switch
case dword WM_INITDIALOG
je wminitdialog
break
case dword WM_COMMAND
je near wmcommand
break
case dword WM_CLOSE
je near wmclose
break
jmp unhandled
switchend
;--------------
unhandled:
endproc

;--------------
wminitdialog:
jmp unhandled

;--------------
wmcommand:
switch
CONST AA, equ 1
case byte AA
call MessageBoxA ,0,"info 1","title 1",MB_OK
break
CONST BB , equ 2
case byte BB
call MessageBoxA ,0,"info 2","title 2",MB_OK
break
switchend
jmp unhandled

;------------
wmclose:
call ExitProcess,0
jmp unhandled
;----------------------------------

well thats all ... i was wondering why there is only a few people using it ...

ZobySound:alright:
Posted on 2003-02-02 16:15:34 by ZobySound
I like it too.But it can't process Chinese chars well.
Posted on 2003-02-05 03:25:05 by lllaaa
SpAsm is the best of all, no libs, no linker , no include files
Posted on 2003-02-14 20:54:25 by Odyssey
I understand the situation with import libraries,but...
Without libraries,how you are able to build big projects?
Posted on 2003-02-15 05:14:53 by Vortex
or share code between assemblers painlessly? :)

it's great fasm can use masm libs
Posted on 2003-02-15 05:16:14 by Hiroshimator
>it's great fasm can use masm libs

Yes,Hiroshimator %100 right:alright: The Flat Assembler can output COFF object code.
Posted on 2003-02-15 05:19:27 by Vortex
Hi ! all


NaGoA is Nasm Gorc Alink
Na Go A = NaGoA


Alink

Input :
-------
OMF/OBJ,
Win32/COFF,
DJGPP/COFF

output:
---------
DOS/COM,
DOS/EXE,
Win32/PE,
Win32/DLL

Library Support :
-------------------
YES



http://www.openbg.net/sto/oswiki/moin.cgi/OsDevelopSoftware



NASM
-------
Output formats:
aout, aoutb, as86, bin (default), coff, dbg, elf, ieee, obj, rdoff, win32


http://sourceforge.net/projects/nasm



example:

;NASM Win32 resource sample
; compile and link with
;
;nasm -fobj rtn.asm
;
;alink -oPE rtn win32.lib rtn.res


extern DialogBoxParamA
extern GetModuleHandleA
extern ExitProcess
extern EndDialog

WM_INITDIALOG equ 0110h
WM_COMMAND equ 0111h

IDOK equ 1



..start:
enter 0,0
push byte 0
call GetModuleHandleA
mov ,eax
push byte 0
push dword DProc
push byte 0
push dword string
push byte 0
call DialogBoxParamA
push dword
call ExitProcess
leave
ret

DProc:
%define lparam ebp+20
%define wparam ebp+16
%define msg ebp+12
%define hdlg ebp+8
enter 0,0
mov eax,
cmp eax,WM_INITDIALOG
je @@wm_init
cmp eax,WM_COMMAND
je @@wm_command
@@unhandled:
xor eax,eax
leave
ret 16
@@wm_init:
mov eax,1
leave
ret 16
@@wm_command:
cmp dword ,IDOK
jne @@unhandled
push byte 1
push dword
call EndDialog
mov eax,1
leave
ret 16


handle dd 0
string db 'ABOUTDLG',0
















onother one:

BITS 32 ; Tell NASM we're using 32-bit instructions by default.

GLOBAL _main ; Tells the linker about the label called _main

SECTION .text ; Says that this is the start of the code section.
_main: ; Code execution will start at the label called _main
mov eax, 42 ; The simplest program you'll write in this class.
ret ; Return to DJGPP's crt0 library startup code

nasm -f coff basic.asm






well for a dll i never need the library .

but please tell me on what i need a library
thanks!
Posted on 2003-02-15 22:15:44 by Nguga
NASMW -f win32 v.asm
GORC /r vres.rc
ALINK -entry start -oPE v.obj vres.res kernel32.lib user32.lib gdi32.lib

Nasm Gorc Alink
Na Go A = N a G o A
Posted on 2003-03-06 12:26:44 by Nguga
Nguga,

Are you using gobug for your applications?

Regards,

Vortex
Posted on 2003-03-06 12:34:18 by Vortex