File: writemsg.asm

package info (click to toggle)
fasm 1.73.34-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,540 kB
  • sloc: pascal: 4,300; asm: 3,056; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

format ELF

section '.text' executable

 public writemsg

 writemsg:
	mov	ecx,esi
    find_end:
	lodsb
	or	al,al
	jnz	find_end
	mov	edx,esi
	sub	edx,ecx
	mov	eax,4
	mov	ebx,1
	int	0x80
	ret