/Articles/Forth/HTML/CodeAsm/quit.html
0,0 → 1,150
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> words/quit.asm </title>
<meta name="keywords" content="amforth programming language Forth ATmega ATMEL">
<meta name="description" content="amforth - laguage Forth for ATMEL ATmega">
<!-- AUTOINCLUDE START "Page/Head.en.ihtml" DO NOT REMOVE -->
<link rel="StyleSheet" href="../../../../Web/CSS/MLAB.css" type="text/css" title="MLAB Basic Style">
<link rel="StyleSheet" href="../../../../Web/CSS/MLAB_Print.css" type="text/css" media="print">
<link rel="shortcut icon" type="image/x-icon" href="../../../../Web/PIC/MLAB.ico">
<script type="text/javascript" src="../../../../Web/JS/MLAB_Menu.js"></script>
<!-- AUTOINCLUDE END -->
</head>
 
<body lang="en">
 
<!-- AUTOINCLUDE START "Page/Header.en.ihtml" DO NOT REMOVE -->
<!-- ============== HEADER ============== -->
<div class="Header">
<script type="text/javascript">
<!--
SetRelativePath("../../../../");
DrawHeader();
// -->
</script>
<noscript>
<p><b> JavaScript is required for including of the header </b></p>
</noscript>
</div>
<!-- AUTOINCLUDE END -->
 
<!-- AUTOINCLUDE START "Page/Menu.en.ihtml" DO NOT REMOVE -->
<!-- ============== MENU ============== -->
<div class="Menu">
<script type="text/javascript">
<!--
SetRelativePath("../../../../");
DrawMenu();
// -->
</script>
<noscript>
<p><b> JavaScript is required for including of the menu </b><p>
</noscript>
</div>
<!-- AUTOINCLUDE END -->
 
<!-- ============== TEXT ============== -->
<div class="Text">
 
<h1> words/quit.asm </h1>
 
<p>
<input type=button onClick="history.back()" value="Back">
<input type=button onClick="history.forward()" value="Forward">
<a href="../WordList.en.html">Jump to Vocabulary</a>
</p>
 
<pre>
; ( -- ) System
; R( -- )
; main loop of amforth. accept - interpret in an endless loop
VE_QUIT:
.db $04, &quot;quit&quot;, 0
.dw VE_HEAD
.set VE_HEAD = VE_QUIT
XT_QUIT:
.dw DO_COLON
PFA_QUIT:
.dw XT_SP0
.dw XT_SP_STORE
.dw XT_RP0
.dw XT_RP_STORE
.dw XT_HEX
.dw XT_ZERO
.dw XT_STATE
.dw XT_STORE
 
PFA_QUIT2:
.dw XT_STATE
.dw XT_FETCH
.dw XT_EQUALZERO
.dw XT_DOCONDBRANCH
.dw PFA_QUIT4
.dw XT_CR
.dw XT_SLITERAL
.db 2, &quot;&gt; &quot;,0
.dw XT_ITYPE
PFA_QUIT4:
.dw XT_REFILL
.dw XT_DOCONDBRANCH
.dw PFA_QUIT2
.dw XT_DOLITERAL
.dw XT_INTERPRET
.dw XT_CATCH
.dw XT_QDUP
.dw XT_DOCONDBRANCH
.dw PFA_QUIT3
.dw XT_DUP
.dw XT_DOLITERAL
.dw -2
.dw XT_LESS
.dw XT_DOCONDBRANCH
.dw PFA_QUIT5
.dw XT_SLITERAL
.db 3, &quot; ??&quot;
.dw XT_ITYPE
.dw XT_DECIMAL
.dw XT_DOT
.dw XT_G_IN
.dw XT_FETCH
.dw XT_DOT
PFA_QUIT5:
.dw XT_DOBRANCH
.dw PFA_QUIT
PFA_QUIT3:
.dw XT_SLITERAL
.db 3, &quot; ok&quot;
.dw XT_ITYPE
.dw XT_DOBRANCH
.dw PFA_QUIT2
 
.dw XT_EXIT ; never reached
</pre>
 
<p>
<input type=button onClick="history.back()" value="Back">
<input type=button onClick="history.forward()" value="Forward">
<a href="../WordList.en.html">Jump to Vocabulary</a>
</p>
 
</div>
 
<!-- AUTOINCLUDE START "Page/Footer.en.ihtml" DO NOT REMOVE -->
<!-- ============== FOOTER ============== -->
<div class="Footer">
<script type="text/javascript">
<!--
SetRelativePath("../../../../");
DrawFooter();
// -->
</script>
<noscript>
<p><b> JavaScript is required for including of the footer </b></p>
</noscript>
</div>
<!-- AUTOINCLUDE END -->
 
</body>
</html>