AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

ASM mit NASM Problem

Ein Thema von Luckie · begonnen am 9. Okt 2003 · letzter Beitrag vom 10. Okt 2003
 
NicoDE
(Gast)

n/a Beiträge
 
#7

Re: ASM mit NASM Problem

  Alt 10. Okt 2003, 04:09
'mov ax, daten' dürfte das Problem sein, hab mal schnell mit TASM5 getestet...

HelloExe.bat
Code:
;@goto build


data segment
    Hello db "Hello, World!", 0Dh, 0Ah, "$"
data ends

code segment
Start:
    mov    ax, seg Hello
    mov    ds, ax
    mov    dx, offset Hello
    mov    ah, 09h
    int    21h
    mov    ax, 4C00h
    int    21h
code ends

end Start


:build
@echo off
set PATH=P:\BORLAND\TASM5\BIN;%PATH%
tasm /m3 /ml /q /t /w2 /z HelloExe.bat, HelloExe.obj
tlink /c /k /Tde /x HelloExe.obj, Hello.exe
del HelloExe.obj
Hello.exe
pause
HelloCom.bat
Code:
;@goto build


code segment
org 100h
Start:
    mov    ah, 09h
    lea    dx, Hello
    int    21h
    mov    ax, 4C00h
    int    21h
Hello:
    db     "Hello, World!", 0Dh, 0Ah, "$"
code ends

end Start


:build
@echo off
set PATH=P:\BORLAND\TASM5\BIN;%PATH%
tasm /m3 /ml /q /t /w2 /z HelloCom.bat, HelloCom.obj
tlink /c /t /x HelloCom.obj, Hello.com
del HelloCom.obj
Hello.com
pause
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:16 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz