1 | ; $Id: micro.asm 808 2003-10-06 00:23:40Z bird $
|
---|
2 | ;; @file
|
---|
3 | ;
|
---|
4 | ; The quickest possible executable testcase.
|
---|
5 | ; Used as reference.
|
---|
6 | ;
|
---|
7 | ; Copyright (c) 2003 knut st. osmundsen <bird-srcspam@anduin.net>
|
---|
8 | ;
|
---|
9 | ;
|
---|
10 | ; This program is free software; you can redistribute it and/or modify
|
---|
11 | ; it under the terms of the GNU General Public License as published by
|
---|
12 | ; the Free Software Foundation; either version 2 of the License, or
|
---|
13 | ; (at your option) any later version.
|
---|
14 | ;
|
---|
15 | ; This program is distributed in the hope that it will be useful,
|
---|
16 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
17 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
18 | ; GNU General Public License for more details.
|
---|
19 | ;
|
---|
20 | ; You should have received a copy of the GNU General Public License
|
---|
21 | ; along with This program; if not, write to the Free Software
|
---|
22 | ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
23 | ;
|
---|
24 | ;
|
---|
25 |
|
---|
26 | .386
|
---|
27 |
|
---|
28 | CODE32 segment public para use32 'CODE'
|
---|
29 | CODE32 ends
|
---|
30 | DATA32 segment public para use32 'DATA'
|
---|
31 | DATA32 ends
|
---|
32 | BSS32 segment public para use32 'BSS'
|
---|
33 | BSS32 ends
|
---|
34 | DGROUP group DATA32,BSS32
|
---|
35 |
|
---|
36 | CODE32 segment public para use32 'CODE'
|
---|
37 | ; ASSUME cs:FLAT, ds:FLAT, es:FLAT, ss:FLAT
|
---|
38 | public entry
|
---|
39 | entry:
|
---|
40 | xor eax, eax
|
---|
41 | ret
|
---|
42 | CODE32 ends
|
---|
43 |
|
---|
44 | STACK32 segment stack para use32 'STACK'
|
---|
45 | db 4096 dup(?)
|
---|
46 | STACK32 ends
|
---|
47 |
|
---|
48 | end entry
|
---|
49 |
|
---|