File: macros.ai

package info (click to toggle)
zoo 2.10-21
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 852 kB
  • ctags: 1,258
  • sloc: ansic: 8,944; asm: 793; makefile: 179
file content (18 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; $Source: /usr/home/dhesi/zoo/RCS/macros.ai,v $
; $Id: macros.ai,v 1.2 91/07/07 09:37:52 dhesi Exp $
;procedure index, used in-line to save some microseconds
call_index	macro
	mov	si,bx			;si = bx * 5 (5 byte hash entries)
	shl	si,1			;si = bx * 2 * 2 + bx
	shl	si,1
	add	si,bx
	endm	

malloc	macro	siz
	ifdif	<bx>,<siz>
	mov	bx,siz
	endif
	mov	ah,48h
	int	21h
	endm