Skip to contentSkip to conversation

inside_SUB

DISCUSSION Maciej Hrebien 1 participant 1 message Sep 19, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · ssams

thanks for your replay
this is make me learning more.
But when i try to try, i found a new problem when i try to read
the value from ecx after doing syscall read.
mov $3,%eax
mov $0,%ebx
mov $6,%edx

Quoted 8 lines

how can i read input from this code and reprinting it...? for example output:
Enter e number: 4 #we enter 4
you have number: 4 #reprinting

help me please
regard
ssams

.data

char: .byte 0

.text

.globl _start
_start:

	mov $3,%eax
	xor %ebx,%ebx
	mov $char,%ecx
	mov $1,%edx
	int $0x80

	mov $4,%eax
	inc %ebx
	int $0x80

	mov $1,%eax
	int $0x80

Regards,

PS I recommend to read some tutorial(s) on how to write assembly code useing Linux's calls.

Signature · 1 line
Maciej Hrebien