source: trunk/minix/lib/i86/em/em_dup.s@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 177 bytes
Line 
1.define .dup
2
3 ! #bytes in cx
4 .text
5.dup:
6 pop bx ! return address
7 mov ax,si
8 mov dx,di
9 mov si,sp
10 sub sp,cx
11 mov di,sp
12 sar cx,#1
13 rep
14 mov
15 mov si,ax
16 mov di,dx
17 jmp (bx)
Note: See TracBrowser for help on using the repository browser.