repo.or.cz
/
mascara-docs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* added compilers lcc and bcc (linux86)
[mascara-docs.git]
/
i86
/
mtx
/
mtx
/
samples
/
LAB4
/
USER
/
u.s
blob
a9488f911f9911fe9d0202c106d3696d3421cf85
1
.globl begtext, begdata, begbss ! needed by linker
2
3
.text ! these tell as:
4
begtext
: !
text
,
data
,
bss segments
5
.data ! are all the same.
6
begdata
:
7
.bss
8
begbss
:
9
.text
10
.globl _main, _syscall, _exit
11
.globl _getcs, _color
12
13
call _main
14
15
!
if ever return
,
exit
(
0
)
16
push
#0
17
call _exit
18
19
_getcs
:
20
mov ax
,
cs
21
ret
22
23
_syscall
:
24
int
80
25
ret