Article View: pl.comp.lang.asm
Article #522mov ah, 0/int 16h ;blad?
From: Matuzalem
Date: Tue, 22 Aug 2006 23:20
Date: Tue, 22 Aug 2006 23:20
71 lines
2298 bytes
2298 bytes
Witam ;================================================= title API includelib IMPORT32.LIB .386P .model flat, stdcall ;------------------------------------------- STD_OUTPUT_HANDLE equ -11 extern lstrlenA:near extern GetStdHandle:near extern WriteConsoleA:near extern ExitProcess:near lstrlen = lstrlenA WriteConsole = WriteConsoleA ;------------------------------------------- segment _DATA infomsg db "API", 0 hcon dd ? bytew dd 0 ends _DATA ;------------------------------------------- segment _TEXT start: push STD_OUTPUT_HANDLE call GetStdHandle mov hcon, eax push offset infomsg call lstrlen push 0 push bytew push eax push offset infomsg push hcon call WriteConsole mov ah, 0 int 16h push 0 call ExitProcess ends _TEXT end start ;================================================= Troche sie stesknilem za windows-owym API i postanowilem cos naskrobac :P No i naskrobalem blad w postaci wywalenia programu... Gdy czesc kodu "mov ah, 0/int 16h" wezme jako komentarz i skompiluje wszystko jest ok. Jednak gdy zostawie to wywala blad. Czemu? Ma to cos wspulnego z modelem pamieci? (raczej nie, prawda?) TASM Pozdrawiam
Technical Details
Message-ID:
<1156288843.003965.60780@m73g2000cwd.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.germany.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.germany.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail From: "Matuzalem" <codemaster_@op.pl> Newsgroups: pl.comp.lang.asm Subject: mov ah, 0/int 16h ;blad? Date: 22 Aug 2006 16:20:43 -0700 Organization: http://groups.google.com Lines: 72 Message-ID: <1156288843.003965.60780@m73g2000cwd.googlegroups.com> NNTP-Posting-Host: 212.244.115.33 Mime-Version: 1.0 X-Trace: posting.google.com 1156288849 20968 127.0.0.1 (22 Aug 2006 23:20:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 22 Aug 2006 23:20:49 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=212.244.115.33; posting-account=HFFdEQ0AAACI08bdAnMScVqwVEj2ucOg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit