🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #679

Re: dokumentacja p4

#679
From: Matuzalem
Date: Fri, 15 Sep 2006 14:50
71 lines
3113 bytes
PioM napisał(a):
> Witam
>
> W dokumentacji od P4 zaskoczyla mnie instrukcja ENTER i jej opis make stack
> frame for procedure paramaters.
> Domyslam sie ze ma to znaczyc zrob ramke stosu dla parametrow procedury.

Polecenie ENTER (dla proc 80286) powoduje utworzenie ramki stosu i
przygotowuje  procedurę do obsługi przekazanych parametrów.

ENTER ma dwa operandy:
1). stała decydująca o liczbie bajtów jaka zostanie zarezerowowana
na stos dla lokalnych zmiennych
2). stała decydująca o pozoimie zagnieżdżenia procedury

np.

MyProc proc
  enter 4, 0

to jest dokładnie to samo co:

MyProc proc
  push bp
  mov bp, sp
  sub sp, 4

> Druga rzecz ktora wydaje sie dziwna do przerwania, ktore zwykle kojarza sie
> z BIOSem nie bledami.
>
> Np. po uruchomienia programu typu
> mov ax,0x0001
> mov bx,0x0001
> mov cx,0x0001
> mov dx,0x0001
> int 0x0
>
> wyskakuje komunikat: typu Blad dzielenia przez zero. Skontaktuj sie z
> sprzedawca.

int 0h

http://www.ctyme.com/intr/int-00.htm


oraz RBIL:

--------C-00---------------------------------
INT 00 C - CPU-generated - DIVIDE ERROR
Desc:	generated if the divisor of a DIV or IDIV instruction is zero or
the
	  quotient overflows the result register; DX and AX will be unchanged.
Notes:	on an 8086/8088, the return address points to the following
instruction
	on an 80286+, the return address points to the divide instruction
	an 8086/8088 will generate this interrupt if the result of a division
	  is 80h (byte) or 8000h (word)
SeeAlso: INT 04,OPCODE "AAD"
--------G-00---------------------------------
INT 00 - Zenith - ROM DEBUGGER
Desc:	invokes the ROM Debugger when at the BIOS level; equivalent to
	  pressing Ctrl-Alt-Ins on booting.
Note:	since DOS revectors INT 00, it is necessary to restore this
vector to
	  its original ROM BIOS value in order to invoke the debugger once DOS
	  loads
SeeAlso: INT 03"Columbia"


Pozdrawiam
Technical Details
Message-ID: <1158331812.117373.268250@m73g2000cwd.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail
References: <eeea4t$j2l$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail
From: "Matuzalem" <codemaster_@op.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: dokumentacja p4
Date: 15 Sep 2006 07:50:12 -0700
Organization: http://groups.google.com
Lines: 74
Message-ID: <1158331812.117373.268250@m73g2000cwd.googlegroups.com>
References: <eeea4t$j2l$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: 212.244.115.33
Mime-Version: 1.0
X-Trace: posting.google.com 1158331818 16920 127.0.0.1 (15 Sep 2006 14:50:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 15 Sep 2006 14:50:18 +0000 (UTC)
In-Reply-To: <eeea4t$j2l$1@nemesis.news.tpi.pl>
User-Agent: G2/1.0
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: 8bit