Re: MASM
Probajte ovaj kod u kojem main nije funkcija vec samo labela (savjetujem koriscenje 16-bitnog asemblera, recimo tasm koji dodje uz Borland TC):
.model small
.stack
.data
message db "Hello world, I'm learning Assembly !!!", "$"
.code
main : mov bx,seg message
mov ds,bx
mov ah,09
lea dx,message
int 21h
mov ax,4c00h
int 21h
end main
Zoran ©urlan <zsurlan@ptt.yu> wrote: Koristim masm32 v8.2 imam problem sto nikako ne uspevam da prevedem bilo koji asm file.
Na primer za sledeci cod
.model small
.stack
.data
message db "Hello world, I'm learning Assembly !!!", "$"
.code
main proc
mov bx,seg message
mov ds,bx
mov ah,09
lea dx,message
int 21h
mov ax,4c00h
int 21h
main endp
end main
dobijam sledeci odgovor nakon pokusaja asembliranja:
Assembling: D:\Programiranje\MojASM\prvi.asm
D:\Programiranje\MojASM\prvi.asm(9) : error A2004: symbol type conflict
D:\Programiranje\MojASM\prvi.asm(19) : warning A4023: with /coff switch, leading underscore required for start address : main
Volume in drive D is IDE-DATA
Volume Serial Number is 128F-FC35
Directory of D:\Programiranje\MojASM
12/29/2006 08:13 AM 263 prvi.asm
1 File(s) 263 bytes
0 Dir(s) 35,240,361,984 bytes free
Ima li neko ideju gde gresim?
-----------------------------------------------------------------
unsubscribe:
minimalist@rti.etf.bg.ac.yu?subject=unsubscribe%20mips-nastava
-----------------------------------------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
.model small
.stack
.data
message db "Hello world, I'm learning Assembly !!!", "$"
.code
main : mov bx,seg message
mov ds,bx
mov ah,09
lea dx,message
int 21h
mov ax,4c00h
int 21h
end main
Zoran ©urlan <zsurlan@ptt.yu> wrote: Koristim masm32 v8.2 imam problem sto nikako ne uspevam da prevedem bilo koji asm file.
Na primer za sledeci cod
.model small
.stack
.data
message db "Hello world, I'm learning Assembly !!!", "$"
.code
main proc
mov bx,seg message
mov ds,bx
mov ah,09
lea dx,message
int 21h
mov ax,4c00h
int 21h
main endp
end main
dobijam sledeci odgovor nakon pokusaja asembliranja:
Assembling: D:\Programiranje\MojASM\prvi.asm
D:\Programiranje\MojASM\prvi.asm(9) : error A2004: symbol type conflict
D:\Programiranje\MojASM\prvi.asm(19) : warning A4023: with /coff switch, leading underscore required for start address : main
Volume in drive D is IDE-DATA
Volume Serial Number is 128F-FC35
Directory of D:\Programiranje\MojASM
12/29/2006 08:13 AM 263 prvi.asm
1 File(s) 263 bytes
0 Dir(s) 35,240,361,984 bytes free
Ima li neko ideju gde gresim?
-----------------------------------------------------------------
unsubscribe:
minimalist@rti.etf.bg.ac.yu?subject=unsubscribe%20mips-nastava
-----------------------------------------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- References:
- MASM
- From: Zoran Šurlan <zsurlan@ptt.yu>
- MASM
Previous by date: MASM
Next by date: Koje periferije?
Previous by thread: MASM Next by thread: Izasao projekat.
Previous by thread: MASM Next by thread: Izasao projekat.